From: Breno Leitao <leitao@debian.org>
To: Pasha Tatashin <pasha.tatashin@soleen.com>
Cc: Alexander Graf <graf@amazon.com>, Mike Rapoport <rppt@kernel.org>,
Pratyush Yadav <pratyush@kernel.org>,
linux-kernel@vger.kernel.org, kexec@lists.infradead.org,
linux-mm@kvack.org, usamaarif642@gmail.com, rmikey@meta.com,
clm@fb.com, riel@surriel.com, kernel-team@meta.com
Subject: Re: [PATCH RFC] kexec: add option to print previous kernel release after kexec
Date: Tue, 30 Dec 2025 07:11:10 -0800 [thread overview]
Message-ID: <ljo3xdbpwa2kzx5thlki6fc74mpswuwtfqzdl4qyatqi3qjbwm@4prhagytf2ja> (raw)
In-Reply-To: <CA+CK2bDCKQrK3+6832Lxw8fZx_yt+8z0fFPdugC59p1zdSeSZQ@mail.gmail.com>
Hello Pasha,
On Tue, Dec 30, 2025 at 10:03:38AM -0500, Pasha Tatashin wrote:
> On Tue, Dec 30, 2025 at 9:13 AM Breno Leitao <leitao@debian.org> wrote:
> >
> > Introduce a new Kconfig option, CONFIG_KEXEC_SHOW_PREVIOUS_RELEASE,
>
> I don't think we need a config for this. Let's just show the previous
> kernel version unconditionally when KHO is enabled.
>
> > which enables the storage and display of the previous kernel's release
> > version across kexec boots when using Kexec Handover (KHO).
> >
> > Motivation
> > ==========
> >
> > Kernel bugs that depend on the version of the previously running kernel
> > are not uncommon, especially in scenarios where a buggy kernel kexecs
> > into a new one and the issue only manifests in the subsequent kernel.
> >
> > Recent examples include:
> >
> > * eb2266312507 ("x86/boot: Fix page table access in 5-level to 4-level paging transition")
> > * 77d48d39e991 ("efistub/tpm: Use ACPI reclaim memory for event log to avoid corruption")
> > * 64b45dd46e15 ("x86/efi: skip memattr table on kexec boot")
> >
> > As kexec-based reboots become more widespread among Linux users, these
> > issues are becoming increasingly prominent.
> >
> > When such crashes occur, correlating them to the previous kernel version
> > is challenging, especially at scale, where the problem may only appear in
> > specific cases and it is hard to correlate.
> >
> > With the introduction of Kexec Handover (KHO), we now have a reliable
> > mechanism to pass information between kernels. This presents an
> > opportunity to address the problem by carrying the previous kernel's
> > release version to the next kernel and printing it at boot time.
>
> LUO added the number of times a machine has been live updated to help
> debugging problems that are related to live update, perhaps, in
> addition to the previous kernel version, we should also add a number
> of times the machine has been kexec'd. It is useful when a bug
> manifests only after a number of kexec's which is also sometimes a
> case.
Thanks for bringing this up, I am on the same page as you here.
In fact, this was on my TODO list, but I didn't want to send in this RFC
to avoid too much changes/code.
I will wait a bit more and add the number of kexec'ed kernels in the
next revision.
Thanks for your input,
--breno
prev parent reply other threads:[~2025-12-30 15:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-30 14:13 Breno Leitao
2025-12-30 15:03 ` Pasha Tatashin
2025-12-30 15:11 ` Breno Leitao [this message]
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=ljo3xdbpwa2kzx5thlki6fc74mpswuwtfqzdl4qyatqi3qjbwm@4prhagytf2ja \
--to=leitao@debian.org \
--cc=clm@fb.com \
--cc=graf@amazon.com \
--cc=kernel-team@meta.com \
--cc=kexec@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=pasha.tatashin@soleen.com \
--cc=pratyush@kernel.org \
--cc=riel@surriel.com \
--cc=rmikey@meta.com \
--cc=rppt@kernel.org \
--cc=usamaarif642@gmail.com \
/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