From: sashiko-bot@kernel.org
To: "Mete Durlu" <meted@linux.ibm.com>
Cc: "Heiko Carstens" <hca@linux.ibm.com>,
linux-s390@vger.kernel.org, "Vasily Gorbik" <gor@linux.ibm.com>,
"Alexander Gordeev" <agordeev@linux.ibm.com>
Subject: Re: [PATCH v2 2/3] s390: Implement arch_do_panic
Date: Mon, 27 Jul 2026 10:52:29 +0000 [thread overview]
Message-ID: <20260727105230.45BCC1F00A3A@smtp.kernel.org> (raw)
In-Reply-To: <20260727-arch_do_panic-v2-2-4e25ceb05075@linux.ibm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Moving the s390 on_panic trigger execution to arch_do_panic() causes it to be completely skipped if a non-zero panic_timeout is configured, silently breaking hardware crash dumps.
--
--- Patch [2]: [PATCH v2 2/3] s390: Implement arch_do_panic ---
commit c54479b24863a9224f8701eeac5365ad207e8313
Author: Mete Durlu <meted@linux.ibm.com>
s390: Implement arch_do_panic
This commit moves the s390-specific panic handling out of the panic_notifier
call chain and into the arch_do_panic hook. The stated intention is to
allow the generic panic_timeout to take precedence over the architecture's
user-defined panic behavior.
> diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
> --- a/arch/s390/kernel/ipl.c
> +++ b/arch/s390/kernel/ipl.c
[ ... ]
> @@ -2115,7 +2115,7 @@ static ssize_t on_panic_store(struct kobject *kobj,
> }
> static struct kobj_attribute on_panic_attr = __ATTR_RW(on_panic);
>
> -static void do_panic(void)
> +void arch_do_panic(void)
> {
> lgr_info_log();
> on_panic_trigger.action->fn(&on_panic_trigger);
> stop_run(&on_panic_trigger);
> }
[Severity: High]
If a non-zero panic_timeout is configured, vpanic calls emergency_restart
which never returns.
Since arch_do_panic is invoked at the very end of vpanic after the timeout
logic:
kernel/panic.c:vpanic() {
...
if (panic_timeout != 0) {
...
emergency_restart();
}
...
arch_do_panic();
...
}
Does this mean the s390 hardware dump logic here will be completely skipped
instead of taking lower precedence? Could this regression silently break
crash dumps configured via on_panic=dump when a generic timeout parameter
is set?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260727-arch_do_panic-v2-0-4e25ceb05075@linux.ibm.com?part=2
next prev parent reply other threads:[~2026-07-27 10:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 10:36 [PATCH v2 0/3] Introduce arch_do_panic Mete Durlu
2026-07-27 10:36 ` [PATCH v2 1/3] panic: " Mete Durlu
2026-07-27 10:43 ` sashiko-bot
2026-07-27 12:59 ` Bradley Morgan
2026-07-27 10:36 ` [PATCH v2 2/3] s390: Implement arch_do_panic Mete Durlu
2026-07-27 10:52 ` sashiko-bot [this message]
2026-07-27 13:01 ` Bradley Morgan
2026-07-27 10:36 ` [PATCH v2 3/3] sparc: " Mete Durlu
2026-07-27 10:49 ` sashiko-bot
2026-07-27 13:02 ` Bradley Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260727105230.45BCC1F00A3A@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=agordeev@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=meted@linux.ibm.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox