[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130503143411.GO19487@tassilo.jf.intel.com>
Date: Fri, 3 May 2013 07:34:11 -0700
From: Andi Kleen <ak@...ux.intel.com>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: mingo@...nel.org, linux-kernel@...r.kernel.org, eranian@...gle.com
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists