Re: [v2] powerpc/perf: Fix the kernel address leak to userspace via SDAR
From: Michael Ellerman <hidden>
Date: 2018-03-28 14:13:29
From: Michael Ellerman <hidden>
Date: 2018-03-28 14:13:29
On Wed, 2018-03-21 at 11:40:26 UTC, Madhavan Srinivasan wrote:
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 <redacted>
Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/cd1231d7035fea894118d5155ff984 cheers