summaryrefslogtreecommitdiff
path: root/include/linux/i2c/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2026-02-25 21:15:23 +0000
committerTejun Heo <tj@kernel.org>2026-02-25 13:12:28 -1000
commit2a064262eb378263792cf1fb044de631ac41bcc5 (patch)
tree1326c9f7e4326650e1c5c675c34ca384740ddd65 /include/linux/i2c/git@git.tavy.me:linux.git
parent83236b2e43dba00bee5b82eb5758816b1a674f6a (diff)
sched_ext: Fix out-of-bounds access in scx_idle_init_masks()
scx_idle_node_masks is allocated with num_possible_nodes() elements but indexed by NUMA node IDs via for_each_node(). On systems with non-contiguous NUMA node numbering (e.g. nodes 0 and 4), node IDs can exceed the array size, causing out-of-bounds memory corruption. Use nr_node_ids instead, which represents the maximum node ID range and is the correct size for arrays indexed by node ID. Fixes: 7c60329e3521 ("sched_ext: Add NUMA-awareness to the default idle selection policy") Signed-off-by: David Carlier <devnexen@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions