panic(ffffffff8221bab5) at panic+0x15c sys/kern/subr_prf.c:207 fifo_badop(ffff800022d59318) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8062e28360) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8062e28360) at bwrite+0x1b9 sys/kern/vfs_bio.c:756 VOP_BWRITE(fffffd8062e28360) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d595a0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067cf2c40,ffff800022d59700,ffff800022d59750,ffff800022d59630) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a989f8,ffffff9c,7f7ffffecfa0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 syscall(ffff800022d598d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d598d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffed010, count: 4 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic fifo_badop called ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8221bab5) at panic+0x15c sys/kern/subr_prf.c:207 fifo_badop(ffff800022d59318) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8062e28360) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8062e28360) at bwrite+0x1b9 sys/kern/vfs_bio.c:756 VOP_BWRITE(fffffd8062e28360) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800022d595a0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8067cf2c40,ffff800022d59700,ffff800022d59750,ffff800022d59630) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a989f8,ffffff9c,7f7ffffecfa0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 syscall(ffff800022d598d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d598d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffed010, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800022d59240 rbx 0xffff800022d592f0 rdx 0xffff800020a989f8 rcx 0 rax 0 r8 0xffffffff81c9af0f kprintf+0x16f r9 0x1 r10 0x25 r11 0x813be8432f908142 r12 0x3000000008 r13 0xffff800022d59250 r14 0x100 r15 0x1 rip 0xffffffff81be84c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d59230 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=112595 stat=onproc flags process=10 proc=0 pri=17, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020a993d8,0xffffffff8263dbe0 process=0xffff800020a9a398 user=0xffff800022d54000, vmspace=0xfffffd807f0082e0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *56723 112595 43971 32767 7 0x10 syz-executor.1 43971 189077 46479 0 3 0x82 wait syz-executor.1 19132 187631 19045 32767 2 0x10 syz-executor.0 19045 356115 46479 0 3 0x82 wait syz-executor.0 53047 41129 0 0 3 0x14200 bored sosplice 46479 267300 33122 0 3 0x82 thrsleep syz-fuzzer 46479 383203 33122 0 3 0x4000082 nanosleep syz-fuzzer 46479 452903 33122 0 3 0x4000082 thrsleep syz-fuzzer 46479 169686 33122 0 2 0x4000002 syz-fuzzer 46479 40039 33122 0 3 0x4000082 thrsleep syz-fuzzer 46479 16966 33122 0 3 0x4000082 thrsleep syz-fuzzer 46479 81920 33122 0 3 0x4000082 thrsleep syz-fuzzer 46479 81851 33122 0 3 0x4000082 thrsleep syz-fuzzer 46479 451966 33122 0 2 0x4000002 syz-fuzzer 46479 29973 33122 0 3 0x4000082 thrsleep syz-fuzzer 33122 179364 87678 0 3 0x10008a pause ksh 87678 360933 52787 0 7 0x12 sshd 22114 23698 1 0 3 0x100083 ttyin getty 52787 194853 1 0 3 0x80 select sshd 50151 307028 34000 73 3 0x100090 kqread syslogd 34000 477300 1 0 3 0x100082 netio syslogd 40923 375162 1 77 3 0x100090 poll dhclient 95040 427837 1 0 3 0x80 poll dhclient 82890 22765 0 0 2 0x14200 zerothread 30512 496733 0 0 3 0x14200 aiodoned aiodoned 77955 480921 0 0 3 0x14200 syncer update 82646 190297 0 0 3 0x14200 cleaner cleaner 86960 327088 0 0 3 0x14200 reaper reaper 17709 208958 0 0 3 0x14200 pgdaemon pagedaemon 75680 179096 0 0 3 0x14200 bored crynlk 20188 21169 0 0 3 0x14200 bored crypto 62802 114680 0 0 3 0x40014200 acpi0 acpi0 45931 71543 0 0 3 0x40014200 idle1 85187 497210 0 0 2 0x14200 softnet 61573 330593 0 0 3 0x14200 bored systqmp 48190 222034 0 0 3 0x14200 bored systq 3406 231540 0 0 3 0x40014200 bored softclock 69949 453939 0 0 3 0x40014200 idle0 18578 190185 0 0 3 0x14200 bored smr 1 511643 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &newfdp->fd_fd.fd_fplock r = 0 (0xfffffd8078e4e090) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 fd_getfile_mode+0x66 fd_getfile sys/kern/kern_descrip.c:238 [inline] #3 fd_getfile_mode+0x66 sys/kern/kern_descrip.c:253 #4 dofilewritev+0x74 #5 sys_write+0x83 sys/kern/sys_generic.c:284 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #7 Xsyscall+0x128 Process 56723 (syz-executor.1) thread 0xffff800020a989f8 (112595) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82626410) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:434 #3 sleep_finish+0x113 sys/kern/kern_synch.c:388 #4 sleep_finish_all+0x32 sleep_finish_timeout sys/kern/kern_synch.c:417 [inline] #4 sleep_finish_all+0x32 sys/kern/kern_synch.c:183 #5 tsleep+0x1cc sys/kern/kern_synch.c:153 #6 biowait+0xa6 sys/kern/vfs_bio.c:1249 #7 bwrite+0x1e4 sys/kern/vfs_bio.c:765 #8 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 #9 ufs_mkdir+0x665 sys/ufs/ufs/ufs_vnops.c:1234 #10 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #11 domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8067690c48) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vget+0x1c8 sys/kern/vfs_subr.c:672 #6 ufs_ihashget+0x141 sys/ufs/ufs/ufs_ihash.c:119 #7 ffs_vget+0x74 sys/ufs/ffs/ffs_vfsops.c:1323 #8 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #9 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #10 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #11 domkdirat+0x121 sys/kern/vfs_syscalls.c:2974 #12 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #12 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #13 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd80689f01b8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2959 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 Process 19132 (syz-executor.0) thread 0xffff800020a98ee8 (187631) exclusive rrwlock inode r = 0 (0xfffffd80689f0a38) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x453 sys/kern/kern_rwlock.c:309 #2 rrw_enter+0x88 sys/kern/kern_rwlock.c:453 #3 VOP_LOCK+0xf9 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:571 #5 vn_closefile+0xc7 vn_close sys/kern/vfs_vnops.c:298 [inline] #5 vn_closefile+0xc7 sys/kern/vfs_vnops.c:610 #6 fdrop+0xc2 sys/kern/kern_descrip.c:1273 #7 closef+0x11d sys/kern/kern_descrip.c:1257 #8 fdrelease+0xba sys/kern/kern_descrip.c:757 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9483 6333K 6333K 78643K 11835 0 pcb 13 10K 12K 78643K 15 0 rtable 109 3K 3K 78643K 13396 0 ifaddr 39 17K 21K 78643K 2297 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 2K 78643K 631 0 iov 0 0K 32K 78643K 2073 0 mount 1 1K 1K 78643K 1 0 vnodes 1215 76K 76K 78643K 11093 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 139 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 6 17K 33K 78643K 12399 0 sigio 0 0K 0K 78643K 335 0 proc 48 50K 83K 78643K 15183 0 subproc 34 2K 2K 78643K 5389 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 1K 78643K 2170 0 in_multi 33 2K 2K 78643K 3850 0 ether_multi 1 0K 0K 78643K 43 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 138 609K 609K 78643K 138 0 exec 0 0K 1K 78643K 5557 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 163 25K 40K 78643K 46685 0 UVM aobj 130 4K 4K 78643K 140 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 931 0 NDP 9 0K 0K 78643K 954 0 temp 106 3022K 3112K 78643K 64723 0 kqueue 0 0K 0K 78643K 324 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 arp 64 684 0 678 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1936 0 1934 1 0 1 1 0 8 0 rtentry 112 3246 0 3200 2 0 2 2 0 8 0 unpcb 120 17269 0 17246 40 38 2 3 0 8 0 syncache 264 139 0 139 49 49 0 1 0 8 0 sackhl 24 6 0 6 6 6 0 1 0 8 0 tcpqe 32 38 0 38 27 27 0 1 0 8 0 tcpcb 544 7100 0 7096 105 104 1 13 0 8 0 ipq 40 165 0 165 45 45 0 1 0 8 0 ipqe 40 5635 0 5635 45 45 0 1 0 8 0 inpcb 280 16256 0 16248 88 86 2 9 0 8 0 ip6q 72 14 0 14 10 10 0 1 0 8 0 ip6af 40 210 0 210 10 10 0 1 0 8 0 nd6 48 635 0 631 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 14256 0 14009 18 2 16 16 0 8 0 art_table 32 14257 0 14009 4 1 3 3 0 8 1 art_node 16 3245 0 3203 1 0 1 1 0 8 0 sysvmsgpl 40 61 0 27 1 0 1 1 0 8 0 semapl 112 10 0 0 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 dino1pl 128 16227 0 14759 50 2 48 48 0 8 0 ffsino 272 16227 0 14759 100 1 99 99 0 8 1 nchpl 144 30779 0 29146 61 0 61 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 167985 0 167984 3 2 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 88426 0 88426 109 108 1 4 0 8 1 plimitpl 152 2156 0 2147 1 0 1 1 0 8 0 sigapl 432 11625 0 11611 20 17 3 3 0 8 1 futexpl 56 231109 0 231109 4 3 1 1 0 8 1 knotepl 112 6707 0 6688 17 16 1 3 0 8 0 kqueuepl 104 7086 0 7084 28 27 1 4 0 8 0 pipepl 160 13810 0 13791 15 13 2 2 0 8 1 fdescpl 488 11626 0 11611 3 0 3 3 0 8 0 filepl 152 136700 0 136602 157 150 7 14 0 8 3 lockfpl 104 3353 0 3352 1 0 1 1 0 8 0 lockfspl 48 1046 0 1045 1 0 1 1 0 8 0 sessionpl 112 332 0 322 1 0 1 1 0 8 0 pgrppl 48 485 0 475 1 0 1 1 0 8 0 ucredpl 96 41530 0 41521 1 0 1 1 0 8 0 zombiepl 144 11611 0 11611 3 2 1 1 0 8 1 processpl 904 11642 0 11611 4 0 4 4 0 8 0 procpl 632 31692 0 31652 12 7 5 5 0 8 1 srpgc 64 630 0 630 28 27 1 1 0 8 1 sosppl 128 351 0 351 57 57 0 1 0 8 0 sockpl 384 35791 0 35757 180 173 7 15 0 8 1 mcl64k 65536 65 0 0 3 0 3 3 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 0 mcl12k 12288 35 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 3 1 2 2 0 8 0 mcl8k 8192 41 0 0 5 2 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 18 0 0 2 0 2 2 0 8 0 mcl2k 2048 165 0 0 16 4 12 16 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1356 0 0 36 0 36 36 0 8 0 bufpl 280 31656 0 24590 507 1 506 506 0 8 0 anonpl 16 1604707 0 1592520 146 74 72 78 0 125 4 amapchunkpl 152 125044 0 124917 254 247 7 20 0 158 0 amappl16 192 54599 0 53721 354 299 55 57 0 8 8 amappl15 184 2286 0 2282 1 0 1 1 0 8 0 amappl14 176 3245 0 3243 1 0 1 1 0 8 0 amappl13 168 815 0 814 1 0 1 1 0 8 0 amappl12 160 1315 0 1311 3 2 1 1 0 8 0 amappl11 152 2376 0 2365 1 0 1 1 0 8 0 amappl10 144 1492 0 1484 1 0 1 1 0 8 0 amappl9 136 5807 0 5804 1 0 1 1 0 8 0 amappl8 128 4078 0 4001 6 3 3 3 0 8 0 amappl7 120 3117 0 3101 1 0 1 1 0 8 0 amappl6 112 1560 0 1548 1 0 1 1 0 8 0 amappl5 104 3818 0 3807 1 0 1 1 0 8 0 amappl4 96 12108 0 12074 1 0 1 1 0 8 0 amappl3 88 2232 0 2225 1 0 1 1 0 8 0 amappl2 80 68995 0 68928 3 1 2 3 0 8 0 amappl1 72 341208 0 340780 24 14 10 20 0 8 0 amappl 80 37331 0 37286 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 11626 0 11611 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 11626 0 11611 1 0 1 1 0 8 0 vmmpekpl 168 121208 0 121176 2 0 2 2 0 8 0 vmmpepl 168 1704601 0 1702526 472 338 134 144 0 357 30 vmsppl 368 11625 0 11611 2 0 2 2 0 8 0 pdppl 4096 23259 0 23222 7 1 6 6 0 8 1 pvpl 32 4471143 0 4455762 375 199 176 184 0 265 12 pmappl 232 11625 0 11611 46 44 2 2 0 8 1 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 312 0 119 7 1 6 6 0 8 0