debug.witness.badstacks: Number of known direct relationships is 902 Lock order reversal between "bpf global lock"(sx) and "if_lagg sx"(sx)! Lock order "bpf global lock"(sx) -> "if_lagg sx"(sx) first seen at: #0 0xffffffff81239ac3 at witness_lock_order_add+0x2c3 #1 0xffffffff81238b34 at witness_checkorder+0x5a4 #2 0xffffffff8119e51c at _sx_xlock+0x19c #3 0xffffffff832c73bd at lagg_ioctl+0x153d #4 0xffffffff8132f341 at if_setflag+0x241 #5 0xffffffff8132f06a at ifpromisc+0x5a #6 0xffffffff8131ba02 at bpf_detachd_locked+0x4a2 #7 0xffffffff813201f2 at bpf_detachd+0x32 #8 0xffffffff81320134 at bpf_dtor+0xd4 #9 0xffffffff80f64b2b at devfs_destroy_cdevpriv+0x16b #10 0xffffffff80f64bf4 at devfs_fpdrop+0x64 #11 0xffffffff80f69ded at devfs_close_f+0x7d #12 0xffffffff81102101 at fo_close+0x31 #13 0xffffffff810fc306 at _fdrop+0x46 #14 0xffffffff81101037 at closef+0x2d7 #15 0xffffffff810fd16e at closefp+0xde #16 0xffffffff810fdf17 at kern_close+0xe7 #17 0xffffffff810fde1f at sys_close+0x1f Lock order "if_lagg sx"(sx) -> "bpf global lock"(sx) first seen at: #0 0xffffffff81239ac3 at witness_lock_order_add+0x2c3 #1 0xffffffff81238b34 at witness_checkorder+0x5a4 #2 0xffffffff8119e51c at _sx_xlock+0x19c #3 0xffffffff8131afe8 at bpfattach2+0x158 #4 0xffffffff8131ae7e at bpfattach+0x2e #5 0xffffffff8133a675 at ether_ifattach+0x1a5 #6 0xffffffff832c53ba at lagg_clone_create+0x2ba #7 0xffffffff81338017 at ifc_simple_create+0x97 #8 0xffffffff81335a1a at if_clone_createif+0x5a #9 0xffffffff813358c0 at if_clone_create+0x2e0 #10 0xffffffff8132c377 at ifioctl+0x697 #11 0xffffffff8124fdae at soo_ioctl+0x79e #12 0xffffffff81241ddc at fo_ioctl+0x4c #13 0xffffffff81241b31 at kern_ioctl+0x361 #14 0xffffffff8124170a at sys_ioctl+0x2ea #15 0xffffffff818f682d at syscallenter+0x4ed #16 0xffffffff818f607b at amd64_syscall+0x1b #17 0xffffffff818c3b3d at fast_syscall_common+0x101