panic: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *260942 85078 0 0 0x4000000 1 syz-executor3935439802 140532 79117 0 0 0x480 0 syz-executor3935439802 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825a56b6) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8079a39328) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8079a39328) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8079a39210) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff800021237038,ffff800021237044,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff800021237038,ffff800021237044,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff800021237038,ffff800021237044,fffffd806d2bf3bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff800021237038,ffff800021237044,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d2bf300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d2bf300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd806e954000,fffffd806fbc15c0,ffff800021237290,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 end trace frame: 0xffff800021237310, count: 0 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: acquiring blockable sleep lock with spinlock or critical section held (kernel_lock) &kernel_lock ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825a56b6) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8079a39328) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8079a39328) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8079a39210) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff800021237038,ffff800021237044,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff800021237038,ffff800021237044,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff800021237038,ffff800021237044,fffffd806d2bf3bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff800021237038,ffff800021237044,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d2bf300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d2bf300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd806e954000,fffffd806fbc15c0,ffff800021237290,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 rip_usrreq(fffffd806fbc15c0,9,fffffd806e954000,0,0,ffff800021213a48) at rip_usrreq+0x49c sys/netinet/raw_ip.c:554 sosend(fffffd806fbc15c0,0,ffff8000212374a8,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff800021213a48,8,ffff8000212374a8,0,ffff8000212375a0) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_write(ffff800021213a48,ffff800021237548,ffff8000212375a0) at sys_write+0x83 sys/kern/sys_generic.c:301 syscall(ffff800021237610) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021237610) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xde7f0c2b680, count: -20 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021236bc0 rbx 0xffff800020ce9bff rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9b3bc4203b8d945c r11 0x759b94e97735d687 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81f18858 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021236bb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor3935439802) pid=260942 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=68, nice=20 forw=0xffffffffffffffff, list=0xffff800021213ce8,0xffff800021212558 process=0xffff8000ffff0868 user=0xffff800021232000, vmspace=0xfffffd806cbf42f0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 79667 264234 27688 0 2 0 syz-executor3935439802 79667 147715 27688 0 3 0x4000080 fsleep syz-executor3935439802 85078 46357 48893 0 2 0 syz-executor3935439802 *85078 260942 48893 0 7 0x4000000 syz-executor3935439802 5055 377861 95143 0 2 0 syz-executor3935439802 5055 355896 95143 0 3 0x4000080 fsleep syz-executor3935439802 48754 28904 80563 0 2 0 syz-executor3935439802 48754 271258 80563 0 2 0x4000000 syz-executor3935439802 85830 204523 62751 0 2 0 syz-executor3935439802 33357 518773 79117 0 3 0x80 nanoslp syz-executor3935439802 33357 262692 79117 0 2 0x4000000 syz-executor3935439802 33357 99860 79117 0 3 0x4000080 fsleep syz-executor3935439802 10952 68882 84707 0 2 0 syz-executor3935439802 80070 309923 93916 0 2 0 syz-executor3935439802 62751 404576 94223 0 2 0x480 syz-executor3935439802 84707 478698 94223 0 3 0x80 nanoslp syz-executor3935439802 93916 260945 94223 0 3 0x80 nanoslp syz-executor3935439802 79117 140532 94223 0 7 0x480 syz-executor3935439802 95143 172749 94223 0 3 0x80 nanoslp syz-executor3935439802 48893 298594 94223 0 2 0x480 syz-executor3935439802 80563 117451 94223 0 3 0x80 nanoslp syz-executor3935439802 27688 15925 94223 0 3 0x80 nanoslp syz-executor3935439802 94223 368109 91941 0 3 0x82 nanoslp syz-executor3935439802 91941 370792 69043 0 3 0x10008a sigsusp ksh 69043 64732 65558 0 3 0x9a kqread sshd 78244 515679 1 0 3 0x100083 ttyin getty 65558 105732 1 0 3 0x88 kqread sshd 48203 465445 53430 74 3 0x1100092 bpf pflogd 53430 33876 1 0 3 0x80 netio pflogd 92829 19393 27717 73 3 0x1100090 kqread syslogd 27717 57463 1 0 3 0x100082 netio syslogd 91242 131573 1 0 3 0x100080 kqread resolvd 73670 428400 77914 77 3 0x100092 kqread dhcpleased 3061 228504 77914 77 3 0x100092 kqread dhcpleased 77914 444198 1 0 3 0x80 kqread dhcpleased 6301 85995 0 0 3 0x14200 bored smr 54132 129667 0 0 2 0x14200 zerothread 54632 493289 0 0 3 0x14200 aiodoned aiodoned 39402 324743 0 0 3 0x14200 syncer update 61577 339947 0 0 3 0x14200 cleaner cleaner 46170 447975 0 0 3 0x14200 reaper reaper 25610 131434 0 0 3 0x14200 pgdaemon pagedaemon 1663 177689 0 0 3 0x14200 bored viomb 848 358681 0 0 3 0x40014200 acpi0 acpi0 57842 352961 0 0 3 0x40014200 idle1 50493 213041 0 0 3 0x14200 bored softnet 72803 49516 0 0 3 0x14200 bored systqmp 90549 326749 0 0 3 0x14200 bored systq 41637 117140 0 0 3 0x40014200 bored softclock 97691 154658 0 0 3 0x40014200 idle0 1 428933 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 1: exclusive mutex &table->inpt_mtx r = 0 (0xffffffff829c70c8) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 rip_input+0x135 #4 ip_deliver+0x322 sys/netinet/ip_input.c:657 #5 ip_ours+0x3ba sys/netinet/ip_input.c:616 #6 ip_input_if+0x2a1 #7 ipv4_input+0x48 sys/netinet/ip_input.c:242 #8 if_input_local+0x10e sys/net/if.c:774 #9 ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] #9 ip_output+0xb05 sys/netinet/ip_output.c:332 #10 rip_output+0x2cb sys/netinet/raw_ip.c:302 #11 rip_usrreq+0x49c sys/netinet/raw_ip.c:554 #12 sosend+0x632 sys/kern/uipc_socket.c:582 #13 dofilewritev+0x19c sys/kern/sys_generic.c:381 #14 sys_write+0x83 sys/kern/sys_generic.c:301 #15 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #15 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #16 Xsyscall+0x128 Process 85078 (syz-executor3935439802) thread 0xffff800021213a48 (260942) exclusive rwlock netlock r = 0 (0xffffffff828f7720) #0 witness_lock+0x44d #1 solock+0x86 sys/kern/uipc_socket2.c:295 #2 sosend+0x517 sys/kern/uipc_socket.c:570 #3 dofilewritev+0x19c sys/kern/sys_generic.c:381 #4 sys_write+0x83 sys/kern/sys_generic.c:301 #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 mutex &table->inpt_mtx r = 0 (0xffffffff829c70c8) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 rip_input+0x135 #4 ip_deliver+0x322 sys/netinet/ip_input.c:657 #5 ip_ours+0x3ba sys/netinet/ip_input.c:616 #6 ip_input_if+0x2a1 #7 ipv4_input+0x48 sys/netinet/ip_input.c:242 #8 if_input_local+0x10e sys/net/if.c:774 #9 ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] #9 ip_output+0xb05 sys/netinet/ip_output.c:332 #10 rip_output+0x2cb sys/netinet/raw_ip.c:302 #11 rip_usrreq+0x49c sys/netinet/raw_ip.c:554 #12 sosend+0x632 sys/kern/uipc_socket.c:582 #13 dofilewritev+0x19c sys/kern/sys_generic.c:381 #14 sys_write+0x83 sys/kern/sys_generic.c:301 #15 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #15 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #16 Xsyscall+0x128 Process 48754 (syz-executor3935439802) thread 0xffff800021212d28 (28904) exclusive rwlock amaplk r = 0 (0xfffffd807a1bea90) #0 witness_lock+0x44d #1 uvm_fault_check+0x3ca sys/uvm/uvm_fault.c:774 #2 uvm_fault+0x102 sys/uvm/uvm_fault.c:602 #3 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #4 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #5 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffffd806cbf4ba8) #0 witness_lock+0x44d #1 uvmfault_lookup+0xd9 sys/uvm/uvm_fault.c:1758 #2 uvm_fault_check+0x3a sys/uvm/uvm_fault.c:674 #3 uvm_fault+0x102 sys/uvm/uvm_fault.c:602 #4 upageflttrap+0x82 sys/arch/amd64/amd64/trap.c:181 #5 usertrap+0x1aa sys/arch/amd64/amd64/trap.c:403 #6 recall_trap+0x8 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10149 6454K 6455K 78643K 11239 0 pcb 16 8K 8K 78643K 234 0 rtable 62 2K 2K 78643K 112 0 ifaddr 29 8K 8K 78643K 32 0 counters 40 33K 33K 78643K 40 0 ioctlops 0 0K 4K 78643K 1479 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1167 73K 73K 78643K 1180 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 1 0K 0K 78643K 1 0 proc 67 87K 87K 78643K 282 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 25 122K 122K 78643K 25 0 exec 0 0K 2K 78643K 432 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 192 7K 8K 78643K 4581 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 4 0K 0K 78643K 4 0 temp 24 4694K 4758K 78643K 3750 0 kqueue 11 16K 18K 78643K 24 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 17 0 14 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 136 1100 0 1079 2 0 2 2 0 8 1 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpcb 736 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 312 671 0 656 2 0 2 2 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 9 0 7 2 1 1 1 0 8 0 pfstkey 112 9 0 7 2 1 1 1 0 8 0 pfstate 320 9 0 7 2 1 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 97 0 0 7 0 7 7 0 8 0 art_table 32 98 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1650 0 249 88 0 88 88 0 8 0 ffsino 272 1650 0 249 94 0 94 94 0 8 0 nchpl 144 2042 0 477 59 0 59 59 0 8 0 uvmvnodes 80 1660 0 0 34 0 34 34 0 8 0 vnodes 224 1660 0 0 98 0 98 98 0 8 0 namei 1024 5301 0 5301 3 1 2 2 0 8 2 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 5405 0 5405 19 18 1 8 0 8 1 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 546 0 501 6 0 6 6 0 8 0 futexpl 64 1920 0 1917 1 0 1 1 0 8 0 knotepl 120 45 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 336 86 0 83 2 1 1 1 0 8 0 fdescpl 496 532 0 501 4 0 4 4 0 8 0 filepl 152 3059 0 2986 4 0 4 4 0 8 1 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 69 0 57 1 0 1 1 0 8 0 zombiepl 144 501 0 501 2 1 1 1 0 8 1 processpl 1064 546 0 501 4 0 4 4 0 8 0 procpl 672 768 0 717 5 0 5 5 0 8 0 sockpl 480 1788 0 1749 8 1 7 7 0 8 2 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 64 0 0 8 1 7 8 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 124 0 0 7 0 7 7 0 8 0 bufpl 288 2251 0 91 155 0 155 155 0 8 0 anonpl 24 82117 0 77836 33 4 29 29 0 186 3 amapchunkpl 152 9353 0 8979 17 0 17 17 0 158 2 amappl16 200 250 0 239 2 1 1 1 0 8 0 amappl15 192 67 0 64 1 0 1 1 0 8 0 amappl13 176 34 0 33 2 1 1 1 0 8 0 amappl12 168 20 0 20 2 2 0 1 0 8 0 amappl11 160 49 0 35 1 0 1 1 0 8 0 amappl10 152 13 0 10 1 0 1 1 0 8 0 amappl9 144 466 0 464 1 0 1 1 0 8 0 amappl8 136 388 0 376 1 0 1 1 0 8 0 amappl7 128 65 0 62 1 0 1 1 0 8 0 amappl6 120 115 0 102 1 0 1 1 0 8 0 amappl5 112 181 0 168 1 0 1 1 0 8 0 amappl4 104 850 0 823 1 0 1 1 0 8 0 amappl3 96 330 0 314 1 0 1 1 0 8 0 amappl2 88 369 0 331 1 0 1 1 0 8 0 amappl1 80 11576 0 11071 13 2 11 11 0 8 0 amappl 88 4285 0 4118 5 0 5 5 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 532 0 501 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 532 0 501 1 0 1 1 0 8 0 vmmpekpl 168 7223 0 7202 2 0 2 2 0 8 0 vmmpepl 168 40173 0 38664 73 4 69 69 0 357 3 vmsppl 368 531 0 501 3 0 3 3 0 8 0 rwobjpl 56 13003 0 10647 34 0 34 34 0 8 0 pdppl 4096 1071 0 1002 89 20 69 69 0 8 0 pvpl 32 196074 0 189132 66 6 60 60 0 265 3 pmappl 248 531 0 501 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 470 0 26 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8294dff0) 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(ffffffff82b46e28) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82b46e28,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(ffff8000211ec890,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437 tsleep(ffffffff82a9bef0,120,ffffffff8256f3d3,2) at tsleep+0x12c sys/kern/kern_synch.c:158 sys_nanosleep(ffff800021142a88,ffff8000211ec9b0,ffff8000211eca10) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:299 syscall(ffff8000211eca80) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211eca80) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff81c0, count: 4 ddb{0}> trace x86_ipi_db(ffffffff8294dff0) 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(ffffffff82b46e28) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82b46e28,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(ffff8000211ec890,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437 tsleep(ffffffff82a9bef0,120,ffffffff8256f3d3,2) at tsleep+0x12c sys/kern/kern_synch.c:158 sys_nanosleep(ffff800021142a88,ffff8000211ec9b0,ffff8000211eca10) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:299 syscall(ffff8000211eca80) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211eca80) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7fffff81c0, count: -11 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825a56b6) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8079a39328) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8079a39328) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8079a39210) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff800021237038,ffff800021237044,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff800021237038,ffff800021237044,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff800021237038,ffff800021237044,fffffd806d2bf3bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff800021237038,ffff800021237044,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d2bf300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d2bf300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd806e954000,fffffd806fbc15c0,ffff800021237290,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 end trace frame: 0xffff800021237310, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825a56b6) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff82b47030,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff82b46e28) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8079a39328) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8079a39328) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8079a39210) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff800021237038,ffff800021237044,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff800021237038,ffff800021237044,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff800021237038,ffff800021237044,fffffd806d2bf3bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff800021237038,ffff800021237044,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d2bf300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d2bf300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd806e954000,0,fffffd8079a3b2f0,20,0,fffffd8079a3b278,7bec44fd1b7276de) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd806e954000,fffffd806fbc15c0,ffff800021237290,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 rip_usrreq(fffffd806fbc15c0,9,fffffd806e954000,0,0,ffff800021213a48) at rip_usrreq+0x49c sys/netinet/raw_ip.c:554 sosend(fffffd806fbc15c0,0,ffff8000212374a8,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff800021213a48,8,ffff8000212374a8,0,ffff8000212375a0) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_write(ffff800021213a48,ffff800021237548,ffff8000212375a0) at sys_write+0x83 sys/kern/sys_generic.c:301 syscall(ffff800021237610) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021237610) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xde7f0c2b680, count: -20