From: Franklin-Qi <yusq77@gmail.com>
To: Vlastimil Babka <vbabka@kernel.org>
Cc: "Miguel Ojeda" <ojeda@kernel.org>,
"Danilo Krummrich" <dakr@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
rust-for-linux@vger.kernel.org, linux-mm@kvack.org,
"Boqun Feng" <boqun@kernel.org>, "Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Trevor Gross" <tmgross@umich.edu>,
"Daniel Almeida" <daniel.almeida@collabora.com>,
"Tamir Duberstein" <tamird@kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"Onur Özkan" <work@onurozkan.dev>,
"Lorenzo Stoakes" <ljs@kernel.org>,
"Liam R . Howlett" <liam@infradead.org>,
"Uladzislau Rezki" <urezki@gmail.com>,
"Harry Yoo" <harry@kernel.org>,
"Georgios Androutsopoulos" <georgeandrout13@gmail.com>,
"Vitaly Wool" <vitaly.wool@konsulko.se>,
stable@vger.kernel.org, Franklin-Qi <yusq77@gmail.com>
Subject: Re: [PATCH] rust: alloc: reject offline NUMA nodes in allocator
Date: Tue, 1 Dec 2026 12:20:13 +0800 [thread overview]
Message-ID: <20261201042013.107172-1-yusq77@gmail.com> (raw)
In-Reply-To: <73c18685-8115-4ee5-876d-a276902488aa@kernel.org>
On 11/20/26 10:47, Vlastimil Babka (SUSE) wrote:
> IIRC we however don't remove node data on offline, so the NULL dereference
> won't happen?
You're right -- offlining does not free NODE_DATA, so the v1 commit message
was wrong about that causal link.
The GPF comes from never-possible node ids that are still < MAX_NUMNODES:
NumaNode::new() accepts them, but free_area_init() only initializes NODE_DATA
for possible nodes, so NODE_DATA(nid) stays NULL. I hit that with
possible/online = {0} and nid = 2 under KASAN.
I'll keep the node_online() check (never-possible nodes are never online, and
it also matches warn_if_node_offline() for offline nodes) and send a v2 that
fixes the commit message and comments.
Thanks,
Franklin-Qi
next prev parent reply other threads:[~2026-12-01 4:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 2:16 [PATCH] rust: alloc: reject offline NUMA nodes in allocator Franklin-Qi
2026-11-20 9:47 ` Vlastimil Babka (SUSE)
2026-12-01 4:20 ` Franklin-Qi [this message]
2026-12-01 4:20 ` [PATCH v2] rust: alloc: reject non-online " Franklin-Qi
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=20261201042013.107172-1-yusq77@gmail.com \
--to=yusq77@gmail.com \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=dakr@kernel.org \
--cc=daniel.almeida@collabora.com \
--cc=gary@garyguo.net \
--cc=georgeandrout13@gmail.com \
--cc=harry@kernel.org \
--cc=liam@infradead.org \
--cc=linux-mm@kvack.org \
--cc=ljs@kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=tamird@kernel.org \
--cc=tmgross@umich.edu \
--cc=urezki@gmail.com \
--cc=vbabka@kernel.org \
--cc=vitaly.wool@konsulko.se \
--cc=work@onurozkan.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