diff options
author | Kees Cook <keescook@chromium.org> | 2020-03-27 09:48:20 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-04-20 20:44:27 +0300 |
commit | 6e0d6ac5f3d9d90271899f6d340872360fe1caee (patch) | |
tree | 3b8a2714c6b4db127d2e3544d12985e0e515f616 /arch/arm64/include/asm/elf.h | |
parent | eaf3f9e61887332d5097dbf0b327b8377546adc5 (diff) | |
download | linux-6e0d6ac5f3d9d90271899f6d340872360fe1caee.tar.xz |
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
Diffstat (limited to 'arch/arm64/include/asm/elf.h')
-rw-r--r-- | arch/arm64/include/asm/elf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/include/asm/elf.h b/arch/arm64/include/asm/elf.h index 0074e9fd6431..0e7df6f1eb7a 100644 --- a/arch/arm64/include/asm/elf.h +++ b/arch/arm64/include/asm/elf.h @@ -105,7 +105,7 @@ * CPU*: | arm32 | arm64 | * ELF: | | | * ---------------------|------------|------------| - * missing PT_GNU_STACK | exec-all | exec-all | + * missing PT_GNU_STACK | exec-all | exec-none | * PT_GNU_STACK == RWX | exec-stack | exec-stack | * PT_GNU_STACK == RW | exec-none | exec-none | * @@ -117,7 +117,7 @@ * *all arm64 CPUs support NX, so there is no "lacks NX" column. * */ -#define elf_read_implies_exec(ex, stk) (stk == EXSTACK_DEFAULT) +#define compat_elf_read_implies_exec(ex, stk) (stk == EXSTACK_DEFAULT) #define CORE_DUMP_USE_REGSET #define ELF_EXEC_PAGESIZE PAGE_SIZE |