Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 33967ca9 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "defconfig: Enable PANIC_ON_RECURSIVE_FAULT on sdxpoorwills target"

parents 9b0f7eab cd845496
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -399,6 +399,7 @@ CONFIG_NLS_ISO8859_1=y
CONFIG_PRINTK_TIME=y
CONFIG_DEBUG_INFO=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_PANIC_ON_RECURSIVE_FAULT=y
CONFIG_PANIC_TIMEOUT=5
# CONFIG_SCHED_DEBUG is not set
CONFIG_SCHEDSTATS=y
+1 −0
Original line number Diff line number Diff line
@@ -411,6 +411,7 @@ CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_PANIC_ON_RECURSIVE_FAULT=y
CONFIG_PANIC_TIMEOUT=5
CONFIG_SCHEDSTATS=y
CONFIG_DEBUG_SPINLOCK=y
+4 −0
Original line number Diff line number Diff line
@@ -765,7 +765,11 @@ void __noreturn do_exit(long code)
	 * leave this task alone and wait for reboot.
	 */
	if (unlikely(tsk->flags & PF_EXITING)) {
#ifdef CONFIG_PANIC_ON_RECURSIVE_FAULT
		panic("Recursive fault!\n");
#else
		pr_alert("Fixing recursive fault but reboot is needed!\n");
#endif
		/*
		 * We can do this unlocked here. The futex code uses
		 * this flag just to verify whether the pi state
+11 −0
Original line number Diff line number Diff line
@@ -834,6 +834,17 @@ config BOOTPARAM_SOFTLOCKUP_PANIC_VALUE
	default 0 if !BOOTPARAM_SOFTLOCKUP_PANIC
	default 1 if BOOTPARAM_SOFTLOCKUP_PANIC

config PANIC_ON_RECURSIVE_FAULT
	bool "Panic on recursive faults during task exit"
	help
	  Panic upon the detection of a recursive fault during task exit,
	  rather than putting the task into an uninterruptible sleep.
	  This is particularly useful for debugging system hangs in
	  scenarios where the task experiencing the fault is critical
	  for system operation, rendering the system inoperable.

	  Say N if unsure.

config DETECT_HUNG_TASK
	bool "Detect Hung Tasks"
	depends on DEBUG_KERNEL