]> git.baikalelectronics.ru Git - kernel.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)
commit0712ba18ccb2f1be574eef4def1f53ad836d3aa1
tree17d9b1932cac689fa6fb2004a49d0df4d2242aa9
parent10017e6013e32cb5312a984047b5ae7d865f59ef
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: d53b463794b1 ("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