witness: lock order reversal: 1st 0xffffffff82900440 pf_lock (pf_lock) 2nd 0xffffffff8299e650 netlock (netlock) lock order "netlock"(rwlock) -> "pf_lock"(rwlock) first seen at: #0 rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 #1 pfioctl+0x3fbc sys/net/pf_ioctl.c:2976 #2 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #3 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #4 sys_ioctl+0x4a2 #5 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #6 Xsyscall+0x128 lock order "pf_lock"(rwlock) -> "netlock"(rwlock) first seen at: #0 rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 #1 uvn_io+0x418 sys/uvm/uvm_vnode.c:1243 #2 uvn_get+0x1df sys/uvm/uvm_vnode.c:1076 #3 uvm_fault_lower+0x36c sys/uvm/uvm_fault.c:1275 #4 uvm_fault+0x248 #5 kpageflttrap+0x209 #6 kerntrap+0xef sys/arch/amd64/amd64/trap.c:318 #7 alltraps_kern_meltdown+0x7b #8 copyout+0x53 #9 pfioctl+0x4519 sys/net/pf_ioctl.c:2944 #10 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #11 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #12 sys_ioctl+0x4a2 #13 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #13 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #14 Xsyscall+0x128 Stopped at db_enter+0x18: addq $0x8,%rsp ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffffffff8299e650,9,0) at witness_checkorder+0x10b7 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffffffff8299e650,9,0) at witness_checkorder+0x10b7 sys/kern/subr_witness.c:1105 rw_enter_write(ffffffff8299e640) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 uvn_io(fffffd80646911a8,ffff8000278c8098,1,202,0) at uvn_io+0x418 sys/uvm/uvm_vnode.c:1243 uvn_get(fffffd80646911a8,3000,ffff8000278c8158,ffff8000278c8128,0,0,cb88a84c6d3221d3,1) at uvn_get+0x1df sys/uvm/uvm_vnode.c:1076 uvm_fault_lower(ffff8000278c82c0,ffff8000278c82f8,ffff8000278c8240,0) at uvm_fault_lower+0x36c sys/uvm/uvm_fault.c:1275 uvm_fault(fffffd80772f8010,20003000,0,2) at uvm_fault+0x248 kpageflttrap(ffff8000278c8450,20003000) at kpageflttrap+0x209 kerntrap(ffff8000278c8450) at kerntrap+0xef sys/arch/amd64/amd64/trap.c:318 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x53 pfioctl(4900,c0284457,ffff8000278c88c0,1,ffff8000ffff42a0) at pfioctl+0x4519 sys/net/pf_ioctl.c:2944 VOP_IOCTL(fffffd806f7d0b88,c0284457,ffff8000278c88c0,1,fffffd807f7d8240,ffff8000ffff42a0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c4b6310,c0284457,ffff8000278c88c0,ffff8000ffff42a0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000ffff42a0,ffff8000278c89d8,ffff8000278c8a30) at sys_ioctl+0x4a2 syscall(ffff8000278c8aa0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000278c8aa0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb1181f08910, count: -17 ddb{0}> show registers rdi 0x3 rsi 0xffffffff8294b760 __sancov_gen_cov_switch_values.134 rbp 0xffff8000278c7e60 rbx 0x3 rdx 0 rcx 0 rax 0xffff8000ffff42a0 r8 0xffff8000278c7dd0 r9 0x8080808080808080 r10 0x92f677d750bb3756 r11 0x1f3d95ec70d29420 r12 0xffffffff82b2a8a0 w_lodata+0x528b0 r13 0 r14 0xffffffff82b17ad0 w_lodata+0x3fae0 r15 0xfffffd8002f66780 rip 0xffffffff813440e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000278c7e50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=385469 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff47e0,0xffff800027ab4aa0 process=0xffff80002952b620 user=0xffff8000278c3000, vmspace=0xfffffd80772f8010 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 63539 417936 66394 0 2 0 syz-executor.6 66584 495779 81972 0 2 0 syz-executor.5 12086 446085 49709 0 2 0 syz-executor.7 12086 1903 49709 0 7 0x4000080 syz-executor.7 31496 339352 66480 0 2 0 syz-executor.1 *31496 385469 66480 0 7 0x4000000 syz-executor.1 55624 189989 55371 0 2 0 syz-executor.4 55624 297934 55371 0 3 0x4000080 netcon syz-executor.4 81775 117265 60908 0 3 0x80 nanoslp syz-executor.2 81775 391672 60908 0 3 0x4000080 fsleep syz-executor.2 55371 329772 31747 0 3 0x82 nanoslp syz-executor.4 46146 402497 31747 0 3 0x82 nanoslp syz-executor.3 66394 155339 31747 0 2 0x2 syz-executor.6 60908 235297 31747 0 3 0x82 nanoslp syz-executor.2 81972 197527 31747 0 3 0x82 nanoslp syz-executor.5 81623 181622 31747 0 2 0x2 syz-executor.0 49709 99105 31747 0 3 0x82 nanoslp syz-executor.7 79989 17591 1 0 3 0x100083 ttyin getty 66480 3776 31747 0 3 0x82 nanoslp syz-executor.1 63932 397112 0 0 3 0x14280 nfsidl nfsio 1994 421535 0 0 3 0x14280 nfsidl nfsio 41775 316647 0 0 3 0x14280 nfsidl nfsio 45589 459174 0 0 3 0x14280 nfsidl nfsio 5092 417627 0 0 3 0x14280 nfsidl nfsio 72255 418240 0 0 3 0x14280 nfsidl nfsio 16009 73561 0 0 3 0x14200 acct acct 47623 514407 0 0 3 0x14200 bored sosplice 31747 151867 8860 0 3 0x82 thrsleep syz-fuzzer 31747 316866 8860 0 3 0x4000082 nanoslp syz-fuzzer 31747 356562 8860 0 3 0x4000082 thrsleep syz-fuzzer 31747 259687 8860 0 3 0x4000082 nanoslp syz-fuzzer 31747 209768 8860 0 3 0x4000082 thrsleep syz-fuzzer 31747 182212 8860 0 3 0x4000082 thrsleep syz-fuzzer 31747 110301 8860 0 3 0x4000082 thrsleep syz-fuzzer 31747 109633 8860 0 3 0x4000082 kqread syz-fuzzer 31747 301475 8860 0 3 0x4000082 thrsleep syz-fuzzer 8860 431707 20656 0 3 0x10008a sigsusp ksh 20656 357081 55454 0 3 0x9a kqread sshd 55454 244021 1 0 3 0x88 kqread sshd 17097 335590 36573 74 3 0x1100092 bpf pflogd 36573 289046 1 0 3 0x80 netio pflogd 91962 494500 67914 73 3 0x1100090 kqread syslogd 67914 392101 1 0 3 0x100082 netio syslogd 99752 335216 1 0 3 0x100080 kqread resolvd 13924 423617 89585 77 3 0x100092 kqread dhcpleased 55484 397001 89585 77 3 0x100092 kqread dhcpleased 89585 205147 1 0 3 0x80 kqread dhcpleased 68085 154982 0 0 3 0x14200 bored smr 98526 501250 0 0 2 0x14200 zerothread 95891 192409 0 0 3 0x14200 aiodoned aiodoned 49269 429383 0 0 3 0x14200 syncer update 20142 371849 0 0 3 0x14200 cleaner cleaner 50536 450045 0 0 3 0x14200 reaper reaper 19225 483640 0 0 3 0x14200 pgdaemon pagedaemon 83449 123645 0 0 3 0x14200 bored viomb 99883 486792 0 0 3 0x40014200 acpi0 acpi0 34475 177946 0 0 3 0x40014200 idle1 81060 269272 0 0 3 0x14200 bored softnet 35492 306360 0 0 3 0x14200 bored systqmp 96778 415392 0 0 3 0x14200 bored systq 27960 58741 0 0 3 0x40014200 bored softclock 96950 504500 0 0 3 0x40014200 idle0 1 351156 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 31496 (syz-executor.1) thread 0xffff8000ffff42a0 (385469) exclusive rwlock pf_lock r = 0 (0xffffffff82900440) #0 witness_lock+0x44d #1 pfioctl+0x4507 sys/net/pf_ioctl.c:2943 #2 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #3 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #4 sys_ioctl+0x4a2 #5 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82b8b778) #0 witness_lock+0x44d #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x3d3 sys/kern/sched_bsd.c:416 #3 sleep_finish+0x198 sys/kern/kern_synch.c:437 #4 rw_enter+0x35a sys/kern/kern_rwlock.c:286 #5 pfioctl+0x1b61 sys/net/pf_ioctl.c:2943 #6 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #7 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #8 sys_ioctl+0x4a2 #9 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #9 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #10 Xsyscall+0x128 shared rwlock pfioctl_rw r = 0 (0xffffffff829004a0) #0 witness_lock+0x44d #1 pfioctl+0x946 sys/net/pf_ioctl.c:1149 #2 VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 #3 vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 #4 sys_ioctl+0x4a2 #5 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #6 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10202 6625K 7190K 78643K 21330 0 pcb 13 18K 20K 78643K 784 0 rtable 278 18K 20K 78643K 3057 0 ifaddr 123 30K 31K 78643K 8166 0 sysctl 3 1K 1K 78643K 3 0 counters 56 35K 36K 78643K 298 0 ioctlops 0 0K 8K 78643K 23308 0 iov 0 0K 36K 78643K 4745 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1332 83K 84K 78643K 6438 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 21K 78643K 112 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 598 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 93K 78643K 24455 0 sigio 1 0K 0K 78643K 75 0 proc 72 87K 123K 78643K 1996 0 subproc 104 6K 6K 78643K 578 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 324 0 in_multi 99 6K 7K 78643K 756 0 ether_multi 1 0K 0K 78643K 115 0 mrt 1 0K 0K 78643K 9 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 121 546K 546K 78643K 121 0 exec 0 0K 2K 78643K 2753 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 461 193K 203K 78643K 307449 0 UVM aobj 131 8K 8K 78643K 141 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 3313 0 NDP 12 0K 2K 78643K 219 0 temp 143 4737K 4813K 78643K 221350 0 kqueue 12 18K 25K 78643K 3500 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 403 0 400 5 4 1 3 0 8 0 rtentry 112 526 0 421 5 1 4 4 0 8 1 unpcb 136 25202 0 25183 98 93 5 8 0 8 4 syncache 296 184 0 184 17 17 0 1 0 8 0 tcpqe 32 142 0 142 17 17 0 1 0 8 0 tcpcb 736 8971 0 8960 156 149 7 15 0 8 5 arp 120 96 0 77 1 0 1 1 0 8 0 inpcb 312 24711 0 24701 157 151 6 14 0 8 5 rttmr 72 8 0 7 1 0 1 1 0 8 0 nd6 48 130 0 105 1 0 1 1 0 8 0 pkpcb 40 23 0 23 5 5 0 1 0 8 0 kcovpl 48 44 0 36 1 0 1 1 0 8 0 ppxss 1248 42 0 42 7 7 0 1 0 8 0 pfstscr 40 34 0 34 4 4 0 1 0 8 0 pffrag 232 165 0 163 9 8 1 1 0 482 0 pffrnode 88 165 0 163 9 8 1 1 0 8 0 pffrent 40 6483 0 6481 9 8 1 1 0 8 0 pfosfp 40 1432 0 1006 5 0 5 5 0 8 0 pfosfpen 112 1432 0 714 21 0 21 21 0 8 0 pfrktable 1344 734 0 711 7 4 3 3 0 8 1 pftag 88 37 0 20 2 1 1 1 0 8 0 pfqueue 264 4 0 4 1 1 0 1 0 8 0 pfstitem 24 55 0 53 1 0 1 1 0 8 0 pfstkey 112 115 0 113 2 1 1 2 0 8 0 pfstate 320 80 0 78 4 3 1 4 0 8 0 pfsrctr 152 8 0 8 1 1 0 1 0 8 0 pfrule 1360 10081 0 7911 185 4 181 181 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2264 0 1818 51 23 28 29 0 8 0 art_table 32 2265 0 1818 4 0 4 4 0 8 0 art_node 16 525 0 432 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 0 1 0 1 1 0 8 0 semapl 112 590 0 580 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 31147 0 29675 93 0 93 93 0 8 0 ffsino 272 31147 0 29675 99 0 99 99 0 8 0 nchpl 144 63725 0 62040 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 232622 0 232622 20 19 1 2 0 8 1 percpumem 16 161 0 121 1 0 1 1 0 8 0 vcpupl 2048 6 0 0 1 0 1 1 0 8 0 vmpool 560 15 0 9 1 0 1 1 0 8 0 pfiaddrpl 120 835 0 270 21 3 18 18 0 8 0 scsiplug 72 6 0 6 1 1 0 1 0 8 0 scxspl 216 173583 0 173583 37 36 1 8 0 8 1 plimitpl 152 553 0 538 1 0 1 1 0 8 0 sigapl 424 24696 0 24644 6 0 6 6 0 8 0 futexpl 64 221947 0 221946 11 10 1 1 0 8 0 knotepl 120 943 0 0 15 4 11 12 0 8 0 kqueuepl 216 9110 0 9102 47 46 1 8 0 8 0 pipepl 336 2569 0 2541 80 72 8 8 0 8 5 fdescpl 496 24674 0 24645 5 1 4 5 0 8 0 filepl 152 186840 0 186591 170 152 18 23 0 8 8 lockfpl 104 15560 0 15558 27 26 1 4 0 8 0 lockfspl 48 3341 0 3339 1 0 1 1 0 8 0 sessionpl 144 61 0 44 1 0 1 1 0 8 0 pgrppl 48 102 0 85 1 0 1 1 0 8 0 ucredpl 96 13235 0 13221 1 0 1 1 0 8 0 zombiepl 144 24645 0 24644 9 8 1 1 0 8 0 processpl 1064 24696 0 24644 4 0 4 4 0 8 0 procpl 672 66892 0 66828 32 25 7 8 0 8 1 srpgc 96 36 0 36 8 7 1 1 0 8 1 sosppl 168 52 0 52 8 8 0 1 0 8 0 sockpl 480 50383 0 50352 746 726 20 30 0 8 16 mcl64k 65536 34 0 0 4 1 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 26 0 0 2 0 2 2 0 8 0 mcl9k 9216 24 0 0 2 0 2 2 0 8 0 mcl8k 8192 41 0 0 5 2 3 3 0 8 0 mcl4k 4096 26 0 0 4 1 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 959 0 0 24 5 19 23 0 8 0 mtagpl 96 885 0 0 15 7 8 10 0 8 0 mbufpl 256 1603 0 0 46 6 40 46 0 8 0 bufpl 288 36273 0 29937 453 0 453 453 0 8 0 anonpl 24 9846261 0 9832795 375 245 130 158 0 186 0 amapchunkpl 152 745625 0 744928 119 84 35 43 0 158 3 amappl16 200 245597 0 245194 620 587 33 59 0 8 8 amappl15 192 5652 0 5646 1 0 1 1 0 8 0 amappl14 184 545 0 532 1 0 1 1 0 8 0 amappl13 176 1992 0 1989 1 0 1 1 0 8 0 amappl12 168 207 0 193 1 0 1 1 0 8 0 amappl11 160 2529 0 2515 2 1 1 2 0 8 0 amappl10 152 4705 0 4682 2 0 2 2 0 8 0 amappl9 144 5491 0 5486 1 0 1 1 0 8 0 amappl8 136 6043 0 5808 10 1 9 9 0 8 0 amappl7 128 4386 0 4367 1 0 1 1 0 8 0 amappl6 120 5351 0 5319 3 1 2 2 0 8 0 amappl5 112 28090 0 28069 1 0 1 1 0 8 0 amappl4 104 5447 0 5407 3 1 2 2 0 8 0 amappl3 96 1284 0 1272 1 0 1 1 0 8 0 amappl2 88 3487 0 3433 5 3 2 3 0 8 0 amappl1 80 432947 0 432392 23 9 14 19 0 8 0 amappl 88 306111 0 305853 9 1 8 8 0 92 1 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 140 0 10 3 0 3 3 0 8 0 uaddrrnd 24 24689 0 24654 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 24689 0 24654 1 0 1 1 0 8 0 vmmpekpl 168 165764 0 165695 4 0 4 4 0 8 0 vmmpepl 168 2347416 0 2344867 337 207 130 143 0 357 6 vmsppl 368 24688 0 24654 5 1 4 4 0 8 0 rwobjpl 56 703277 0 695656 131 19 112 116 0 8 0 pdppl 4096 49385 0 49314 491 416 75 83 0 8 4 pvpl 32 15199607 0 15181875 554 355 199 255 0 265 0 pmappl 248 24688 0 24654 4 1 3 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 1884 0 852 30 0 30 30 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 witness_checkorder(ffffffff8299e650,9,0) at witness_checkorder+0x10b7 witness_debugger sys/kern/subr_witness.c:2502 [inline] witness_checkorder(ffffffff8299e650,9,0) at witness_checkorder+0x10b7 sys/kern/subr_witness.c:1105 rw_enter_write(ffffffff8299e640) at rw_enter_write+0x5b sys/kern/kern_rwlock.c:128 uvn_io(fffffd80646911a8,ffff8000278c8098,1,202,0) at uvn_io+0x418 sys/uvm/uvm_vnode.c:1243 uvn_get(fffffd80646911a8,3000,ffff8000278c8158,ffff8000278c8128,0,0,cb88a84c6d3221d3,1) at uvn_get+0x1df sys/uvm/uvm_vnode.c:1076 uvm_fault_lower(ffff8000278c82c0,ffff8000278c82f8,ffff8000278c8240,0) at uvm_fault_lower+0x36c sys/uvm/uvm_fault.c:1275 uvm_fault(fffffd80772f8010,20003000,0,2) at uvm_fault+0x248 kpageflttrap(ffff8000278c8450,20003000) at kpageflttrap+0x209 kerntrap(ffff8000278c8450) at kerntrap+0xef sys/arch/amd64/amd64/trap.c:318 alltraps_kern_meltdown() at alltraps_kern_meltdown+0x7b copyout() at copyout+0x53 pfioctl(4900,c0284457,ffff8000278c88c0,1,ffff8000ffff42a0) at pfioctl+0x4519 sys/net/pf_ioctl.c:2944 VOP_IOCTL(fffffd806f7d0b88,c0284457,ffff8000278c88c0,1,fffffd807f7d8240,ffff8000ffff42a0) at VOP_IOCTL+0x96 sys/kern/vfs_vops.c:264 vn_ioctl(fffffd806c4b6310,c0284457,ffff8000278c88c0,ffff8000ffff42a0) at vn_ioctl+0xbc sys/kern/vfs_vnops.c:531 sys_ioctl(ffff8000ffff42a0,ffff8000278c89d8,ffff8000278c8a30) at sys_ioctl+0x4a2 syscall(ffff8000278c8aa0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000278c8aa0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb1181f08910, count: -17 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020ce8ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82b8b570) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b8b570) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82b8b570,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x3d3 sys/kern/sched_bsd.c:416 sleep_finish(ffff8000278c2a90,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437 rwsleep(ffff8000ffff47e0,ffffffff829a3590,120,ffffffff825867bb,0) at rwsleep+0xd5 sys/kern/kern_synch.c:317 futex_wait(fa3155a4580,2,0,2) at futex_wait+0x13c sys/kern/sys_futex.c:260 sys_futex(ffff8000ffff47e0,ffff8000278c2c20,ffff8000278c2c80) at sys_futex+0xf8 sys/kern/sys_futex.c:111 syscall(ffff8000278c2cf0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000278c2cf0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xfa2cf15ba70, count: -12