Skip to contentSkip to conversation

bitmap fix for 6.17-rc5

GIT PULL Merged Yury Norov 2 participants 2 messages Sep 3, 2025

lore
Share & tools
lore

Yury Norov

author
#0 lore raw

Hi Linus,

Please pull the NULL dereference fix for sched_numa_find_nth_cpu().

Thanks,
Yury

The following changes since commit e6b9dce0aeeb91dfc0974ab87f02454e24566182:

Merge tag 'sound-6.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound (2025-09-02 13:38:07 -0700)

are available in the Git repository at:

https://github.com/norov/linux.git tags/bitmap-for-6.17-rc5

for you to fetch changes up to 5ebf512f335053a42482ebff91e46c6dc156bf8c:

sched: Fix sched_numa_find_nth_cpu() if mask offline (2025-09-03 12:20:06 -0400)

----------------------------------------------------------------
bitmap-for-6.17-rc5

sched_numa_find_nth_cpu() uses a bsearch to look for the 'closest' CPU in sched_domains_numa_masks and given cpus mask. However they might not intersect if all CPUs in the cpus mask are offline. bsearch will return NULL in that case, bail out instead of dereferencing a bogus pointer.

----------------------------------------------------------------
Christian Loehle (1):
sched: Fix sched_numa_find_nth_cpu() if mask offline

 kernel/sched/topology.c | 2 ++
 1 file changed, 2 insertions(+)