diff options
author | Madhavan Srinivasan <maddy@linux.vnet.ibm.com> | 2018-03-21 14:40:26 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-03-27 11:25:09 +0300 |
commit | cd1231d7035fea894118d5155ff984cdaf1ac1a2 (patch) | |
tree | b69f07fd0c77915b86ac3e641b4611a1a546c6e5 /arch/powerpc/include/asm | |
parent | bb19af816025d495376bd76bf6fbcf4244f9a06d (diff) | |
download | linux-cd1231d7035fea894118d5155ff984cdaf1ac1a2.tar.xz |
powerpc/perf: Prevent kernel address leak via perf_get_data_addr()
Sampled Data Address Register (SDAR) is a 64-bit register that
contains the effective address of the storage operand of an
instruction that was being executed, possibly out-of-order, at or
around the time that the Performance Monitor alert occurred.
In certain scenario SDAR happen to contain the kernel address even for
userspace only sampling. Add checks to prevent it.
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm')
0 files changed, 0 insertions, 0 deletions