From: Mike Rapoport <rppt@kernel.org>
To: sashiko-reviews@lists.linux.dev
Cc: Chris Down <chris@chrisdown.name>,
Pasha Tatashin <pasha.tatashin@soleen.com>,
Pratyush Yadav <pratyush@kernel.org>,
Alexander Graf <graf@amazon.com>,
Baoquan He <baoquan.he@linux.dev>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
kexec@lists.infradead.org, linux-mm@kvack.org,
kernel-team@meta.com, Breno Leitao <leitao@debian.org>
Subject: Re: [PATCH v2 1/7] kho: Reclaim the metadata page left reserved after kexec
Date: Sun, 29 Nov 2026 21:51:19 +0200 [thread overview]
Message-ID: <awyCN49XqQAof3Cn@kernel.org> (raw)
In-Reply-To: <sashiko-outbox-239902@kernel.org>
On Sun, Nov 29, 2026 at 06:28:32PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential
> issue to consider:
> - [Low] kho: missing Fixes trailer for metadata page leak in
> kho_in_kexec_metadata()
> --
>
> commit 7e9850ca466f4abcb7e3445a206026f7ef5a38d7
> Author: Chris Down <chris@chrisdown.name>
>
> > kho: Reclaim the metadata page left reserved after kexec
> >
> > After a KHO kexec, the new kernel keeps the page holding the previous
> > kernel's kexec metadata reserved for as long as it runs. It only needs
> > the page once, since kho_in_kexec_metadata() copies the previous release
> > and the kexec count out of it at boot, and nothing reads it again.
> >
> > Free it with kho_restore_free() once copying is complete.
> >
> > Tested-by: Breno Leitao <leitao@debian.org>
> > Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
> > Signed-off-by: Chris Down <chris@chrisdown.name>
>
> [Severity: Low]
> This fixes a metadata page leak in kho_in_kexec_metadata(). Should it
> include:
>
> Fixes: 76aa46b9e404 ("kho: kexec-metadata: track previous kernel chain")
Nah, it's not worth the hassle.
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/cover.1795857773.git.chris@chrisdown.name?part=1
--
Sincerely yours,
Mike.
next prev parent reply other threads:[~2026-11-29 19:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 18:27 [PATCH v2 0/7] kho, liveupdate: KHO/LUO observability Chris Down
2026-11-28 18:27 ` [PATCH v2 1/7] kho: Reclaim the metadata page left reserved after kexec Chris Down
2026-11-29 18:28 ` sashiko-bot
2026-11-29 19:51 ` Mike Rapoport [this message]
2026-11-28 18:27 ` [PATCH v2 2/7] liveupdate: Make failed retrieves distinguishable from dropped files Chris Down
2026-11-29 20:13 ` Mike Rapoport
2026-11-28 18:27 ` [PATCH v2 3/7] selftests/liveupdate: Catch incorrect file accounting across kexec Chris Down
2026-11-28 18:27 ` [PATCH v2 4/7] kho: Expose rejected handovers that look like cold boots Chris Down
2026-11-28 18:27 ` [PATCH v2 5/7] kho: Report how much handover memory is preserved and restored Chris Down
2026-11-28 18:27 ` [PATCH v2 6/7] liveupdate: Expose the sequence number for consecutive live updates Chris Down
2026-11-28 18:27 ` [PATCH v2 7/7] selftests/liveupdate: Check handover revival, sequence and memory stats Chris Down
2026-11-29 18:28 ` [PATCH v2 0/7] kho, liveupdate: KHO/LUO observability sashiko-bot
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=awyCN49XqQAof3Cn@kernel.org \
--to=rppt@kernel.org \
--cc=baoquan.he@linux.dev \
--cc=chris@chrisdown.name \
--cc=corbet@lwn.net \
--cc=graf@amazon.com \
--cc=kernel-team@meta.com \
--cc=kexec@lists.infradead.org \
--cc=leitao@debian.org \
--cc=linux-mm@kvack.org \
--cc=pasha.tatashin@soleen.com \
--cc=pratyush@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=skhan@linuxfoundation.org \
/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