aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorYury Norov <[email protected]>2023-08-19 07:12:35 -0700
committerIngo Molnar <[email protected]>2023-09-15 13:48:10 +0200
commit617f2c38cb5ce60226042081c09e2ee3a90d03f8 (patch)
tree48ef1b7714d3e7dd1bfb0a25f9b55e0bcc2d6147 /tools/perf/scripts/python/bin
parentd1db9fb432d50b0eecdfdd85d17cc15a59cc093b (diff)
sched/topology: Fix sched_numa_find_nth_cpu() in CPU-less case
When the node provided by user is CPU-less, corresponding record in sched_domains_numa_masks is not set. Trying to dereference it in the following code leads to kernel crash. To avoid it, start searching from the nearest node with CPUs. Fixes: cd7f55359c90 ("sched: add sched_numa_find_nth_cpu()") Reported-by: Yicong Yang <[email protected]> Reported-by: Guenter Roeck <[email protected]> Signed-off-by: Yury Norov <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Reviewed-by: Yicong Yang <[email protected]> Cc: Mel Gorman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Closes: https://lore.kernel.org/lkml/CAAH8bW8C5humYnfpW3y5ypwx0E-09A3QxFE1JFzR66v+mO4XfA@mail.gmail.com/T/ Closes: https://lore.kernel.org/lkml/ZMHSNQfv39HN068m@yury-ThinkPad/T/#mf6431cb0b7f6f05193c41adeee444bc95bf2b1c4
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions