]> www.infradead.org Git - nvme.git/commit
kfence: skip __GFP_THISNODE allocations on NUMA systems
authorMarco Elver <elver@google.com>
Fri, 24 Jan 2025 12:01:38 +0000 (13:01 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 1 Feb 2025 11:53:26 +0000 (03:53 -0800)
commite64f81946adf68cd75e2207dd9a51668348a4af8
tree7b0a03b5ca1d4e6c50a68db3deaa382d5d1bb431
parent6438ef381c183444f7f9d1de18f22661cba1e946
kfence: skip __GFP_THISNODE allocations on NUMA systems

On NUMA systems, __GFP_THISNODE indicates that an allocation _must_ be on
a particular node, and failure to allocate on the desired node will result
in a failed allocation.

Skip __GFP_THISNODE allocations if we are running on a NUMA system, since
KFENCE can't guarantee which node its pool pages are allocated on.

Link: https://lkml.kernel.org/r/20250124120145.410066-1-elver@google.com
Fixes: 236e9f153852 ("kfence: skip all GFP_ZONEMASK allocations")
Signed-off-by: Marco Elver <elver@google.com>
Reported-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Christoph Lameter <cl@linux.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Chistoph Lameter <cl@linux.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/kfence/core.c