diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-03-12 15:50:51 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-03-29 05:22:11 +0300 |
commit | c16728835eec45fa82f4744a52940717ac828f6d (patch) | |
tree | 2bda7323fd0bc1471642537643339d19eba44b0a /arch/powerpc/include/asm/interrupt.h | |
parent | 0b45359aa2df7b761817a9664cfb53ea3070c390 (diff) | |
download | linux-c16728835eec45fa82f4744a52940717ac828f6d.tar.xz |
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
Diffstat (limited to 'arch/powerpc/include/asm/interrupt.h')
-rw-r--r-- | arch/powerpc/include/asm/interrupt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/interrupt.h b/arch/powerpc/include/asm/interrupt.h index 857375309255..7c633896d758 100644 --- a/arch/powerpc/include/asm/interrupt.h +++ b/arch/powerpc/include/asm/interrupt.h @@ -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 /* |