]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc: use probe_user_read() and probe_user_write()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 23 Jan 2020 17:30:47 +0000 (17:30 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 25 Jan 2020 13:11:35 +0000 (00:11 +1100)
commitdef0bfdbd6039e96a9eb2baaa4470b079daab0d4
treeec4077cf1931e6bd1018a3c3b5526c721b05624b
parent1e3531982ee70adf1880715a968d9c3365f321ed
powerpc: use probe_user_read() and probe_user_write()

Instead of opencoding, use probe_user_read() to failessly read
a user location and probe_user_write() for writing to user.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/e041f5eedb23f09ab553be8a91c3de2087147320.1579800517.git.christophe.leroy@c-s.fr
arch/powerpc/kernel/process.c
arch/powerpc/kvm/book3s_64_mmu_radix.c
arch/powerpc/mm/fault.c
arch/powerpc/oprofile/backtrace.c
arch/powerpc/perf/callchain.c
arch/powerpc/perf/core-book3s.c
arch/powerpc/sysdev/fsl_pci.c