powerpc/vmlinux.lds: Add an explicit symbol for the SRWX boundary
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 16 Sep 2022 04:41:24 +0000 (14:41 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Feb 2023 11:06:44 +0000 (12:06 +0100)
commit0b0e9b5adc8ed4e3f7f2b83838007e9ef4962f36
tree87c13adcdaa971438065e50175b830cb72974384
parentb6fff8fa4f5ba4d74529ec78f0fefc35cc149d93
powerpc/vmlinux.lds: Add an explicit symbol for the SRWX boundary

[ Upstream commit b150a4d12b919baf956b807aa305cf78df03d0fe ]

Currently __init_begin is used as the boundary for strict RWX between
executable/read-only text and data, and non-executable (after boot) code
and data.

But that's a little subtle, so add an explicit symbol to document that
the SRWX boundary lies there, and add a comment making it clear that
__init_begin must also begin there.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220916131422.318752-2-mpe@ellerman.id.au
Stable-dep-of: 111bcb373853 ("powerpc/64s/radix: Fix RWX mapping with relocated kernel")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/sections.h
arch/powerpc/kernel/vmlinux.lds.S
arch/powerpc/mm/book3s32/mmu.c
arch/powerpc/mm/book3s64/radix_pgtable.c