From: sashiko-bot@kernel.org
To: "Mike Rapoport" <rppt@kernel.org>
Cc: "Andrew Morton" <akpm@linux-foundation.org>,
"David Hildenbrand" <david@kernel.org>,
linux-mm@kvack.org
Subject: Re: [PATCH] mm/fake-numa: fix leak of the distance table copy on errors
Date: Thu, 03 Dec 2026 16:55:01 +0000 [thread overview]
Message-ID: <sashiko-outbox-248221@kernel.org> (raw)
In-Reply-To: <20261202164612.1573222-1-rppt@kernel.org>
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] mm/fake-numa: missing Signed-off-by trailer in commit message
--
commit 6fee39a2a55ee7144e4b3c511eb81670693a5b69
Author: Mike Rapoport (Microsoft) <rppt@kernel.org>
> mm/fake-numa: fix leak of the distance table copy on errors
>
> numa_emulation() copies the physical distance table before calling
> fix_pxm_node_maps(), but if fix_pxm_node_maps() fails, the copy is never
> freed.
>
> This only happens with numa=fake= setups that fix_pxm_node_maps() already
> warns about, and leaks a single page on systems with up to 64 nodes.
>
> Free the copy at no_emu. memblock_free() ignores NULL, so this is safe for
> the errors that happen before the table is copied.
>
> Reported-by: Sashiko <sashiko-bot@kernel.org>
> Closes: https://sashiko.dev/bug/linux-96a473a0-2815-4091-910e-970513fa6467
> Fixes: 63db8170bf34 ("mm/fake-numa: allow later numa node hotplug")
[Severity: High]
The commit message is missing a Signed-off-by trailer.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202164612.1573222-1-rppt@kernel.org?part=1
next prev parent reply other threads:[~2026-12-03 16:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 16:46 [PATCH] mm/fake-numa: fix leak of the distance table copy on errors Mike Rapoport
2026-12-02 16:54 ` David Hildenbrand (Arm)
2026-12-02 18:52 ` + mm-fake-numa-fix-leak-of-the-distance-table-copy-on-errors.patch added to mm-unstable branch Andrew Morton
2026-12-03 16:55 ` sashiko-bot [this message]
2026-12-03 19:33 ` [PATCH] mm/fake-numa: fix leak of the distance table copy on errors Joshua Hahn
2026-12-04 14:47 ` Sang-Heon Jeon
2026-12-05 19:38 ` [merged mm/memblock.git] mm-fake-numa-fix-leak-of-the-distance-table-copy-on-errors.patch removed from -mm tree Andrew Morton
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=sashiko-outbox-248221@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=david@kernel.org \
--cc=linux-mm@kvack.org \
--cc=rppt@kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.