diff options
author | 2024-08-30 12:32:53 +1200 | |
---|---|---|
committer | 2024-08-30 12:32:53 +1200 | |
commit | 1b5fe53681d9c388f1600310fe3488091701d4d0 (patch) | |
tree | 755b9f34856cbdc6e6913979a6fadfbad37eee83 | |
parent | dcache: keep dentry_hashtable or d_hash_shift even when not used (diff) | |
parent | binfmt_elf_fdpic: fix AUXV size calculation when ELF_HWCAP2 is defined (diff) | |
download | wireguard-linux-1b5fe53681d9c388f1600310fe3488091701d4d0.tar.xz wireguard-linux-1b5fe53681d9c388f1600310fe3488091701d4d0.zip |
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
-rw-r--r-- | fs/binfmt_elf_fdpic.c | 3 |
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); |