]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f4c4275cefa935b220bd3e965880648c977bd65
treefc3b7922ff22c24d09ac628b1bea4b6523fd76fc
parente805404c886dfb510e4cc2c13623ee43a28036fa
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