powerpc/interrupts: Fix kuep_unlock() call
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 6 May 2021 14:49:45 +0000 (14:49 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 12 May 2021 01:07:37 +0000 (11:07 +1000)
commita78339698ab1f43435fbe67fcd6de8f4f6eb9eec
tree8ec40a0be5d13fafcf67e57c945333cfef23a334
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
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
arch/powerpc/include/asm/interrupt.h
arch/powerpc/kernel/interrupt.c