Insert a workaround for per-ifp ioctl being called w/o NET_LOCK().
authormpi <mpi@openbsd.org>
Tue, 25 Sep 2018 13:46:44 +0000 (13:46 +0000)
committermpi <mpi@openbsd.org>
Tue, 25 Sep 2018 13:46:44 +0000 (13:46 +0000)
commit126b881f7106e87cadecac4b4ad6f06b70f71973
tree7032cb17f59b24215e4c766db0de131c1ac7ab7e
parent74fe0421c22907f7817ff13d5bea5c2f45367511
Insert a workaround for per-ifp ioctl being called w/o NET_LOCK().

An example of such code path is vlan_destroy() where we don't want to
grab the lock because this driver is already NET_LOCK()-free.

The real solution to this problem is to stop holding the NET_LOCK() around
driver *_ioctl() routines.

Problem reported & fix tested by Élie Bouttier, ok visa@, bluhm@
sys/dev/pv/if_vio.c