TencentOS-kernel/arch/powerpc
Christophe Leroy 5865e608bc powerpc/32s: Add missing call to kuep_lock on syscall entry
commit 57fdfbce89137ae85cd5cef48be168040a47dd13 upstream.

Userspace Execution protection and fast syscall entry were implemented
independently from each other and were both merged in kernel 5.2,
leading to syscall entry missing userspace execution protection.

On syscall entry, execution of user space memory must be
locked in the same way as on exception entry.

Fixes: b86fb88855ea ("powerpc/32: implement fast entry for syscalls on non BOOKE")
Cc: stable@vger.kernel.org
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/c65e105b63aaf74f91a14f845bc77192350b84a6.1612796617.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-12 12:52:39 +08:00
..
boot powerpc/boot: Fix CONFIG_PPC_MPC52XX references 2021-03-16 16:33:42 +08:00
configs vgacon: remove software scrollback support 2021-03-16 16:36:07 +08:00
crypto Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
include powerpc/bitops: Fix possible undefined behaviour with fls() and fls64() 2021-03-16 16:43:50 +08:00
kernel powerpc/32s: Add missing call to kuep_lock on syscall entry 2021-04-12 12:52:39 +08:00
kvm KVM: PPC: Make the VMX instruction emulation routines static 2021-04-12 12:52:26 +08:00
lib powerpc/64s: flush L1D after user accesses 2021-03-16 16:41:00 +08:00
math-emu Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
mm powerpc/mm: Fix verification of MMU_FTR_TYPE_44x 2021-03-16 16:43:34 +08:00
net Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
oprofile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
perf powerpc/perf: Exclude kernel samples while counting events in user space. 2021-03-16 16:43:29 +08:00
platforms powerpc/pseries/dlpar: handle ibm, configure-connector delay status 2021-04-12 12:52:28 +08:00
purgatory Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
sysdev powerpc: sysdev: add missing iounmap() on error in mpic_msgr_probe() 2021-03-16 16:43:55 +08:00
tools Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
xmon powerpc/xmon: Change printk() to pr_cont() 2021-03-16 16:43:34 +08:00
Kbuild Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig powerpc/47x: Disable 256k page size 2021-04-12 12:52:26 +08:00
Kconfig.debug Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile powerpc: Drop -me200 addition to build flags 2021-03-16 16:42:10 +08:00
Makefile.postlink Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00