From: Dave Hansen <dave.hansen@intel.com>
To: Florent Revest <revest@chromium.org>,
bp@alien8.de, linux-kernel@vger.kernel.org
Cc: tglx@linutronix.de, mingo@redhat.com,
dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com,
stable@vger.kernel.org
Subject: Re: [PATCH] x86/microcode/AMD: Fix out-of-bounds on systems with CPU-less NUMA nodes
Date: Fri, 7 Mar 2025 06:56:03 -0800 [thread overview]
Message-ID: <2cf9798f-1a89-46e1-b1a4-7deec9cb7e40@intel.com> (raw)
In-Reply-To: <20250307131243.2703699-1-revest@chromium.org>
On 3/7/25 05:12, Florent Revest wrote:
> for_each_node(nid) {
> - cpu = cpumask_first(cpumask_of_node(nid));
> + mask = cpumask_of_node(nid);
> + if (cpumask_empty(mask))
> + continue;
> +
> + cpu = cpumask_first(mask);
Would for_each_node_with_cpus() trim this down a bit?
next prev parent reply other threads:[~2025-03-07 14:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 13:12 Florent Revest
2025-03-07 14:56 ` Dave Hansen [this message]
2025-03-07 15:58 ` Florent Revest
2025-03-07 16:32 ` Dave Hansen
2025-03-07 16:44 ` Borislav Petkov
2025-03-07 17:18 ` Florent Revest
2025-03-07 19:18 ` Markus Elfring
2025-03-08 5:59 ` Greg KH
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=2cf9798f-1a89-46e1-b1a4-7deec9cb7e40@intel.com \
--to=dave.hansen@intel.com \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=revest@chromium.org \
--cc=stable@vger.kernel.org \
--cc=tglx@linutronix.de \
--cc=x86@kernel.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
all inboxes | Powered by JetHome®