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 *194967 74028 0 0 0x4000000 1 syz-executor.7 35483 75780 0 0x2 0x480 0 syz-executor.6 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825a2db5) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8071d28a98) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8071d28a98) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8071d28980) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002e3a83b8,ffff80002e3a83c4,ffff800029533000,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002e3a83b8,ffff80002e3a83c4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd800876e300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd800876e300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd800876e200,fffffd8071d28020,ffff80002e3a8610,103) at rip_output+0x2cb sys/netinet/raw_ip.c:302 end trace frame: 0xffff80002e3a8690, 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(ffffffff825a2db5) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8071d28a98) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8071d28a98) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8071d28980) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002e3a83b8,ffff80002e3a83c4,ffff800029533000,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002e3a83b8,ffff80002e3a83c4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd800876e300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd800876e300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd800876e200,fffffd8071d28020,ffff80002e3a8610,103) at rip_output+0x2cb sys/netinet/raw_ip.c:302 rip_usrreq(fffffd8071d28020,9,fffffd800876e200,0,0,ffff8000ffff3ce8) at rip_usrreq+0x49c sys/netinet/raw_ip.c:554 sosend(fffffd8071d28020,0,ffff80002e3a88a0,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff8000ffff3ce8,7,ffff80002e3a88a0,0,ffff80002e3a89a0) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_writev(ffff8000ffff3ce8,ffff80002e3a8948,ffff80002e3a89a0) at sys_writev+0xa7 sys/kern/sys_generic.c:328 syscall(ffff80002e3a8a10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3a8a10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x53d4f3ecac0, count: -20 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e3a7f40 rbx 0xffff800020ce9bff rdx 0xffff800000bf74c0 rcx 0 rax 0xffff8000ffff3ce8 r8 0x101010101010101 r9 0x8080808080808080 r10 0x7051423fa4e139b7 r11 0x6c2f2d9555710d58 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff811e4c58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002e3a7f30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.7) pid=194967 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff27e8,0xffff8000ffff2558 process=0xffff8000fffedd30 user=0xffff80002e3a3000, vmspace=0xfffffd807359a460 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 67451 241897 38945 0 2 0 syz-executor.4 67451 158605 38945 0 3 0x4000080 fsleep syz-executor.4 74028 273894 32553 0 2 0 syz-executor.7 *74028 194967 32553 0 7 0x4000000 syz-executor.7 47007 485332 75780 0 2 0x480 syz-executor.6 47007 49153 75780 0 3 0x4000080 fsleep syz-executor.6 47007 97895 75780 0 3 0x4000080 fsleep syz-executor.6 68023 236048 46765 0 2 0 syz-executor.0 68023 208696 46765 0 3 0x4000080 netio syz-executor.0 31877 244912 71542 0 2 0 syz-executor.1 31877 489609 71542 0 3 0x4000080 fsleep syz-executor.1 31877 402737 71542 0 3 0x4000080 fsleep syz-executor.1 31877 140349 71542 0 3 0x4000080 fsleep syz-executor.1 78072 190177 13342 0 2 0 syz-executor.2 78072 73771 13342 0 3 0x4000080 fsleep syz-executor.2 78072 171390 13342 0 3 0x4000080 fsleep syz-executor.2 78072 368705 13342 0 3 0x4000080 fsleep syz-executor.2 78072 180253 13342 0 2 0x4000000 syz-executor.2 78072 118912 13342 0 3 0x4000080 fsleep syz-executor.2 43461 95201 0 0 3 0x14200 bored sosplice 32553 381288 21710 0 2 0x482 syz-executor.7 38945 333637 21710 0 2 0x482 syz-executor.4 75780 35483 21710 0 7 0x482 syz-executor.6 94329 281106 21710 0 2 0x482 syz-executor.5 27944 377934 21710 0 3 0x82 nanoslp syz-executor.3 71542 385446 21710 0 2 0x482 syz-executor.1 13342 157883 21710 0 3 0x82 nanoslp syz-executor.2 46765 467856 21710 0 2 0x482 syz-executor.0 21710 493227 54049 0 3 0x82 thrsleep syz-fuzzer 21710 503617 54049 0 3 0x4000082 thrsleep syz-fuzzer 21710 72431 54049 0 3 0x4000082 thrsleep syz-fuzzer 21710 502334 54049 0 3 0x4000082 thrsleep syz-fuzzer 21710 324622 54049 0 3 0x4000082 thrsleep syz-fuzzer 21710 224891 54049 0 3 0x4000082 thrsleep syz-fuzzer 21710 484383 54049 0 3 0x4000082 thrsleep syz-fuzzer 21710 186825 54049 0 3 0x4000082 thrsleep syz-fuzzer 21710 83980 54049 0 3 0x4000082 kqread syz-fuzzer 54049 9421 16419 0 3 0x10008a sigsusp ksh 16419 383863 25617 0 3 0x9a kqread sshd 31221 407581 1 0 3 0x100083 ttyin getty 25617 118862 1 0 3 0x88 kqread sshd 91749 194421 87391 74 3 0x1100092 bpf pflogd 87391 433598 1 0 3 0x80 netio pflogd 15097 202239 87783 73 3 0x1100090 kqread syslogd 87783 56039 1 0 3 0x100082 netio syslogd 77840 155793 1 0 3 0x100080 kqread resolvd 83169 37250 16700 77 3 0x100092 kqread dhcpleased 6118 169073 16700 77 3 0x100092 kqread dhcpleased 16700 100845 1 0 3 0x80 kqread dhcpleased 72212 295943 0 0 3 0x14200 bored smr 89708 174446 0 0 2 0x14200 zerothread 96882 428596 0 0 3 0x14200 aiodoned aiodoned 57950 296593 0 0 3 0x14200 syncer update 95404 229279 0 0 3 0x14200 cleaner cleaner 39964 408041 0 0 3 0x14200 reaper reaper 93128 412159 0 0 3 0x14200 pgdaemon pagedaemon 69404 392541 0 0 3 0x14200 bored viomb 9021 492866 0 0 3 0x40014200 acpi0 acpi0 47484 111396 0 0 3 0x40014200 idle1 13037 153754 0 0 3 0x14200 bored softnet 16845 149540 0 0 3 0x14200 bored systqmp 2512 27004 0 0 3 0x14200 bored systq 16542 262754 0 0 3 0x40014200 bored softclock 79649 176450 0 0 3 0x40014200 idle0 1 106101 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 (0xffffffff82b03010) #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_writev+0xa7 sys/kern/sys_generic.c:328 #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 74028 (syz-executor.7) thread 0xffff8000ffff3ce8 (194967) exclusive rwlock netlock r = 0 (0xffffffff82904160) #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_writev+0xa7 sys/kern/sys_generic.c:328 #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 (0xffffffff82b03010) #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_writev+0xa7 sys/kern/sys_generic.c:328 #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10187 6604K 7007K 78643K 11718 0 pcb 13 8K 8K 78643K 26 0 rtable 238 6K 7K 78643K 358 0 ifaddr 86 17K 17K 78643K 98 0 counters 56 35K 35K 78643K 60 0 ioctlops 0 0K 4K 78643K 1487 0 iov 1 16K 16K 78643K 8 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1337 84K 84K 78643K 1496 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 5 0K 0K 78643K 5 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 16 57K 93K 78643K 233 0 proc 67 87K 123K 78643K 515 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 6K 6K 78643K 99 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 43 201K 201K 78643K 43 0 exec 0 0K 2K 78643K 669 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 336 81K 82K 78643K 4658 0 UVM aobj 79 10K 10K 78643K 79 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 12 0 NDP 12 0K 2K 78643K 30 0 temp 89 4697K 4761K 78643K 4918 0 kqueue 12 18K 26K 78643K 38 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 36 0 33 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 136 101 0 49 2 0 2 2 0 8 0 syncache 296 4 0 4 1 1 0 1 0 8 0 tcpqe 32 83 0 83 1 0 1 1 0 8 1 tcpcb 736 13 0 7 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 312 177 0 166 4 0 4 4 0 8 2 nd6 48 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 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 17 0 0 1 0 1 1 0 8 0 pfstkey 112 17 0 0 1 0 1 1 0 8 0 pfstate 320 17 0 0 2 0 2 2 0 8 0 pfrule 1360 21 0 15 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 semapl 112 3 0 0 1 0 1 1 0 8 0 shmpl 112 76 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1665 0 227 90 0 90 90 0 8 0 ffsino 272 1665 0 227 96 0 96 96 0 8 0 nchpl 144 2052 0 382 63 0 63 63 0 8 0 uvmvnodes 80 1923 0 0 40 0 40 40 0 8 0 vnodes 224 1923 0 0 114 0 114 114 0 8 0 namei 1024 7320 0 7320 2 1 1 2 0 8 1 percpumem 16 42 0 2 1 0 1 1 0 8 0 scxspl 216 6030 0 6030 2 1 1 2 0 8 1 plimitpl 152 23 0 8 1 0 1 1 0 8 0 sigapl 424 549 0 503 6 0 6 6 0 8 0 futexpl 64 1150 0 1140 1 0 1 1 0 8 0 knotepl 120 108 0 0 4 0 4 4 0 8 0 kqueuepl 216 42 0 34 1 0 1 1 0 8 0 pipepl 336 139 0 111 3 0 3 3 0 8 0 fdescpl 496 534 0 505 5 0 5 5 0 8 1 filepl 152 2589 0 2307 12 0 12 12 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 24 0 7 1 0 1 1 0 8 0 pgrppl 48 28 0 11 1 0 1 1 0 8 0 ucredpl 96 371 0 358 1 0 1 1 0 8 0 zombiepl 144 505 0 503 1 0 1 1 0 8 0 processpl 1064 549 0 503 4 0 4 4 0 8 0 procpl 672 778 0 711 7 0 7 7 0 8 1 sosppl 168 6 0 6 1 0 1 1 0 8 1 sockpl 480 314 0 248 9 0 9 9 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 168 0 0 20 0 20 20 0 8 0 mtagpl 96 25 0 0 1 0 1 1 0 8 0 mbufpl 256 248 0 0 15 0 15 15 0 8 0 bufpl 288 3775 0 148 260 0 260 260 0 8 0 anonpl 24 100787 0 83323 114 5 109 109 0 186 0 amapchunkpl 152 10327 0 9450 38 1 37 37 0 158 0 amappl16 200 903 0 423 27 1 26 26 0 8 0 amappl15 192 115 0 110 1 0 1 1 0 8 0 amappl14 184 2 0 1 1 0 1 1 0 8 0 amappl13 176 93 0 90 1 0 1 1 0 8 0 amappl12 168 59 0 53 1 0 1 1 0 8 0 amappl11 160 86 0 68 1 0 1 1 0 8 0 amappl10 152 52 0 44 1 0 1 1 0 8 0 amappl9 144 476 0 472 1 0 1 1 0 8 0 amappl8 136 629 0 578 3 0 3 3 0 8 0 amappl7 128 142 0 129 1 0 1 1 0 8 0 amappl6 120 211 0 190 2 1 1 2 0 8 0 amappl5 112 325 0 304 1 0 1 1 0 8 0 amappl4 104 897 0 869 2 0 2 2 0 8 0 amappl3 96 232 0 219 1 0 1 1 0 8 0 amappl2 88 564 0 520 3 1 2 3 0 8 0 amappl1 80 12998 0 12391 19 4 15 19 0 8 1 amappl 88 4206 0 3935 7 0 7 7 0 92 0 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 78 0 0 2 0 2 2 0 8 0 uaddrrnd 24 534 0 505 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 534 0 505 1 0 1 1 0 8 0 vmmpekpl 168 8876 0 8825 3 0 3 3 0 8 0 vmmpepl 168 53181 0 50721 143 0 143 143 0 357 28 vmsppl 368 533 0 505 4 0 4 4 0 8 1 rwobjpl 56 15814 0 12313 51 1 50 50 0 8 0 pdppl 4096 1075 0 1010 104 35 69 83 0 8 4 pvpl 32 309308 0 287558 254 5 249 252 0 265 67 pmappl 248 533 0 505 3 0 3 3 0 8 1 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 641 0 38 18 0 18 18 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff8298cff0) 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(ffffffff829f38d0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff829f38d0,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(ffff800027af2610,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437 tsleep(ffffffff82b6ce00,120,ffffffff8256f863,2) at tsleep+0x12c sys/kern/kern_synch.c:158 sys_nanosleep(ffff8000ffff4a80,ffff800027af2730,ffff800027af2790) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:299 syscall(ffff800027af2800) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027af2800) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8d90, count: 4 ddb{0}> trace x86_ipi_db(ffffffff8298cff0) 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(ffffffff829f38d0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff829f38d0,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(ffff800027af2610,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437 tsleep(ffffffff82b6ce00,120,ffffffff8256f863,2) at tsleep+0x12c sys/kern/kern_synch.c:158 sys_nanosleep(ffff8000ffff4a80,ffff800027af2730,ffff800027af2790) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:299 syscall(ffff800027af2800) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800027af2800) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc8d90, 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(ffffffff825a2db5) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8071d28a98) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8071d28a98) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8071d28980) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002e3a83b8,ffff80002e3a83c4,ffff800029533000,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002e3a83b8,ffff80002e3a83c4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd800876e300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd800876e300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd800876e200,fffffd8071d28020,ffff80002e3a8610,103) at rip_output+0x2cb sys/netinet/raw_ip.c:302 end trace frame: 0xffff80002e3a8690, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff825a2db5) at panic+0x177 sys/kern/subr_prf.c:202 witness_checkorder(ffffffff829f3ad8,9,0) at witness_checkorder+0x116d sys/kern/subr_witness.c:833 __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 read_rflags machine/cpufunc.h:195 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 intr_disable machine/cpufunc.h:216 [inline] __mp_lock(ffffffff829f38d0) at __mp_lock+0xa1 sys/kern/kern_lock.c:142 selwakeup(fffffd8071d28a98) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd8071d28a98) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd8071d28980) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff80002e3a83b8,ffff80002e3a83c4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002e3a83b8,ffff80002e3a83c4,ffff800029533000,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002e3a83b8,ffff80002e3a83c4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd800876e300) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd800876e300,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd800876e200,0,fffffd8062349698,20,0,fffffd8062349620,a03c406ad184f8c0) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd800876e200,fffffd8071d28020,ffff80002e3a8610,103) at rip_output+0x2cb sys/netinet/raw_ip.c:302 rip_usrreq(fffffd8071d28020,9,fffffd800876e200,0,0,ffff8000ffff3ce8) at rip_usrreq+0x49c sys/netinet/raw_ip.c:554 sosend(fffffd8071d28020,0,ffff80002e3a88a0,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff8000ffff3ce8,7,ffff80002e3a88a0,0,ffff80002e3a89a0) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_writev(ffff8000ffff3ce8,ffff80002e3a8948,ffff80002e3a89a0) at sys_writev+0xa7 sys/kern/sys_generic.c:328 syscall(ffff80002e3a8a10) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002e3a8a10) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x53d4f3ecac0, count: -20