summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2024-08-30 12:32:53 +1200
committerLinus Torvalds <torvalds@linux-foundation.org>2024-08-30 12:32:53 +1200
commit1b5fe53681d9c388f1600310fe3488091701d4d0 (patch)
tree755b9f34856cbdc6e6913979a6fadfbad37eee83 /fs
parent04c8abae1b7b2abeb638a3d5d5950fa2a031c244 (diff)
parentc6a09e342f8e6d3cac7f7c5c14085236aca284b9 (diff)
Merge tag 'execve-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull execve fix from Kees Cook: - binfmt_elf_fdpic: fix AUXV size with ELF_HWCAP2 (Max Filippov) * tag 'execve-v6.11-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined
Diffstat (limited to 'fs')
-rw-r--r--fs/binfmt_elf_fdpic.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/binfmt_elf_fdpic.c b/fs/binfmt_elf_fdpic.c
index 28a3439f163a..4fe5bb9f1b1f 100644
--- a/fs/binfmt_elf_fdpic.c
+++ b/fs/binfmt_elf_fdpic.c
@@ -589,6 +589,9 @@ static int create_elf_fdpic_tables(struct linux_binprm *bprm,
if (bprm->have_execfd)
nitems++;
+#ifdef ELF_HWCAP2
+ nitems++;
+#endif
csp = sp;
sp -= nitems * 2 * sizeof(unsigned long);