bitmap fix for 6.17-rc5
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(+)
The pull request you sent on Wed, 3 Sep 2025 13:12:35 -0400:
The pull request you sent on Wed, 3 Sep 2025 13:12:35 -0400:
Quoted 1 line
https://github.com/norov/linux.git tags/bitmap-for-6.17-rc5
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/ec299e4dc21e8cc476c2c848813919db79492dda
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html