Skip to content

Commit 1b5fe53

Browse files
committed
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
2 parents 04c8aba + c6a09e3 commit 1b5fe53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/binfmt_elf_fdpic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -589,6 +589,9 @@ static int create_elf_fdpic_tables(struct linux_binprm *bprm,
589589

590590
if (bprm->have_execfd)
591591
nitems++;
592+
#ifdef ELF_HWCAP2
593+
nitems++;
594+
#endif
592595

593596
csp = sp;
594597
sp -= nitems * 2 * sizeof(unsigned long);

0 commit comments

Comments
 (0)