Created attachment 192611 [details] kgdb backtrace The change https://svnweb.freebsd.org/base?view=revision&revision=r323477 makes it possible for kernel thread to sleep on sx lock in vlan_ioctl() function while holding mutex bpf_mtx that is prohibited and leads to panic. kgdb session is attached.
This is fixed in HEAD. I'll ask shurd to MFC the fix.
Can you test with r332734 and ensure the issue is resolved?
(In reply to Stephen Hurd from comment #2) I've applied the fix from https://reviews.freebsd.org/D14982. While shutting old kernel down to reboot with new kernel, it paniced again with the same backtrace. Now I run the system with the fix and will respond if something bad happens or in a week in case of normal work.
How's it looking?
(In reply to Stephen Hurd from comment #4) No problems at all with r332734 applied. Thank you!