Re: [PATCH] mm/mempolicy: use one node set for interleave weights

From: David Hildenbrand

Date: Thu Nov 05 2026 - 05:08:17 EST


On Fri, 30 Oct 2026 12:10:46 -0400, Gregory Price (Meta) wrote:
> From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>
> Switching weighted interleave back to automatic mode while memory is
> being onlined can cause a kernel divide error on x86, and a panic if
> panic_on_oops is set.
>
> reduce_interleave_weights() scans N_MEMORY three times, but hotplug
> can cause N_MEMORY to change at runtime - and torn reads on that
> nodemask can cause a total sum of zero bandwidth. A node that
> was hot-unplugged and then hotplugged back can then cause this
> loop to generate a div/0.
>
> [...]

Applied, thanks!

tree: mm/core.git
branch: mempolicy-7.5.misc

Applied patches will appear soon in mm-next, followed by linux-next.

Please report any outstanding bugs that were missed during review, so we
can either drop the patch series or decide how to fix it up.

It is encouraged to provide Acked-bys, Reviewed-bys, and Tested-bys even
though the patches have already been applied. If possible, patch trailers
will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. Further, this is not a guarantee that the
patches will go upstream. If in doubt, please check the listed branch.

[1/1] mm/mempolicy: use one node set for interleave weights
https://git.kernel.org/mm/core/c/f6484ebb

--
Cheers,

David