summaryrefslogtreecommitdiff
path: root/sys-kernel/cairn-sources/files/5.10.4/hardened-patches/0014-enable-PANIC_ON_OOPS-by-default.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/cairn-sources/files/5.10.4/hardened-patches/0014-enable-PANIC_ON_OOPS-by-default.patch')
-rw-r--r--sys-kernel/cairn-sources/files/5.10.4/hardened-patches/0014-enable-PANIC_ON_OOPS-by-default.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys-kernel/cairn-sources/files/5.10.4/hardened-patches/0014-enable-PANIC_ON_OOPS-by-default.patch b/sys-kernel/cairn-sources/files/5.10.4/hardened-patches/0014-enable-PANIC_ON_OOPS-by-default.patch
new file mode 100644
index 000000000000..744551cbbfeb
--- /dev/null
+++ b/sys-kernel/cairn-sources/files/5.10.4/hardened-patches/0014-enable-PANIC_ON_OOPS-by-default.patch
@@ -0,0 +1,34 @@
+From d3ac7805246b7383840108bb3bc0a0f4fd907837 Mon Sep 17 00:00:00 2001
+From: Daniel Micay <danielmicay@gmail.com>
+Date: Wed, 3 May 2017 12:09:17 -0400
+Subject: [PATCH 014/112] enable PANIC_ON_OOPS by default
+
+Signed-off-by: Daniel Micay <danielmicay@gmail.com>
+---
+ lib/Kconfig.debug | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
+index 11068e77d146..45b169177fb9 100644
+--- a/lib/Kconfig.debug
++++ b/lib/Kconfig.debug
+@@ -894,6 +894,7 @@ menu "Debug Oops, Lockups and Hangs"
+
+ config PANIC_ON_OOPS
+ bool "Panic on Oops"
++ default y
+ help
+ Say Y here to enable the kernel to panic when it oopses. This
+ has the same effect as setting oops=panic on the kernel command
+@@ -903,7 +904,7 @@ config PANIC_ON_OOPS
+ anything erroneous after an oops which could result in data
+ corruption or other issues.
+
+- Say N if unsure.
++ Say Y if unsure.
+
+ config PANIC_ON_OOPS_VALUE
+ int
+--
+2.30.0
+