]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dump: Add checking for writable and exectuable pages
authorLaura Abbott <labbott@redhat.com>
Thu, 27 Oct 2016 16:27:34 +0000 (09:27 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Nov 2016 18:15:04 +0000 (18:15 +0000)
commitc1534fd1c48892007211d8000d001c109eb7afc2
treef6bf9d56920d2c3d7346cd925781b071075c810b
parent258b0619ead9c9c389a0ce665102d714cee75edf
arm64: dump: Add checking for writable and exectuable pages

Page mappings with full RWX permissions are a security risk. x86
has an option to walk the page tables and dump any bad pages.
(See 3cb2c22d5c80 ("x86/mm: Warn on W^X mappings")). Add a similar
implementation for arm64.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
[catalin.marinas@arm.com: folded fix for KASan out of bounds from Mark Rutland]
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig.debug
arch/arm64/include/asm/ptdump.h
arch/arm64/mm/dump.c
arch/arm64/mm/mmu.c