]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
fs/tests: exec: Remove bad test vector
authorKees Cook <kees@kernel.org>
Wed, 18 Mar 2026 18:36:29 +0000 (11:36 -0700)
committerKees Cook <kees@kernel.org>
Wed, 18 Mar 2026 18:41:53 +0000 (11:41 -0700)
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: 60371f43e56b ("exec: Add KUnit test for bprm_stack_limits()")
Signed-off-by: Kees Cook <kees@kernel.org>
fs/tests/exec_kunit.c

index f412d1a0f6bba96886d4b17990da5bf55972e322..1c32cac098cf51ca4c00f9822576abef4cf2908d 100644 (file)
@@ -94,9 +94,6 @@ static const struct bprm_stack_limits_result bprm_stack_limits_results[] = {
        { { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * (_STK_LIM / 4 * 3 + sizeof(void *)),
            .argc = 0, .envc = 0 },
          .expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
-       { { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * (_STK_LIM / 4 *  + sizeof(void *)),
-           .argc = 0, .envc = 0 },
-         .expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },
        { { .p = ULONG_MAX, .rlim_stack.rlim_cur = 4 * _STK_LIM,
            .argc = 0, .envc = 0 },
          .expected_argmin = ULONG_MAX - (_STK_LIM / 4 * 3) + sizeof(void *) },