aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/book3s64/hash_utils.c
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@csgroup.eu>2021-06-29 12:24:21 +0000
committerMichael Ellerman <mpe@ellerman.id.au>2021-06-30 22:21:02 +1000
commitfc4999864bca323f1b844fefe1b402632443c076 (patch)
tree171c9c12dbe85d4557c468fbe5a527089402c8b6 /arch/powerpc/mm/book3s64/hash_utils.c
parentpowerpc/32s: Fix setup_{kuap/kuep}() on SMP (diff)
downloadlinux-dev-fc4999864bca323f1b844fefe1b402632443c076.tar.xz
linux-dev-fc4999864bca323f1b844fefe1b402632443c076.zip
powerpc/4xx: Fix setup_kuep() on SMP
On SMP, setup_kuep() is also called from start_secondary() since commit 86f46f343272 ("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: 10248dcba120 ("powerpc/44x: Implement Kernel Userspace Exec Protection (KUEP)") Fixes: 86f46f343272 ("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
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions