linux_dsm_epyc7002/arch/powerpc/platforms/powermac
Christophe Leroy 2c637d2df4 powerpc/powermac: Fix low_sleep_handler with KUAP and KUEP
low_sleep_handler() has an hardcoded restore of segment registers
that doesn't take KUAP and KUEP into account.

Use head_32's load_segment_registers() routine instead.

Fixes: a68c31fc01 ("powerpc/32s: Implement Kernel Userspace Access Protection")
Fixes: 31ed2b13c4 ("powerpc/32s: Implement Kernel Userspace Execution Prevention.")
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/21b05f7298c1b18f73e6e5b4cd5005aafa24b6da.1599820109.git.christophe.leroy@csgroup.eu
2020-09-15 22:13:37 +10:00
..
backlight.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
bootx_init.c powerpc: Replace _ALIGN() by ALIGN() 2020-05-11 23:15:16 +10:00
cache.S powerpc/powermac: Blacklist functions running with MMU disabled for kprobe 2020-06-02 20:59:09 +10:00
feature.c powerpc: Use fallthrough pseudo-keyword 2020-07-29 21:09:37 +10:00
Kconfig powerpc: enable a 30-bit ZONE_DMA for 32-bit pmac 2019-06-19 22:31:20 +10:00
low_i2c.c powerpc: use for_each_child_of_node() macro 2020-07-29 22:30:33 +10:00
Makefile kbuild: remove cc-option test of -fno-stack-protector 2020-07-07 11:13:10 +09:00
nvram.c powerpc: Replace zero-length array with flexible-array 2020-05-15 11:58:54 +10:00
pci.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pfunc_base.c powerpc: use for_each_child_of_node() macro 2020-07-29 22:30:33 +10:00
pfunc_core.c treewide: Add SPDX license identifier for missed files 2019-05-21 10:50:45 +02:00
pic.c powerpc: Replace setup_irq() by request_irq() 2020-03-25 12:07:57 +11:00
pmac.h powerpc: use time64_t in read_persistent_clock 2018-06-03 20:43:33 +10:00
setup.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
sleep.S powerpc/powermac: Fix low_sleep_handler with KUAP and KUEP 2020-09-15 22:13:37 +10:00
smp.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
time.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
udbg_adb.c powerpc: Use device_type helpers to access the node type 2018-11-26 22:33:37 +11:00
udbg_scc.c powerpc: use for_each_child_of_node() macro 2020-07-29 22:30:33 +10:00