Setting negative PANIC_TIMEOUT values not respected

From: Donald Carr
Date: Fri Mar 08 2024 - 14:21:50 EST


despite there being existing defconfigs which specify negative values,
this channel does not actually appear to work, and the kernel behaves
as if the sign is being discarded. A PANIC_TIMEOUT=-1 reboots after a
second, not immediately.

https://bugzilla.kernel.org/show_bug.cgi?id=218574#c0

Hardcoding the value in situ works, passing it via defconfig not so
much. I assume the negative value code path is intended for
consumption :D

Yours sincerely,
Donald

---
My apologies for the noise, I am trying to follow:

https://www.kernel.org/doc/html/latest/admin-guide/reporting-issues.html

but:

└─[148] <git:(master 1874fe7ae927✱✈) > ./scripts/get_maintainer.pl
/kernel/panic.c
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> (commit_signer:3/6=50%)
"Peter Zijlstra (Intel)" <peterz@xxxxxxxxxxxxx> (commit_signer:2/6=33%)
Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
(commit_signer:2/6=33%,authored:2/6=33%,added_lines:2/18=11%,removed_lines:2/14=14%)
Kefeng Wang <wangkefeng.wang@xxxxxxxxxx>
(commit_signer:1/6=17%,authored:1/6=17%,added_lines:1/18=6%,removed_lines:1/14=7%)
Ingo Molnar <mingo@xxxxxxxxxx> (commit_signer:1/6=17%)
Arnd Bergmann <arnd@xxxxxxxx>
(authored:1/6=17%,added_lines:1/18=6%,removed_lines:2/14=14%)
Uros Bizjak <ubizjak@xxxxxxxxx>
(authored:1/6=17%,added_lines:13/18=72%,removed_lines:9/14=64%)
Lukas Wunner <lukas@xxxxxxxxx> (authored:1/6=17%,added_lines:1/18=6%)

has no "supporter", so patient zero gets the to: field.

--
-------------------------------
°v° Donald Carr
/(_)\ Chaos Reins
^ ^ http://chaos-reins.com/