linux/arch/powerpc/mm/nohash
Christophe Leroy fc4999864b powerpc/4xx: Fix setup_kuep() on SMP
On SMP, setup_kuep() is also called from start_secondary() since
commit 86f46f3432 ("powerpc/32s: Initialise KUAP and KUEP in C").

start_secondary() is not an __init function.

Remove the __init marker from setup_kuep() and bail out when
not caller on the first CPU as the work is already done.

Fixes: 10248dcba1 ("powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP)")
Fixes: 86f46f3432 ("powerpc/32s: Initialise KUAP and KUEP in C")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/8ee05934288994a65743a987acb1558f12c0c8c1.1624969450.git.christophe.leroy@csgroup.eu
2021-06-30 22:21:02 +10:00
..
8xx.c powerpc/nohash: Convert set_context() to C 2021-06-17 00:09:09 +10:00
40x.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
44x.c powerpc/4xx: Fix setup_kuep() on SMP 2021-06-30 22:21:02 +10:00
book3e_hugetlbpage.c powerpc/mm: move FSL_BOOK3 version of update_mmu_cache() 2019-08-20 21:22:14 +10:00
book3e_pgtable.c powerpc: add support for folded p4d page tables 2020-06-04 19:06:21 -07:00
fsl_booke.c powerpc: Retire e200 core (mpc555x processor) 2020-12-05 21:49:18 +11:00
kaslr_booke.c mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
Makefile powerpc/fsl_booke/32: implement KASLR infrastructure 2019-11-13 19:27:40 +11:00
mmu_context.c powerpc/nohash: Remove DEBUG_HARDER 2021-06-17 00:09:10 +10:00
tlb_low_64e.S powerpc/64e: Drop dead BOOK3E_MMU_TLB_STATS code 2020-07-29 21:08:12 +10:00
tlb_low.S powerpc/nohash: Convert set_context() to C 2021-06-17 00:09:09 +10:00
tlb.c powerpc/8xx: Support 16k hugepages with 4k pages 2020-09-15 22:13:31 +10:00