Skip to content

Commit 3ab1d7c

Browse files
keesgregkh
authored andcommitted
fs/tests: exec: Remove bad test vector
[ Upstream commit c4192754e836e0ffed95833509b6ada975b74418 ] Drop an unusable test in the bprm stack limits. Reported-by: Guenter Roeck <linux@roeck-us.net> Closes: https://lore.kernel.org/all/a3e9b1c2-40c1-45df-9fa2-14ee6a7b3fe2@roeck-us.net Fixes: 60371f4 ("exec: Add KUnit test for bprm_stack_limits()") Signed-off-by: Kees Cook <kees@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent cf4b224 commit 3ab1d7c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

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 *) },

0 commit comments

Comments
 (0)