]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/signal32: Fix erroneous SIGSEGV on RT signal return
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 23 Apr 2021 13:52:10 +0000 (13:52 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Apr 2021 13:35:11 +0000 (23:35 +1000)
commit845bc7b2d465c82aada3f00fce4bd7369a415cf2
tree24edfc37632a66281d30f9c427a6c89bb9c9f94a
parent690ceb2a59932c2f168dd0295e4d8d776818a571
powerpc/signal32: Fix erroneous SIGSEGV on RT signal return

Return of user_read_access_begin() is tested the wrong way,
leading to a SIGSEGV when the user address is valid and likely
an Oops when the user address is bad.

Fix the test.

Fixes: 2ee62a5a2559 ("powerpc/signal32: Convert do_setcontext[_tm]() to user access block")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a29aadc54c93bcbf069a83615fa102ca0f59c3ae.1619185912.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/signal_32.c