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 *459894 27479 0 0 0x4000000 1 syz-executor.4 183504 49920 0 0x2 0x4000480 0 syz-fuzzer 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(fffffd806d47b130) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806d47b130) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806d47b018) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff8000250a7db8,ffff8000250a7dc4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff8000250a7db8,ffff8000250a7dc4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff8000250a7db8,ffff8000250a7dc4,0,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff8000250a7db8,ffff8000250a7dc4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d8eb200) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d8eb200,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd8068c0a400,fffffd806d47b3d8,ffff8000250a8010,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 end trace frame: 0xffff8000250a8090, 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(fffffd806d47b130) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806d47b130) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806d47b018) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff8000250a7db8,ffff8000250a7dc4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff8000250a7db8,ffff8000250a7dc4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff8000250a7db8,ffff8000250a7dc4,0,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff8000250a7db8,ffff8000250a7dc4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d8eb200) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d8eb200,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd8068c0a400,fffffd806d47b3d8,ffff8000250a8010,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 rip_usrreq(fffffd806d47b3d8,9,fffffd8068c0a400,0,0,ffff800025095510) at rip_usrreq+0x49c sys/netinet/raw_ip.c:554 sosend(fffffd806d47b3d8,0,ffff8000250a8228,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff800025095510,3,ffff8000250a8228,0,ffff8000250a8320) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_write(ffff800025095510,ffff8000250a82c8,ffff8000250a8320) at sys_write+0x83 sys/kern/sys_generic.c:301 syscall(ffff8000250a8390) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000250a8390) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x879d38a30, count: -20 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff8000250a7940 rbx 0xffff800020ce9bff rdx 0 rcx 0 rax 0xffff800025095510 r8 0x101010101010101 r9 0x8080808080808080 r10 0x258576cb6083782f r11 0x44acb541bb13d4e7 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff811e4c58 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000250a7930 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.4) pid=459894 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800025094fd0,0xffffffff82afb7b8 process=0xffff800028f49d30 user=0xffff8000250a3000, vmspace=0xfffffd806c3702f0 estcpu=8, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78899 409641 97182 0 2 0 syz-executor.0 27479 345872 93587 0 2 0 syz-executor.4 *27479 459894 93587 0 7 0x4000000 syz-executor.4 32457 442943 19127 0 2 0x4081000 syz-executor.5 32457 405993 19127 0 3 0x4003000 suspend syz-executor.5 32457 232286 19127 0 2 0x4081000 syz-executor.5 32457 131764 19127 0 2 0x4081000 syz-executor.5 53733 313319 18081 0 2 0 syz-executor.1 24207 9152 96938 0 2 0 syz-executor.7 36870 495661 15395 0 3 0x80 nanoslp syz-executor.6 36870 401106 15395 0 3 0x4000080 kqsel syz-executor.6 36870 441077 15395 0 3 0x4000080 kqsel syz-executor.6 43020 258907 0 0 3 0x14200 bored sosplice 96938 277099 49920 0 3 0x82 nanoslp syz-executor.7 19127 511493 49920 0 2 0x482 syz-executor.5 15395 257773 49920 0 3 0x82 nanoslp syz-executor.6 93587 143928 49920 0 2 0x482 syz-executor.4 66599 120076 49920 0 2 0x482 syz-executor.2 18081 435522 49920 0 2 0x482 syz-executor.1 97182 88442 49920 0 2 0x482 syz-executor.0 49920 103028 48523 0 3 0x82 thrsleep syz-fuzzer 49920 341671 48523 0 2 0x4000482 syz-fuzzer 49920 88004 48523 0 3 0x4000082 thrsleep syz-fuzzer 49920 78509 48523 0 2 0x4000002 syz-fuzzer 49920 42933 48523 0 3 0x4000082 thrsleep syz-fuzzer 49920 183504 48523 0 7 0x4000482 syz-fuzzer 49920 113671 48523 0 3 0x4000082 thrsleep syz-fuzzer 49920 388840 48523 0 3 0x4000082 thrsleep syz-fuzzer 49920 165842 48523 0 3 0x4000082 thrsleep syz-fuzzer 49920 94954 48523 0 3 0x4000082 thrsleep syz-fuzzer 48523 160622 53692 0 3 0x10008a sigsusp ksh 53692 147469 59611 0 3 0x9a kqread sshd 54273 395789 1 0 3 0x100083 ttyin getty 59611 294101 1 0 3 0x88 kqread sshd 6517 286089 39398 74 3 0x1100092 bpf pflogd 39398 404455 1 0 3 0x80 netio pflogd 56808 166055 49830 73 3 0x1100090 kqread syslogd 49830 439521 1 0 3 0x100082 netio syslogd 83766 215135 1 0 3 0x100080 kqread resolvd 27305 112478 60832 77 3 0x100092 kqread dhcpleased 6948 232508 60832 77 3 0x100092 kqread dhcpleased 60832 335030 1 0 3 0x80 kqread dhcpleased 8853 19224 0 0 3 0x14200 bored smr 93400 129001 0 0 2 0x14200 zerothread 94311 217239 0 0 3 0x14200 aiodoned aiodoned 41006 326945 0 0 3 0x14200 syncer update 40626 416350 0 0 3 0x14200 cleaner cleaner 5486 274917 0 0 3 0x14200 reaper reaper 29530 296133 0 0 3 0x14200 pgdaemon pagedaemon 97904 481288 0 0 3 0x14200 bored viomb 73763 423900 0 0 3 0x40014200 acpi0 acpi0 82472 330017 0 0 3 0x40014200 idle1 2441 371802 0 0 3 0x14200 bored softnet 96234 491386 0 0 3 0x14200 bored systqmp 18165 467658 0 0 3 0x14200 bored systq 27096 369529 0 0 3 0x40014200 bored softclock 48131 353618 0 0 3 0x40014200 idle0 1 523376 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_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 27479 (syz-executor.4) thread 0xffff800025095510 (459894) 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_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 (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_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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10188 6611K 6808K 78643K 11895 0 pcb 13 12K 14K 78643K 68 0 rtable 216 6K 7K 78643K 394 0 ifaddr 79 16K 18K 78643K 115 0 counters 54 35K 35K 78643K 66 0 ioctlops 0 0K 4K 78643K 1567 0 iov 0 0K 12K 78643K 45 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1273 80K 80K 78643K 1644 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 252 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 15 53K 85K 78643K 524 0 sigio 0 0K 0K 78643K 38 0 proc 69 87K 124K 78643K 563 0 subproc 91 5K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 16 0 in_multi 88 5K 7K 78643K 143 0 ether_multi 1 0K 0K 78643K 10 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 3K 78643K 663 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 301 71K 80K 78643K 8443 0 UVM aobj 48 2K 2K 78643K 48 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 8 0 NDP 11 0K 2K 78643K 37 0 temp 122 4711K 4775K 78643K 5446 0 kqueue 12 18K 20K 78643K 36 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 55 0 52 1 0 1 1 0 8 0 rtentry 112 117 0 18 4 0 4 4 0 8 0 unpcb 136 244 0 229 2 1 1 2 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpqe 32 155 0 155 2 1 1 1 0 8 1 tcpcb 736 172 0 164 13 9 4 13 0 8 3 arp 120 19 0 3 1 0 1 1 0 8 0 inpcb 312 661 0 650 11 8 3 11 0 8 2 nd6 48 28 0 7 1 0 1 1 0 8 0 kcovpl 48 8 0 1 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 32 0 15 1 0 1 1 0 8 0 pfstkey 112 32 0 15 1 0 1 1 0 8 0 pfstate 320 32 0 15 3 0 3 3 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 452 0 45 29 0 29 29 0 8 2 art_table 32 453 0 45 4 0 4 4 0 8 0 art_node 16 116 0 26 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 5 1 0 1 1 0 8 0 semapl 112 247 0 237 1 0 1 1 0 8 0 shmpl 112 45 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2260 0 825 91 0 91 91 0 8 0 ffsino 272 2260 0 825 97 0 97 97 0 8 0 nchpl 144 3079 0 1456 63 0 63 63 0 8 0 uvmvnodes 80 2440 0 0 50 0 50 50 0 8 0 vnodes 224 2440 0 0 144 0 144 144 0 8 0 namei 1024 10892 0 10892 2 1 1 2 0 8 1 percpumem 16 45 0 6 1 0 1 1 0 8 0 scxspl 216 8467 0 8467 9 8 1 8 0 8 1 plimitpl 152 94 0 80 1 0 1 1 0 8 0 sigapl 424 831 0 787 6 0 6 6 0 8 0 futexpl 64 3919 0 3919 1 0 1 1 0 8 1 knotepl 120 118 0 0 4 0 4 4 0 8 0 kqueuepl 216 55 0 45 1 0 1 1 0 8 0 pipepl 336 217 0 192 6 3 3 5 0 8 0 fdescpl 496 816 0 788 5 1 4 5 0 8 0 filepl 152 4955 0 4727 19 4 15 19 0 8 5 lockfpl 104 124 0 122 1 0 1 1 0 8 0 lockfspl 48 37 0 35 1 0 1 1 0 8 0 sessionpl 144 24 0 8 1 0 1 1 0 8 0 pgrppl 48 24 0 8 1 0 1 1 0 8 0 ucredpl 96 1300 0 1288 1 0 1 1 0 8 0 zombiepl 144 789 0 787 1 0 1 1 0 8 0 processpl 1064 831 0 787 4 0 4 4 0 8 0 procpl 672 1713 0 1653 7 0 7 7 0 8 1 srpgc 96 2 0 2 1 0 1 1 0 8 1 sosppl 168 3 0 3 1 1 0 1 0 8 0 sockpl 480 960 0 931 20 14 6 20 0 8 2 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 25 0 25 25 0 8 0 mtagpl 96 89 0 0 3 0 3 3 0 8 0 mbufpl 256 315 0 0 20 0 20 20 0 8 0 bufpl 288 4210 0 142 291 0 291 291 0 8 0 anonpl 24 196163 0 181321 138 7 131 136 0 186 15 amapchunkpl 152 19822 0 19011 49 5 44 49 0 158 0 amappl16 200 2440 0 1914 42 8 34 41 0 8 4 amappl15 192 264 0 256 1 0 1 1 0 8 0 amappl14 184 2 0 1 2 1 1 1 0 8 0 amappl13 176 85 0 84 1 0 1 1 0 8 0 amappl12 168 75 0 72 1 0 1 1 0 8 0 amappl11 160 164 0 146 1 0 1 1 0 8 0 amappl10 152 84 0 75 1 0 1 1 0 8 0 amappl9 144 533 0 530 1 0 1 1 0 8 0 amappl8 136 605 0 556 3 0 3 3 0 8 0 amappl7 128 120 0 108 1 0 1 1 0 8 0 amappl6 120 264 0 240 2 1 1 2 0 8 0 amappl5 112 581 0 561 1 0 1 1 0 8 0 amappl4 104 1013 0 984 2 0 2 2 0 8 0 amappl3 96 257 0 245 1 0 1 1 0 8 0 amappl2 88 564 0 520 3 1 2 3 0 8 0 amappl1 80 18121 0 17549 19 4 15 19 0 8 0 amappl 88 7988 0 7750 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 47 0 0 1 0 1 1 0 8 0 uaddrrnd 24 816 0 788 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 816 0 788 1 0 1 1 0 8 0 vmmpekpl 168 11054 0 11012 3 0 3 3 0 8 0 vmmpepl 168 78538 0 76154 172 20 152 171 0 357 43 vmsppl 368 815 0 788 4 1 3 4 0 8 0 rwobjpl 56 23206 0 19244 57 0 57 57 0 8 0 pdppl 4096 1639 0 1576 118 49 69 79 0 8 6 pvpl 32 452050 0 433021 247 26 221 246 0 265 32 pmappl 248 815 0 788 3 1 2 3 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 721 0 74 19 0 19 19 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(ffff800021242040,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(ffff8000ffff57a0,ffff800021242160,ffff8000212421c0) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:299 syscall(ffff800021242230) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021242230) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x28e116400, 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(ffff800021242040,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(ffff8000ffff57a0,ffff800021242160,ffff8000212421c0) at sys_nanosleep+0x1f5 sys/kern/kern_time.c:299 syscall(ffff800021242230) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021242230) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x28e116400, 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(fffffd806d47b130) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806d47b130) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806d47b018) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff8000250a7db8,ffff8000250a7dc4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff8000250a7db8,ffff8000250a7dc4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff8000250a7db8,ffff8000250a7dc4,0,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff8000250a7db8,ffff8000250a7dc4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d8eb200) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d8eb200,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd8068c0a400,fffffd806d47b3d8,ffff8000250a8010,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 end trace frame: 0xffff8000250a8090, 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(fffffd806d47b130) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806d47b130) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806d47b018) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 rip_input(ffff8000250a7db8,ffff8000250a7dc4,0,2) at rip_input+0x3b0 sys/netinet/raw_ip.c:188 ip_deliver(ffff8000250a7db8,ffff8000250a7dc4,0,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff8000250a7db8,ffff8000250a7dc4,0,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff8000250a7db8,ffff8000250a7dc4,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806d8eb200) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806d8eb200,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd8068c0a400,fffffd807450e200,fffffd806f684b70,20,0,fffffd806f684af8,f987bdce2c81a613) at ip_output+0xb05 sys/netinet/ip_output.c:332 rip_output(fffffd8068c0a400,fffffd806d47b3d8,ffff8000250a8010,1) at rip_output+0x2cb sys/netinet/raw_ip.c:302 rip_usrreq(fffffd806d47b3d8,9,fffffd8068c0a400,0,0,ffff800025095510) at rip_usrreq+0x49c sys/netinet/raw_ip.c:554 sosend(fffffd806d47b3d8,0,ffff8000250a8228,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff800025095510,3,ffff8000250a8228,0,ffff8000250a8320) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_write(ffff800025095510,ffff8000250a82c8,ffff8000250a8320) at sys_write+0x83 sys/kern/sys_generic.c:301 syscall(ffff8000250a8390) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000250a8390) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x879d38a30, count: -20