CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2019/05/01 00:11:46
Modified files:
sys/net : if_tun.c
Log message:
pretty much all of tun_wakeup needs to be protected with KERNEL_LOCK
tun_wakeup is called from the network stack, which generally runs
with NET_LOCK, not KERNEL_LOCK, which is a problem when it calls
into things like csignal or kq code. this started causing corruption
and panics of a list inside the kq code, which got reported to
bugs@.
this version of the fix is ok mpi@ (even though he hasn't seen it)
an earlier but far trickier fix was ok visa@
the bug was reported by Olivier Antoine, and again by jmc@ privately.