ARM: 8737/1: mm: dump: add checking for writable and executable
authorJinbum Park <jinb.park7@gmail.com>
Tue, 12 Dec 2017 00:43:57 +0000 (01:43 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Sun, 21 Jan 2018 15:32:20 +0000 (15:32 +0000)
commita8e53c151fe7ac52a1c13a6ace0c9e8e0f61260c
treebdd795b97c9311d45e626e5b90814afcd78567a0
parentd02ca6d76ba7f089706db555ee19f3775bc42740
ARM: 8737/1: mm: dump: add checking for writable and executable

Page mappings with full RWX permissions are a security risk.
x86, arm64 has an option to walk the page tables
and dump any bad pages.

(1404d6f13e47
("arm64: dump: Add checking for writable and exectuable pages"))
Add a similar implementation for arm.

Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Jinbum Park <jinb.park7@gmail.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/Kconfig.debug
arch/arm/include/asm/ptdump.h
arch/arm/mm/dump.c
arch/arm/mm/init.c