OSDN Git Service

powerpc/signal64: Don't opencode page prefaulting
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 7 Jul 2020 18:32:25 +0000 (18:32 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 15 Jul 2020 02:04:40 +0000 (12:04 +1000)
commit96032f983ca32ad1d43c73da922dbc7022754c3c
tree38106b01127522d895c83d1af9b51cd2391869a0
parent020c4831e01264f8b62af6ca9e669b7c51881a56
powerpc/signal64: Don't opencode page prefaulting

Instead of doing a __get_user() from the first and last location
into a tmp var which won't be used, use fault_in_pages_readable()

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/810bd8840ef990a200f58c9dea9abe767ca02a3a.1594146723.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/signal_64.c