Skip to content

Commit 42bddab

Browse files
committed
Merge tag 'execve-v7.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull execve fixes from Kees Cook: - binfmt_elf_fdpic: fix AUXV size calculation (Andrei Vagin) - fs/tests: exec: Remove bad test vector * tag 'execve-v7.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux: fs/tests: exec: Remove bad test vector binfmt_elf_fdpic: fix AUXV size calculation for ELF_HWCAP3 and ELF_HWCAP4
2 parents d46d5c8 + c419275 commit 42bddab

3 files changed

Lines changed: 7 additions & 4 deletions

File tree

fs/binfmt_elf_fdpic.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,12 @@ static int create_elf_fdpic_tables(struct linux_binprm *bprm,
595595
#ifdef ELF_HWCAP2
596596
nitems++;
597597
#endif
598+
#ifdef ELF_HWCAP3
599+
nitems++;
600+
#endif
601+
#ifdef ELF_HWCAP4
602+
nitems++;
603+
#endif
598604

599605
csp = sp;
600606
sp -= nitems * 2 * sizeof(unsigned long);

fs/tests/exec_kunit.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ static const struct bprm_stack_limits_result bprm_stack_limits_results[] = {
9494
{ { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * (_STK_LIM / 4 * 3 + sizeof(void *)),
9595
.argc = 0, .envc = 0 },
9696
.expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
97-
{ { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * (_STK_LIM / 4 * + sizeof(void *)),
98-
.argc = 0, .envc = 0 },
99-
.expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
10097
{ { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * _STK_LIM,
10198
.argc = 0, .envc = 0 },
10299
.expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },

include/linux/auxvec.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
#include <uapi/linux/auxvec.h>
66

7-
#define AT_VECTOR_SIZE_BASE 22 /* NEW_AUX_ENT entries in auxiliary table */
7+
#define AT_VECTOR_SIZE_BASE 24 /* NEW_AUX_ENT entries in auxiliary table */
88
/* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */
99
#endif /* _LINUX_AUXVEC_H */

0 commit comments

Comments
 (0)