Messages in this thread | | | Date | Fri, 3 May 2013 07:34:11 -0700 | From | Andi Kleen <> | Subject | Re: [PATCH 2/3] perf, x86, lbr: Fix LBR filter |
| |
> + } else { > + /* > + * The LBR logs any address in the IP, even if the IP just > + * faulted. This means userspace can control the from address. > + * Ensure we don't blindy read any address by validating it is > + * a known text address. > + */ > + if (kernel_text_address(from))
Sorry doing it this way is just incredible expensive and dumb.
After all the tool is called "perf" and not "non perf"
-Andi
| |