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 *335720 66269 0 0 0x4000000 1 syz-executor3787790407 263022 25669 0 0 0 0 syz-executor3787790407 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(fffffd806dcd58b0) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806dcd58b0) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806dcd5798) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 udp_sbappend(fffffd806f67aaf8,fffffd806e534900,fffffd806e5341b0,0,14,fffffd806e5341c4,17a838f1d7c02518,0) at udp_sbappend+0x3b1 sys/netinet/udp_usrreq.c:638 udp_input(ffff80002122aa38,ffff80002122aa44,11,2) at udp_input+0xbcb sys/netinet/udp_usrreq.c:427 ip_deliver(ffff80002122aa38,ffff80002122aa44,11,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002122aa38,ffff80002122aa44,fffffd806e5341bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002122aa38,ffff80002122aa44,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e534100) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806e534100,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 sys/netinet/ip_output.c:332 end trace frame: 0xffff80002122acb0, 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(fffffd806dcd58b0) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806dcd58b0) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806dcd5798) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 udp_sbappend(fffffd806f67aaf8,fffffd806e534900,fffffd806e5341b0,0,14,fffffd806e5341c4,17a838f1d7c02518,0) at udp_sbappend+0x3b1 sys/netinet/udp_usrreq.c:638 udp_input(ffff80002122aa38,ffff80002122aa44,11,2) at udp_input+0xbcb sys/netinet/udp_usrreq.c:427 ip_deliver(ffff80002122aa38,ffff80002122aa44,11,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002122aa38,ffff80002122aa44,fffffd806e5341bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002122aa38,ffff80002122aa44,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e534100) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806e534100,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 sys/netinet/ip_output.c:332 udp_output(fffffd806f67a750,fffffd807f00ec00,0,0) at udp_output+0x58d sys/netinet/udp_usrreq.c:1011 sosend(fffffd806dcd5018,0,ffff80002122ae48,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff8000212457a8,3,ffff80002122ae48,0,ffff80002122af40) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_write(ffff8000212457a8,ffff80002122aee8,ffff80002122af40) at sys_write+0x83 sys/kern/sys_generic.c:301 syscall(ffff80002122afb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002122afb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1ae3e97b750, count: -20 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002122a470 rbx 0xffff800020ce9bff rdx 0x3fd rcx 0 rax 0x68 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5f2221f2b3552f78 r11 0x10a105246ba82695 r12 0xffff800020ce9a00 r13 0 r14 0 r15 0x1 rip 0xffffffff81f18858 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002122a460 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor3787790407) pid=335720 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=52, nice=20 forw=0xffffffffffffffff, list=0xffff800021245ce8,0xffff800021245278 process=0xffff8000ffffa998 user=0xffff800021226000, vmspace=0xfffffd806cbe7180 estcpu=2, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46312 463659 88613 0 2 0 syz-executor3787790407 99610 176689 91066 0 2 0 syz-executor3787790407 31601 194813 56726 0 2 0 syz-executor3787790407 31601 257662 56726 0 3 0x4000080 fsleep syz-executor3787790407 48377 6882 29390 0 2 0 syz-executor3787790407 66269 278821 95112 0 2 0 syz-executor3787790407 *66269 335720 95112 0 7 0x4000000 syz-executor3787790407 42493 150938 79103 0 2 0 syz-executor3787790407 42493 59356 79103 0 3 0x4000080 fsleep syz-executor3787790407 88613 184236 35025 0 3 0x80 nanoslp syz-executor3787790407 95112 328311 35025 0 3 0x80 nanoslp syz-executor3787790407 79103 34876 35025 0 2 0 syz-executor3787790407 91066 355683 35025 0 3 0x80 nanoslp syz-executor3787790407 29390 269297 35025 0 3 0x80 nanoslp syz-executor3787790407 56726 377131 35025 0 3 0x80 nanoslp syz-executor3787790407 57602 486358 35025 0 3 0x80 nanoslp syz-executor3787790407 25669 263022 35025 0 7 0 syz-executor3787790407 35025 338014 66222 0 3 0x82 nanoslp syz-executor3787790407 66222 45561 5405 0 3 0x10008a sigsusp ksh 5405 414319 51339 0 3 0x9a kqread sshd 62992 145240 1 0 3 0x100083 ttyin getty 51339 498724 1 0 3 0x88 kqread sshd 78792 224076 43815 74 3 0x1100092 bpf pflogd 43815 215486 1 0 3 0x80 netio pflogd 28345 445775 20120 73 3 0x1100090 kqread syslogd 20120 24159 1 0 3 0x100082 netio syslogd 80198 263185 1 0 3 0x100080 kqread resolvd 75783 14205 19145 77 3 0x100092 kqread dhcpleased 68377 213139 19145 77 3 0x100092 kqread dhcpleased 19145 362390 1 0 3 0x80 kqread dhcpleased 61430 429857 0 0 3 0x14200 bored smr 3009 33622 0 0 2 0x14200 zerothread 79405 274699 0 0 3 0x14200 aiodoned aiodoned 13366 495784 0 0 3 0x14200 syncer update 65450 199786 0 0 3 0x14200 cleaner cleaner 49197 380142 0 0 3 0x14200 reaper reaper 23764 161392 0 0 3 0x14200 pgdaemon pagedaemon 45178 140690 0 0 3 0x14200 bored viomb 97312 354580 0 0 3 0x40014200 acpi0 acpi0 72096 24210 0 0 3 0x40014200 idle1 21243 472673 0 0 3 0x14200 bored softnet 43134 312498 0 0 3 0x14200 bored systqmp 94029 499347 0 0 3 0x14200 bored systq 94462 146360 0 0 3 0x40014200 bored softclock 70746 321574 0 0 3 0x40014200 idle0 1 517353 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 (0xffffffff82a88990) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 udp_input+0x7b0 #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 udp_output+0x58d sys/netinet/udp_usrreq.c:1011 #11 sosend+0x632 sys/kern/uipc_socket.c:582 #12 dofilewritev+0x19c sys/kern/sys_generic.c:381 #13 sys_write+0x83 sys/kern/sys_generic.c:301 #14 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #14 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #15 Xsyscall+0x128 Process 66269 (syz-executor3787790407) thread 0xffff8000212457a8 (335720) 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 (0xffffffff82a88990) #0 witness_lock+0x44d #1 mtx_enter_try+0x100 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 udp_input+0x7b0 #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 udp_output+0x58d sys/netinet/udp_usrreq.c:1011 #11 sosend+0x632 sys/kern/uipc_socket.c:582 #12 dofilewritev+0x19c sys/kern/sys_generic.c:381 #13 sys_write+0x83 sys/kern/sys_generic.c:301 #14 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #14 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #15 Xsyscall+0x128 Process 25669 (syz-executor3787790407) thread 0xffff8000ffff62b0 (263022) exclusive rrwlock inode r = 0 (0xfffffd806cc1a5e8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 ufs_ihashins+0x42 sys/ufs/ufs/ufs_ihash.c:140 #5 ffs_vget+0x141 sys/ufs/ffs/ffs_vfsops.c:1347 #6 ffs_inode_alloc+0x1be sys/ufs/ffs/ffs_alloc.c:394 #7 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1162 #8 VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404 #9 domkdirat+0x121 sys/kern/vfs_syscalls.c:3101 #10 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #11 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806d41d928) #0 witness_lock+0x44d #1 rw_enter+0x3e1 sys/kern/kern_rwlock.c:310 #2 rrw_enter+0x8b sys/kern/kern_rwlock.c:461 #3 VOP_LOCK+0x87 sys/kern/vfs_vops.c:534 #4 vn_lock+0x84 sys/kern/vfs_vnops.c:579 #5 vfs_lookup+0xd1 sys/kern/vfs_lookup.c:413 #6 namei+0x36a sys/kern/vfs_lookup.c:245 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:3086 #8 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #8 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10149 6454K 6455K 78643K 11239 0 pcb 13 8K 8K 78643K 13 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 430 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 165 7K 7K 78643K 2313 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 3313 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 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 1 0 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 46 0 34 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 8 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 0 1 0 1 1 0 8 0 pfstate 320 8 0 0 1 0 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 96 0 0 6 0 6 6 0 8 0 art_table 32 97 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 1443 0 42 88 0 88 88 0 8 0 ffsino 272 1443 0 42 94 0 94 94 0 8 0 nchpl 144 1628 0 58 59 0 59 59 0 8 0 uvmvnodes 80 1453 0 0 30 0 30 30 0 8 0 vnodes 224 1453 0 0 86 0 86 86 0 8 0 namei 1024 4469 0 4468 2 0 2 2 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 scxspl 216 3923 0 3923 2 0 2 2 0 8 2 plimitpl 152 16 0 9 1 0 1 1 0 8 0 sigapl 424 337 0 293 6 0 6 6 0 8 0 futexpl 64 35 0 33 1 0 1 1 0 8 0 knotepl 120 44 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 1 0 1 1 0 8 0 fdescpl 496 323 0 294 4 0 4 4 0 8 0 filepl 152 1162 0 1098 3 0 3 3 0 8 0 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 294 0 293 1 0 1 1 0 8 0 processpl 1064 337 0 293 4 0 4 4 0 8 0 procpl 672 344 0 297 5 0 5 5 0 8 0 sockpl 480 98 0 68 4 0 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 57 0 0 8 0 8 8 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 104 0 0 7 0 7 7 0 8 0 bufpl 288 2045 0 93 140 0 140 140 0 8 0 anonpl 24 44404 0 40399 28 2 26 26 0 186 0 amapchunkpl 152 4259 0 3949 13 0 13 13 0 158 0 amappl16 200 39 0 33 2 1 1 1 0 8 0 amappl15 192 67 0 64 1 0 1 1 0 8 0 amappl13 176 34 0 33 1 0 1 1 0 8 0 amappl12 168 18 0 18 1 0 1 1 0 8 1 amappl11 160 51 0 37 1 0 1 1 0 8 0 amappl10 152 6 0 4 1 0 1 1 0 8 0 amappl9 144 458 0 455 1 0 1 1 0 8 0 amappl8 136 387 0 371 1 0 1 1 0 8 0 amappl7 128 66 0 63 1 0 1 1 0 8 0 amappl6 120 115 0 102 1 0 1 1 0 8 0 amappl5 112 178 0 166 1 0 1 1 0 8 0 amappl4 104 637 0 615 1 0 1 1 0 8 0 amappl3 96 125 0 114 1 0 1 1 0 8 0 amappl2 88 378 0 334 2 0 2 2 0 8 0 amappl1 80 8876 0 8400 10 0 10 10 0 8 0 amappl 88 2021 0 1881 4 0 4 4 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 323 0 294 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 323 0 294 1 0 1 1 0 8 0 vmmpekpl 168 6266 0 6243 2 0 2 2 0 8 0 vmmpepl 168 27217 0 25885 61 0 61 61 0 357 0 vmsppl 368 322 0 294 3 0 3 3 0 8 0 rwobjpl 56 9746 0 7622 31 0 31 31 0 8 0 pdppl 4096 653 0 588 83 14 69 69 0 8 4 pvpl 32 138625 0 132235 53 0 53 53 0 265 0 pmappl 248 322 0 294 2 0 2 2 0 8 0 extentpl 40 58 0 38 1 0 1 1 0 8 0 phpool 112 445 0 17 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(ffff8000211cf1e0,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437 tsleep(fffffd806f4b85c0,11,ffffffff826081f3,0) at tsleep+0x12c sys/kern/kern_synch.c:158 biowait(fffffd806f4b85c0) at biowait+0x91 sys/kern/vfs_bio.c:1271 bwrite(fffffd806f4b85c0) at bwrite+0x21b sys/kern/vfs_bio.c:772 ffs_update(fffffd806d41d890,1) at ffs_update+0x27d sys/ufs/ffs/ffs_inode.c:113 ufs_mkdir(ffff8000211cf510) at ufs_mkdir+0x433 sys/ufs/ufs/ufs_vnops.c:1197 VOP_MKDIR(fffffd806d422318,ffff8000211cf670,ffff8000211cf6a0,ffff8000211cf5a0) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404 domkdirat(ffff8000ffff62b0,ffffff9c,7f7ffffea360,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3101 end trace frame: 0xffff8000211cf810, count: 0 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(ffff8000211cf1e0,1) at sleep_finish+0x198 sys/kern/kern_synch.c:437 tsleep(fffffd806f4b85c0,11,ffffffff826081f3,0) at tsleep+0x12c sys/kern/kern_synch.c:158 biowait(fffffd806f4b85c0) at biowait+0x91 sys/kern/vfs_bio.c:1271 bwrite(fffffd806f4b85c0) at bwrite+0x21b sys/kern/vfs_bio.c:772 ffs_update(fffffd806d41d890,1) at ffs_update+0x27d sys/ufs/ffs/ffs_inode.c:113 ufs_mkdir(ffff8000211cf510) at ufs_mkdir+0x433 sys/ufs/ufs/ufs_vnops.c:1197 VOP_MKDIR(fffffd806d422318,ffff8000211cf670,ffff8000211cf6a0,ffff8000211cf5a0) at VOP_MKDIR+0xbf sys/kern/vfs_vops.c:404 domkdirat(ffff8000ffff62b0,ffffff9c,7f7ffffea360,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:3101 syscall(ffff8000211cf820) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff8000211cf820) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffea3c0, count: -16 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(fffffd806dcd58b0) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806dcd58b0) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806dcd5798) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 udp_sbappend(fffffd806f67aaf8,fffffd806e534900,fffffd806e5341b0,0,14,fffffd806e5341c4,17a838f1d7c02518,0) at udp_sbappend+0x3b1 sys/netinet/udp_usrreq.c:638 udp_input(ffff80002122aa38,ffff80002122aa44,11,2) at udp_input+0xbcb sys/netinet/udp_usrreq.c:427 ip_deliver(ffff80002122aa38,ffff80002122aa44,11,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002122aa38,ffff80002122aa44,fffffd806e5341bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002122aa38,ffff80002122aa44,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e534100) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806e534100,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 sys/netinet/ip_output.c:332 end trace frame: 0xffff80002122acb0, 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(fffffd806dcd58b0) at selwakeup+0x16 klist_empty sys/sys/event.h:361 [inline] selwakeup(fffffd806dcd58b0) at selwakeup+0x16 sys/kern/sys_generic.c:885 sorwakeup(fffffd806dcd5798) at sorwakeup+0xc9 sys/kern/uipc_socket.c:1699 udp_sbappend(fffffd806f67aaf8,fffffd806e534900,fffffd806e5341b0,0,14,fffffd806e5341c4,17a838f1d7c02518,0) at udp_sbappend+0x3b1 sys/netinet/udp_usrreq.c:638 udp_input(ffff80002122aa38,ffff80002122aa44,11,2) at udp_input+0xbcb sys/netinet/udp_usrreq.c:427 ip_deliver(ffff80002122aa38,ffff80002122aa44,11,2) at ip_deliver+0x322 sys/netinet/ip_input.c:657 ip_ours(ffff80002122aa38,ffff80002122aa44,fffffd806e5341bc,0) at ip_ours+0x3ba sys/netinet/ip_input.c:616 ip_input_if(ffff80002122aa38,ffff80002122aa44,4,0,ffff800000689000) at ip_input_if+0x2a1 ipv4_input(ffff800000689000,fffffd806e534100) at ipv4_input+0x48 sys/netinet/ip_input.c:242 if_input_local(ffff800000689000,fffffd806e534100,2) at if_input_local+0x10e sys/net/if.c:774 ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 ip_mloopback sys/netinet/ip_output.c:1791 [inline] ip_output(fffffd807f00ec00,0,fffffd806f67a7c8,0,0,fffffd806f67a750,55108209fcf15a8b) at ip_output+0xb05 sys/netinet/ip_output.c:332 udp_output(fffffd806f67a750,fffffd807f00ec00,0,0) at udp_output+0x58d sys/netinet/udp_usrreq.c:1011 sosend(fffffd806dcd5018,0,ffff80002122ae48,0,0,0) at sosend+0x632 sys/kern/uipc_socket.c:582 dofilewritev(ffff8000212457a8,3,ffff80002122ae48,0,ffff80002122af40) at dofilewritev+0x19c sys/kern/sys_generic.c:381 sys_write(ffff8000212457a8,ffff80002122aee8,ffff80002122af40) at sys_write+0x83 sys/kern/sys_generic.c:301 syscall(ffff80002122afb0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002122afb0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1ae3e97b750, count: -20 ddb{1}>