]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kunit: make FAULT_TEST default to n when PANIC_ON_OOPS
authorBrendan Jackman <jackmanb@google.com>
Sun, 7 Dec 2025 02:17:10 +0000 (02:17 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 15 Dec 2025 16:27:19 +0000 (09:27 -0700)
commitc33b68801fbe9d5ee8a9178beb5747ec65873530
treec3c493186e41c3d4f0a824ba083c1875be1bf218
parent726c93b0408f3aedc87349e97fb9b4741131908b
kunit: make FAULT_TEST default to n when PANIC_ON_OOPS

As describe in the help string, the user might want to disable these
tests if they don't like to see stacktraces/BUG etc in their kernel log.

However, if they enable PANIC_ON_OOPS, these tests also crash the
machine, which it's safe to assume _almost_ nobody wants.

One might argue that _absolutely_ nobody ever wants their kernel to
crash so this should just be a hard dependency instead of a default.
However, since this is rather special code that's anyway concerned with
deliberately doing "bad" things, the normal rules don't seem to apply,
hence prefer flexibility and allow users to set up a crashing Kconfig if
they so choose.

Link: https://lore.kernel.org/r/20251207-kunit-fault-no-panic-v1-1-2ac932f26864@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/Kconfig