projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a783396
)
powerpc/syscall: Calling kuap_save_and_lock() is wrong
author
Christophe Leroy
<christophe.leroy@csgroup.eu>
Thu, 6 May 2021 11:56:31 +0000
(11:56 +0000)
committer
Michael Ellerman
<mpe@ellerman.id.au>
Wed, 12 May 2021 01:07:38 +0000
(11:07 +1000)
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
arch/powerpc/kernel/interrupt.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/interrupt.c
b/arch/powerpc/kernel/interrupt.c
index ed6cebcb7847537499af5cb0d0c2f25b1a3d7b36..e0938ba298f2a2f928844706ca75ed057707d1f6 100644
(file)
--- 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;