]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/elf: Disable automatic READ_IMPLIES_EXEC for 64-bit address spaces
authorKees Cook <keescook@chromium.org>
Fri, 27 Mar 2020 06:48:20 +0000 (23:48 -0700)
committerBorislav Petkov <bp@suse.de>
Mon, 20 Apr 2020 17:44:27 +0000 (19:44 +0200)
commitf63d707ac29768aab9fbc884bc6faa25d12cb10c
tree3b8a2714c6b4db127d2e3544d12985e0e515f616
parent82c267e7f5daf95a7e9c997d70a2a2494eea561f
arm64/elf: Disable automatic READ_IMPLIES_EXEC for 64-bit address spaces

With arm64 64-bit environments, there should never be a need for automatic
READ_IMPLIES_EXEC, as the architecture has always been execute-bit aware
(as in, the default memory protection should be NX unless a region
explicitly requests to be executable).

Suggested-by: Hector Marco-Gisbert <hecmargi@upv.es>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lkml.kernel.org/r/20200327064820.12602-7-keescook@chromium.org
arch/arm64/include/asm/elf.h
fs/compat_binfmt_elf.c