On 19.2.2021. 21:50, Vitaliy Makkoveev wrote: > As it was reported [1] switch(4) triggers NET_ASSERT_LOCKED() while > we perform ifconfig(8) destroy. ifpromisc() requires netlock to be held. > This is true while switch_port_detach() and underlay ifpromisc() called > through switch_ioctl(). But while we destroy switch(4) interface we call > ifpromisc() without netlock. We can't add netlock just around > ifpromisc() because switch_port_detach() which calls it called by > switch_ioctl() with netlock held and by switch_clone_destroy() without > netlock held. So the solution is to add netlock to destroy path. Diff > below adds it around the whole foreach loop where we call > switch_port_detach(). > > 1. https://marc.info/?l=openbsd-bugs&m=161338077403538&w=2
i'm confirming that there are no more logs .. tnx ..