aboutsummaryrefslogtreecommitdiffstats
path: root/mm/page_ext.c
diff options
context:
space:
mode:
authorAnastasia Belova <[email protected]>2024-06-06 08:06:59 +0000
committerAndrew Morton <[email protected]>2024-07-04 02:30:09 +0000
commit5958d35917e1296f46dfc8b8c959732efd6d8d5d (patch)
tree7f400b60c0d7e4464eb1d19fdbd1bd2efb304ca4 /mm/page_ext.c
parentmm/mlock: implement folio_mlock_step() using folio_pte_batch() (diff)
downloadkernel-5958d35917e1296f46dfc8b8c959732efd6d8d5d.tar.gz
kernel-5958d35917e1296f46dfc8b8c959732efd6d8d5d.zip
mm/memory_hotplug: prevent accessing by index=-1
nid may be equal to NUMA_NO_NODE=-1. Prevent accessing node_data array by invalid index with check for nid. Found by Linux Verification Center (linuxtesting.org) with SVACE. Link: https://lkml.kernel.org/r/[email protected] Fixes: e83a437faa62 ("mm/memory_hotplug: introduce "auto-movable" online policy") Signed-off-by: Anastasia Belova <[email protected]> Acked-by: David Hildenbrand <[email protected]> Acked-by: Oscar Salvador <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/page_ext.c')
0 files changed, 0 insertions, 0 deletions