[v2] powerpc/perf: Fix the kernel address leak to userspace via SDAR
Michael Ellerman
patch-notifications at ellerman.id.au
Thu Mar 29 01:13:28 AEDT 2018
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 <maddy at linux.vnet.ibm.com>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/cd1231d7035fea894118d5155ff984
cheers
More information about the Linuxppc-dev
mailing list