]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/syscall: Calling kuap_save_and_lock() is wrong
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 6 May 2021 11:56:31 +0000 (11:56 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 12 May 2021 01:07:38 +0000 (11:07 +1000)
commit57ee1706630d258f07eddf441c1cab58b6329abd
treec82367d45453a0e24264cb6d77e2756c7965c0b9
parent3039b1040dbb5ab3a625104369a800a7aba80ea2
powerpc/syscall: Calling kuap_save_and_lock() is wrong

kuap_save_and_lock() is only for interrupts inside kernel.

system call are only from user, calling kuap_save_and_lock()
is wrong.

Fixes: 3b7972c585ee ("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