lkml.org 
[lkml]   [2013]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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


    \
     
     \ /
      Last update: 2013-05-03 17:41    [W:4.553 / U:0.072 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site