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 <>
Signed-off-by: Kees Cook <>
Signed-off-by: Borislav Petkov <>
Reviewed-by: Jason Gunthorpe <>
Reviewed-by: Catalin Marinas <>
2 files changed