From ca764d8de0f17bb7e6d44e3d79ea1805276fc521 Mon Sep 17 00:00:00 2001 From: Raja Grewal Date: Wed, 20 Jul 2022 04:06:35 +1000 Subject: [PATCH] force kernel to panic on "oopses" --- etc/default/grub.d/40_kernel_hardening.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/etc/default/grub.d/40_kernel_hardening.cfg b/etc/default/grub.d/40_kernel_hardening.cfg index f3d6487..a6dfb3e 100644 --- a/etc/default/grub.d/40_kernel_hardening.cfg +++ b/etc/default/grub.d/40_kernel_hardening.cfg @@ -53,3 +53,6 @@ GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX extra_latent_entropy" ## https://lkml.org/lkml/2020/7/16/122 ## https://github.com/torvalds/linux/blob/fb1201aececc59990b75ef59fca93ae4aa1e1444/Documentation/admin-guide/kernel-parameters.txt#L835-L848 GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX debugfs=off" + +## Force the kernel to panic on "oopses" (which may be due to false positives) +GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX oops=panic"