From: Christophe Leroy Date: Thu, 6 May 2021 11:56:31 +0000 (+0000) Subject: powerpc/syscall: Calling kuap_save_and_lock() is wrong X-Git-Tag: v5.13-rc2~7^2~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d510ed78bcfcbbd3b3891cbe79cd7543bce1d05;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/332773775cf24a422105dee2d383fb8f04589045.1620302182.git.christophe.leroy@csgroup.eu --- diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/interrupt.c index ed6cebcb78475..e0938ba298f2a 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;