summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/dns/tcpmsg.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-01-18 09:00:52 +0000
committervisa <visa@openbsd.org>2020-01-18 09:00:52 +0000
commit8afab49bc412b1a0e516f2223dd98c44179643f0 (patch)
treeb32c4c526bcdaf6ad73642544c67956188d313e6 /usr.sbin/bind/lib/dns/tcpmsg.c
parentMake klist_invalidate() more careful and general. Acquire knotes before (diff)
downloadwireguard-openbsd-8afab49bc412b1a0e516f2223dd98c44179643f0.tar.xz
wireguard-openbsd-8afab49bc412b1a0e516f2223dd98c44179643f0.zip
Invalidate knote list of uhid(4) after device detach. This prevents
a crash that can happen if a uhid(4) device is detached while kqueue still holds references to knotes that point to the device. The invalidation has to be done after vdevgone(). This order ensures that the file descriptors return an error or EOF when kevent(2) returns the EOF events. Crash reported and fix tested by Greg Steuck OK mpi@
Diffstat (limited to 'usr.sbin/bind/lib/dns/tcpmsg.c')
0 files changed, 0 insertions, 0 deletions