CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2022/08/13 10:02:15

Modified files:
        regress/sys/uvm/blist: Makefile 
        sys/kern       : subr_blist.c 
Added files:
        regress/sys/uvm/blist: test-6.in test-6.out 

Log message:
blist: fix a possible blist corruption with blist_alloc() due to unsigned
swblk_t on OpenBSD.

reorder if condition in blst_meta_alloc(), in order to check if the node is
'Terminator' node first (and leave the loop).

DragonFlyBSD is unaffected by it as swblk_t is signed (and the first condition
isn't taken).

add a regress test for it.

while here, more the KASSERT() to KDASSERT(). it is useful but only with DEBUG.

ok miod@ todd@

Reply via email to