OSDN Git Service

powerpc/signal32: Convert do_setcontext[_tm]() to user access block
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 19 Mar 2021 11:06:58 +0000 (11:06 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 3 Apr 2021 10:22:19 +0000 (21:22 +1100)
commit887f3ceb51cd34109ac17bfc98695162e299e657
treefc3b7922ff22c24d09ac628b1bea4b6523fd76fc
parent627b72bee84d6652e0af26617e71ce2b3c18fcd5
powerpc/signal32: Convert do_setcontext[_tm]() to user access block

Add unsafe_get_user_sigset() and transform PPC32 get_sigset_t()
into an unsafe version unsafe_get_sigset_t().

Then convert do_setcontext() and do_setcontext_tm() to use
user_read_access_begin/end.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/9273ba664db769b8d9c7540ae91395e346e4945e.1616151715.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/signal.h
arch/powerpc/kernel/signal_32.c