perf/x86/intel/pt: Relax address filter validation
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 31 Jan 2022 07:24:49 +0000 (09:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Oct 2022 08:41:19 +0000 (09:41 +0100)
commitda54c5f4b5b547bab4c38f3356d0f779d9ad2098
tree114938c609a95482ec80dd064a6e1912f611dcef
parent79c3482fbe20e39630b0f95e1ffeb846aa945c41
perf/x86/intel/pt: Relax address filter validation

commit c243cecb58e3905baeace8827201c14df8481e2a upstream.

The requirement for 64-bit address filters is that they are canonical
addresses. In other respects any address range is allowed which would
include user space addresses.

That can be useful for tracing virtual machine guests because address
filtering can be used to advantage in place of current privilege level
(CPL) filtering.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220131072453.2839535-2-adrian.hunter@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/events/intel/pt.c