diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2021-05-06 16:49:45 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-05-12 03:07:37 +0200 |
commit | a78339698ab1f43435fbe67fcd6de8f4f6eb9eec (patch) | |
tree | 8ec40a0be5d13fafcf67e57c945333cfef23a334 /arch/powerpc/kernel/interrupt.c | |
parent | Linux 5.13-rc1 (diff) | |
download | linux-a78339698ab1f43435fbe67fcd6de8f4f6eb9eec.tar.xz linux-a78339698ab1f43435fbe67fcd6de8f4f6eb9eec.zip |
powerpc/interrupts: Fix kuep_unlock() call
Same as kuap_user_restore(), kuep_unlock() has to be called when
really returning to user, that is in interrupt_exit_user_prepare(),
not in interrupt_exit_prepare().
Fixes: b5efec00b671 ("powerpc/32s: Move KUEP locking/unlocking 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/b831e54a2579db24fbef836ed415588ce2b3e825.1620312573.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'arch/powerpc/kernel/interrupt.c')
-rw-r--r-- | arch/powerpc/kernel/interrupt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/interrupt.c index e4559f8914eb..ed6cebcb7847 100644 --- a/arch/powerpc/kernel/interrupt.c +++ b/arch/powerpc/kernel/interrupt.c @@ -427,6 +427,7 @@ again: /* Restore user access locks last */ kuap_user_restore(regs); + kuep_unlock(); return ret; } |