CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2024/01/02 09:32:48

Modified files:
        sys/conf       : GENERIC newvers.sh 
        sys/dev/dt     : dt_dev.c 

Log message:
Prevent simultaneous dt(4) open.

Syskaller has hit the assertion "dtlookup(unit) == NULL" by opening
dt(4) device in two parallel threads.  Convert kassert into if
condition.  Move check that device is not used after sleep points
in malloc.  The list dtdev_list is protected by kernel lock which
is released during sleep.

Reported-by: syzbot+6d66c21f796c81794...@syzkaller.appspotmail.com
OK miod@

Reply via email to