powerpc/signal32: Switch handle_signal32() to user_access_begin() logic
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 18 Aug 2020 17:19:29 +0000 (17:19 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 Dec 2020 14:01:13 +0000 (01:01 +1100)
commitad65f4909fd3736d84533784cd9ab76905536b34
tree3ef6c71cf62b0414e8317c9139894da307cab0a2
parent8d33001dd650b88e915a1a13e2ca807350e374df
powerpc/signal32: Switch handle_signal32() to user_access_begin() logic

Replace the access_ok() by user_access_begin() and change all user
accesses to unsafe_ version.

Move flush_icache_range() outside the 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/a27797f781aa00da96f8284c898173d18e952361.1597770847.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/signal_32.c