]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/ptdump: Only enable PPC_CHECK_WX with STRICT_KERNEL_RWX
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 14 Jan 2020 08:13:10 +0000 (08:13 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:13 +0000 (21:31 +1100)
commitf509247b08f2dcf7754d9ed85ad69a7972aa132b
tree17d9b1932cac689fa6fb2004a49d0df4d2242aa9
parentd80ae83f1f932ab7af47b54d0d3bef4f4dba489f
powerpc/ptdump: Only enable PPC_CHECK_WX with STRICT_KERNEL_RWX

ptdump_check_wx() is called from mark_rodata_ro() which only exists
when CONFIG_STRICT_KERNEL_RWX is selected.

Fixes: 453d87f6a8ae ("powerpc/mm: Warn if W+X pages found on boot")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/922d4939c735c6b52b4137838bcc066fffd4fc33.1578989545.git.christophe.leroy@c-s.fr
arch/powerpc/Kconfig.debug