summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2025-12-06 20:01:16 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2025-12-15 12:05:37 +0000
commiteb972eab0794dedeef5b3b1845e5f9a78793f184 (patch)
tree58d2d287c6214025a6262de84dac4a09016e0423 /tools
parentb7737c38e7cb611c2fbd87af3b09afeb92c96fe7 (diff)
lkdtm/bugs: Add cases for BUG and PANIC occurring in hardirq context
Add lkdtm cases to trigger a BUG() or panic() from hardirq context. This is useful for testing pstore behavior being invoked from such contexts. Reviewed-by: Kees Cook <kees@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/lkdtm/tests.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/lkdtm/tests.txt b/tools/testing/selftests/lkdtm/tests.txt
index cff124c1eddd..67cd53715d93 100644
--- a/tools/testing/selftests/lkdtm/tests.txt
+++ b/tools/testing/selftests/lkdtm/tests.txt
@@ -1,6 +1,8 @@
#PANIC
#PANIC_STOP_IRQOFF Crashes entire system
+#PANIC_IN_HARDIRQ Crashes entire system
BUG kernel BUG at
+#BUG_IN_HARDIRQ Crashes entire system
WARNING WARNING:
WARNING_MESSAGE message trigger
EXCEPTION