linux-yocto/mm/kfence
Marco Elver f03ad37824 kfence: skip __GFP_THISNODE allocations on NUMA systems
[ Upstream commit e64f81946a ]

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: 236e9f1538 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-03-13 12:50:50 +01:00
..
core.c kfence: skip __GFP_THISNODE allocations on NUMA systems 2025-03-13 12:50:50 +01:00
kfence_test.c
kfence.h mm: kfence: fix objcgs vector allocation 2022-05-01 17:22:28 +02:00
Makefile kfence: avoid passing -g for test 2023-03-30 12:47:58 +02:00
report.c panic: Consolidate open-coded panic_on_warn checks 2023-02-01 08:27:22 +01:00