git: kernel - Fix overflow in alist and blist code
Matthew Dillon
dillon at crater.dragonflybsd.org
Fri Feb 6 14:39:39 PST 2026
commit 7bffb93ef91a2d772902c66b2cd4063e3c4de3bb
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date: Fri Feb 6 14:33:17 2026 -0800
kernel - Fix overflow in alist and blist code
* This code tracks swap space and large blocks of contiguous DMA memory.
* Fix overflows in array size calculations that did not take into
account terminator entries.
(a) Remove terminals from alists entirely.
(b) Account for space used by the terminator in blists.
Found-by: tuxillo / AI
Summary of changes:
sys/kern/subr_alist.c | 81 ++++++++++++++++++++++++++++++++++++++-------------
sys/kern/subr_blist.c | 9 ++++--
2 files changed, 68 insertions(+), 22 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/7bffb93ef91a2d772902c66b2cd4063e3c4de3bb
--
DragonFly BSD source repository
More information about the Commits
mailing list