CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/07/31 09:07:59
Modified files:
sys/dev/dt : dt_dev.c
Log message:
Fix sleeping race in dt(4) ioctl(2).
Functions dt_ioctl_record_start() and dt_ioctl_record_stop() are
protected by kernel lock. This means there should be no sleeps as
they release the kernel lock. rw_enter_write() may sleep which
breaks the locking assumptions.
Enlarge the critical section within sleeping lock to the beginning.
This gives the benefit that more variables are protected by dt_lock.
Reported-by: [email protected]
OK sashan@