diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-05-06 13:56:31 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-05-12 03:07:38 +0200 |
commit | 5d510ed78bcfcbbd3b3891cbe79cd7543bce1d05 (patch) | |
tree | c82367d45453a0e24264cb6d77e2756c7965c0b9 /arch | |
parent | powerpc/interrupts: Fix kuep_unlock() call (diff) | |
download | linux-5d510ed78bcfcbbd3b3891cbe79cd7543bce1d05.tar.xz linux-5d510ed78bcfcbbd3b3891cbe79cd7543bce1d05.zip |
powerpc/syscall: Calling kuap_save_and_lock() is wrong
kuap_save_and_lock() is only for interrupts inside kernel.
system call are only from user, calling kuap_save_and_lock()
is wrong.
Fixes: c16728835eec ("powerpc/32: Manage KUAP in C")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/332773775cf24a422105dee2d383fb8f04589045.1620302182.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/kernel/interrupt.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/interrupt.c index ed6cebcb7847..e0938ba298f2 100644 --- a/arch/powerpc/kernel/interrupt.c +++ b/arch/powerpc/kernel/interrupt.c @@ -34,9 +34,6 @@ notrace long system_call_exception(long r3, long r4, long r5, syscall_fn f; kuep_lock(); -#ifdef CONFIG_PPC32 - kuap_save_and_lock(regs); -#endif regs->orig_gpr3 = r3; |