Skip to content

Commit 46a03ea

Browse files
melinoixkees
authored andcommitted
fs/tests: exec: drop duplicate bprm_stack_limits test vectors
Remove duplicate entries from the bprm_stack_limits KUnit test vector table. The duplicates do not add coverage and only increase test size. Signed-off-by: Titouan Ameline de Cadeville <titouan.ameline@gmail.com> Fixes: 60371f4 ("exec: Add KUnit test for bprm_stack_limits()") Link: https://patch.msgid.link/20260203175950.43710-1-titouan.ameline@gmail.com Signed-off-by: Kees Cook <kees@kernel.org>
1 parent 9448598 commit 46a03ea

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

fs/tests/exec_kunit.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,6 @@ static const struct bprm_stack_limits_result bprm_stack_limits_results[] = {
8787
.argc = 0, .envc = ARG_MAX / sizeof(void *) - 1 },
8888
.expected_argmin = ULONG_MAX - sizeof(void *) },
8989
/* Raising rlim_stack / 4 to _STK_LIM / 4 * 3 will see more space. */
90-
{ { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * (_STK_LIM / 4 * 3),
91-
.argc = 0, .envc = 0 },
92-
.expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
9390
{ { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * (_STK_LIM / 4 * 3),
9491
.argc = 0, .envc = 0 },
9592
.expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
@@ -103,9 +100,6 @@ static const struct bprm_stack_limits_result bprm_stack_limits_results[] = {
103100
{ { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * _STK_LIM,
104101
.argc = 0, .envc = 0 },
105102
.expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
106-
{ { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * _STK_LIM,
107-
.argc = 0, .envc = 0 },
108-
.expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
109103
};
110104

111105
static void exec_test_bprm_stack_limits(struct kunit *test)

0 commit comments

Comments
 (0)