]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptdump: Fix W+X verification call in mark_rodata_ro()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 14 Jan 2020 08:13:08 +0000 (08:13 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 23 Jan 2020 10:31:12 +0000 (21:31 +1100)
commit95c40b89064cb188d6d1c85916f516fc563346c0
tree5dd8046e6824f2c3d810c20167b25889fb5f8cea
parentc3f19c0a0d7257df6c19984c53d5828aabb666e4
powerpc/ptdump: Fix W+X verification call in mark_rodata_ro()

ptdump_check_wx() also have to be called when pages are mapped
by blocks.

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/37517da8310f4457f28921a4edb88fb21d27b62a.1578989531.git.christophe.leroy@c-s.fr
arch/powerpc/mm/pgtable_32.c