VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Kees Cook <keescook@chromium.org> 2020-03-26 23:48:20 -0700 committer: Borislav Petkov <bp@suse.de> 2020-04-20 19:44:27 +0200 commit: 6e0d6ac5f3d9d90271899f6d340872360fe1caee parent: eaf3f9e61887332d5097dbf0b327b8377546adc5
Commit Summary:
arm64/elf: Disable automatic READ_IMPLIES_EXEC for 64-bit address spaces
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/fs/compat_binfmt_elf.c b/fs/compat_binfmt_elf.c
index aaad4ca1217e..3068d57436b3 100644
--- a/fs/compat_binfmt_elf.c
+++ b/fs/compat_binfmt_elf.c
@@ -113,6 +113,11 @@
 #define	arch_setup_additional_pages compat_arch_setup_additional_pages
 #endif
 
+#ifdef	compat_elf_read_implies_exec
+#undef	elf_read_implies_exec
+#define	elf_read_implies_exec compat_elf_read_implies_exec
+#endif
+
 /*
  * Rename a few of the symbols that binfmt_elf.c will define.
  * These are all local so the names don't really matter, but it