diff options
| author | Oscar Salvador <[email protected]> | 2024-06-12 10:29:36 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-07-03 19:30:10 -0700 |
| commit | 09a5336228420af4803c7bbdf91f8f24fc0942bf (patch) | |
| tree | 7c7351965768f143b9be2cee20f34419378f74f5 /tools/perf/scripts/python | |
| parent | b79d715c43354010775862cfcd2d01cb04d0de47 (diff) | |
mm/hugetlb: guard dequeue_hugetlb_folio_nodemask against NUMA_NO_NODE uses
dequeue_hugetlb_folio_nodemask() expects a preferred node where to get the
hugetlb page from. It does not expect, though, users to pass
NUMA_NO_NODE, otherwise we will get trash when trying to get the zonelist
from that node. All current users are careful enough to not pass
NUMA_NO_NODE, but it opens the door for new users to get this wrong since
it is not documented [0].
Guard against this by getting the local nid if NUMA_NO_NODE was passed.
[0] https://lore.kernel.org/linux-mm/[email protected]/
Closes: https://lore.kernel.org/linux-mm/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Oscar Salvador <[email protected]>
Reported-by: [email protected]
Tested-by: [email protected]
Reviewed-by: Muchun Song <[email protected]>
Acked-by: Vivek Kasireddy <[email protected]>
Cc: Oscar Salvador <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions