powerpc/32: Manage KUAP in C
Move all KUAP management 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/199365ddb58d579daf724815f2d0acb91cc49d19.1615552867.git.christophe.leroy@csgroup.eu
This commit is contained in:
committed by
Michael Ellerman
parent
0b45359aa2
commit
c16728835e
@@ -36,6 +36,8 @@ static inline void interrupt_enter_prepare(struct pt_regs *regs, struct interrup
|
||||
if (user_mode(regs)) {
|
||||
kuep_lock();
|
||||
account_cpu_user_entry();
|
||||
} else {
|
||||
kuap_save_and_lock(regs);
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user