--- zzzz-none-000/linux-4.4.271/kernel/rcu/tree.c 2021-06-03 06:22:09.000000000 +0000 +++ dakota-7530ac-750/linux-4.4.271/kernel/rcu/tree.c 2023-01-11 09:25:44.000000000 +0000 @@ -392,6 +392,9 @@ module_param(qhimark, long, 0444); module_param(qlowmark, long, 0444); +int rcu_cpu_stall_panic __read_mostly; /* 1 = panic when cpu stall. */ +module_param(rcu_cpu_stall_panic, int, 0644); + static ulong jiffies_till_first_fqs = ULONG_MAX; static ulong jiffies_till_next_fqs = ULONG_MAX; @@ -1339,6 +1342,8 @@ rcu_dump_cpu_stacks(rsp); + if (rcu_cpu_stall_panic) + panic("print_cpu_stall"); raw_spin_lock_irqsave(&rnp->lock, flags); if (ULONG_CMP_GE(jiffies, READ_ONCE(rsp->jiffies_stall))) WRITE_ONCE(rsp->jiffies_stall,