Skip to content

Commit 5d510ed

Browse files
chleroympe
authored andcommitted
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: c167288 ("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
1 parent a783396 commit 5d510ed

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

arch/powerpc/kernel/interrupt.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ notrace long system_call_exception(long r3, long r4, long r5,
3434
syscall_fn f;
3535

3636
kuep_lock();
37-
#ifdef CONFIG_PPC32
38-
kuap_save_and_lock(regs);
39-
#endif
4037

4138
regs->orig_gpr3 = r3;
4239

0 commit comments

Comments
 (0)