Re: [PATCH 2/3] perf/x86: Tighten up the kernel_ip() check

2016-09-15 Thread Peter Zijlstra
On Thu, Sep 15, 2016 at 04:29:43PM +0300, Alexander Shishkin wrote: > The kernel_ip() filter is used mostly by the DS/LBR code to look at the > branch addresses, but Intel PT also uses it to validate the address > filter offsets for kernel addresses, for which it is not sufficient: > supplying some

[PATCH 2/3] perf/x86: Tighten up the kernel_ip() check

2016-09-15 Thread Alexander Shishkin
The kernel_ip() filter is used mostly by the DS/LBR code to look at the branch addresses, but Intel PT also uses it to validate the address filter offsets for kernel addresses, for which it is not sufficient: supplying something in bits 64:48 that's not a sign extension of the lower address bits (l