powerpc/64/syscall: Zero volatile registers when returning
authorNicholas Piggin <npiggin@gmail.com>
Tue, 25 Feb 2020 17:35:35 +0000 (03:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 1 Apr 2020 02:42:13 +0000 (13:42 +1100)
commit993c670a4dfb2bded39d96f11df763c657d15a41
tree55469336d404d428bd3d49a25b44f98eb6cd4774
parent68b34588e2027f699a3c034235f21cd19356b2e6
powerpc/64/syscall: Zero volatile registers when returning

Kernel addresses and potentially other sensitive data could be leaked
in volatile registers after a syscall.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200225173541.1549955-27-npiggin@gmail.com
arch/powerpc/kernel/entry_64.S