CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2021/12/22 15:20:13

Modified files:
        sys/kern       : kern_sysctl.c subr_disk.c 

Log message:
While malloc sleeps, the disk list could change during sysctl.  Then
allocated memory could be too short for the list of disks.  Retry
allocating enough space until it did not change.
The disk list and duid memory are protected by kernel lock.  Use
asserts to mark this explicitly.
Reported-by: syzbot+807423f6868bbfb83...@syzkaller.appspotmail.com
OK anton@ mpi@

Reply via email to