panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *495341 36970 32767 0x10 0 0K syz-executor.1 416418 70709 0 0x12 0 1 sshd db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 fifo_badop(ffff800024f5d118) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8072b86d00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8072b86d00) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8072b86d00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024f5d3a0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd807dfbc018,ffff800024f5d500,ffff800024f5d550,ffff800024f5d430) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a898c8,ffffff9c,7f7ffffd7380,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024f5d6d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f5d6d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffd7380,88,0,7f7ffffd73a4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd73f0, 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() at panic+0x15c sys/kern/subr_prf.c:207 fifo_badop(ffff800024f5d118) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd8072b86d00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd8072b86d00) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd8072b86d00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024f5d3a0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd807dfbc018,ffff800024f5d500,ffff800024f5d550,ffff800024f5d430) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020a898c8,ffffff9c,7f7ffffd7380,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024f5d6d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024f5d6d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffd7380,88,0,7f7ffffd73a4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffd73f0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800024f5d040 rbx 0xffff800024f5d0f0 rdx 0xffff800020a898c8 rcx 0 rax 0 r8 0xffffffff8187f43f kprintf+0x16f r9 0x1 r10 0x25 r11 0xc23696b55b6a278b r12 0x3000000008 r13 0xffff800024f5d050 r14 0x100 r15 0x1 rip 0xffffffff817995a8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024f5d030 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=495341 stat=onproc flags process=10 proc=0 pri=17, usrpri=69, nice=20 forw=0xffffffffffffffff, list=0xffff800020a88508,0xffffffff82678e80 process=0xffff800020a8b890 user=0xffff800024f58000, vmspace=0xfffffd807f00aa10 estcpu=36, cpticks=1, pctcpu=0.1 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *36970 495341 79742 32767 7 0x10 syz-executor.1 79742 240088 27352 0 3 0x82 wait syz-executor.1 93243 27777 50558 32767 2 0x10 syz-executor.0 50558 449662 27352 0 3 0x82 wait syz-executor.0 3393 253955 0 0 3 0x14200 bored sosplice 27352 477475 79807 0 3 0x82 thrsleep syz-fuzzer 27352 243486 79807 0 3 0x4000082 nanosleep syz-fuzzer 27352 165213 79807 0 3 0x4000082 thrsleep syz-fuzzer 27352 366881 79807 0 3 0x4000082 thrsleep syz-fuzzer 27352 11736 79807 0 3 0x4000082 thrsleep syz-fuzzer 27352 184248 79807 0 3 0x4000082 kqread syz-fuzzer 27352 501736 79807 0 3 0x4000082 thrsleep syz-fuzzer 27352 425136 79807 0 3 0x4000082 thrsleep syz-fuzzer 27352 476963 79807 0 2 0x4000002 syz-fuzzer 27352 138071 79807 0 3 0x4000082 thrsleep syz-fuzzer 79807 151782 70709 0 3 0x10008a pause ksh 70709 416418 36470 0 7 0x12 sshd 54607 127585 1 0 3 0x100083 ttyin getty 36470 457985 1 0 3 0x80 select sshd 66850 352395 87045 73 3 0x100090 kqread syslogd 87045 187788 1 0 3 0x100082 netio syslogd 97383 25366 1 77 3 0x100090 poll dhclient 69233 491487 1 0 3 0x80 poll dhclient 88300 204852 0 0 3 0x14200 pgzero zerothread 52581 273635 0 0 3 0x14200 aiodoned aiodoned 16220 219830 0 0 3 0x14200 syncer update 7566 16050 0 0 3 0x14200 cleaner cleaner 4781 168408 0 0 3 0x14200 reaper reaper 30609 225076 0 0 3 0x14200 pgdaemon pagedaemon 81406 510183 0 0 3 0x14200 bored crynlk 11211 504748 0 0 3 0x14200 bored crypto 69423 121582 0 0 3 0x40014200 acpi0 acpi0 92905 259381 0 0 3 0x40014200 idle1 20153 116004 0 0 3 0x14200 bored softnet 60672 275884 0 0 3 0x14200 bored systqmp 64991 215255 0 0 3 0x14200 bored systq 20481 138811 0 0 3 0x40014200 bored softclock 30071 406657 0 0 3 0x40014200 idle0 7385 474747 0 0 3 0x14200 bored smr 1 476988 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 36970 (syz-executor.1) thread 0xffff800020a898c8 (495341) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82637a78) #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:436 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 tsleep+0x198 sleep_finish_timeout sys/kern/kern_synch.c:397 [inline] #4 tsleep+0x198 sleep_finish_all sys/kern/kern_synch.c:183 [inline] #4 tsleep+0x198 sys/kern/kern_synch.c:152 #5 biowait+0xa1 sys/kern/vfs_bio.c:1231 #6 bwrite+0x1e4 sys/kern/vfs_bio.c:747 #7 ffs_update+0x2c2 sys/ufs/ffs/ffs_inode.c:113 #8 ufs_mkdir+0x665 sys/ufs/ufs/ufs_vnops.c:1234 #9 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #10 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #11 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #11 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd8067ab3918) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vget+0x1c3 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:2983 #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 (0xfffffd8067ab35e8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #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:2968 #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 93243 (syz-executor.0) thread 0xffff800020a88ee8 (27777) exclusive rrwlock inode r = 0 (0xfffffd8067ab34d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vn_closefile+0xc7 vn_close sys/kern/vfs_vnops.c:301 [inline] #5 vn_closefile+0xc7 sys/kern/vfs_vnops.c:613 #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 Kern Lim devbuf 9471 6323K 6323K 78643K 11808 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 107 3K 3K 78643K 10713 0 0 ifaddr 36 14K 15K 78643K 1561 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 508 0 0 iov 0 0K 32K 78643K 2092 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 6904 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 151 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 3496 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 11190 0 0 sigio 0 0K 0K 78643K 247 0 0 proc 48 50K 83K 78643K 12306 0 0 subproc 34 2K 2K 78643K 4284 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 1340 0 0 in_multi 33 2K 2K 78643K 3104 0 0 ether_multi 1 0K 0K 78643K 29 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 4744 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 161 25K 34K 78643K 47695 0 0 UVM aobj 130 7K 7K 78643K 146 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 847 0 0 NDP 5 0K 0K 78643K 759 0 0 temp 121 3558K 3638K 78643K 55803 0 0 kqueue 0 0K 0K 78643K 254 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 532 0 525 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1712 0 1710 1 0 1 1 0 8 0 rtentry 112 2571 0 2526 2 0 2 2 0 8 0 unpcb 120 7201 0 7175 28 26 2 2 0 8 1 syncache 264 103 0 103 42 42 0 1 0 8 0 tcpqe 32 21 0 21 19 19 0 1 0 8 0 tcpcb 544 18016 0 18012 166 164 2 14 0 8 1 ipq 40 146 0 146 55 55 0 1 0 8 0 ipqe 40 4393 0 4393 55 55 0 1 0 8 0 inpcb 280 26340 0 26330 148 146 2 14 0 8 0 ip6q 72 7 0 7 6 6 0 1 0 8 0 ip6af 40 149 0 149 6 6 0 1 0 8 0 nd6 48 504 0 500 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 11183 0 10968 17 3 14 14 0 8 0 art_table 32 11184 0 10968 2 0 2 2 0 8 0 art_node 16 2570 0 2529 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 19 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 3494 0 3484 1 0 1 1 0 8 0 shmpl 112 144 0 16 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12749 0 11331 46 0 46 46 0 8 0 ffsino 272 12749 0 11331 99 4 95 95 0 8 0 nchpl 144 26601 0 24972 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 123197 0 123196 5 4 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 87070 0 87070 119 118 1 7 0 8 1 plimitpl 152 1891 0 1882 1 0 1 1 0 8 0 sigapl 432 10611 0 10597 5 3 2 3 0 8 0 futexpl 56 227828 0 227828 4 3 1 1 0 8 1 knotepl 112 8394 0 8375 18 17 1 3 0 8 0 kqueuepl 104 7489 0 7487 34 33 1 4 0 8 0 pipepl 112 8714 0 8695 28 27 1 2 0 8 0 fdescpl 488 10612 0 10597 4 1 3 3 0 8 1 filepl 152 115704 0 115606 203 197 6 14 0 8 2 lockfpl 104 3164 0 3163 1 0 1 1 0 8 0 lockfspl 48 1054 0 1053 1 0 1 1 0 8 0 sessionpl 112 267 0 257 1 0 1 1 0 8 0 pgrppl 48 671 0 661 1 0 1 1 0 8 0 ucredpl 96 19033 0 19024 1 0 1 1 0 8 0 zombiepl 144 10597 0 10597 2 1 1 1 0 8 1 processpl 896 10628 0 10597 4 0 4 4 0 8 0 procpl 632 35902 0 35862 7 2 5 6 0 8 1 srpgc 64 500 0 500 77 76 1 1 0 8 1 sosppl 128 309 0 309 72 71 1 1 0 8 1 sockpl 384 35517 0 35482 239 233 6 24 0 8 0 mcl64k 65536 83 0 0 8 5 3 3 0 8 0 mcl16k 16384 36 0 0 4 1 3 3 0 8 0 mcl12k 12288 73 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 3 1 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 36 0 0 5 3 2 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 19 8 11 19 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 1874 0 0 21 0 21 21 0 8 0 bufpl 256 37976 0 30932 441 0 441 441 0 8 0 anonpl 16 1491839 0 1482083 278 220 58 71 0 124 0 amapchunkpl 152 119879 0 119776 273 267 6 19 0 158 0 amappl16 192 53646 0 52971 418 371 47 49 0 8 7 amappl15 184 1622 0 1620 26 25 1 1 0 8 0 amappl14 176 2913 0 2907 1 0 1 1 0 8 0 amappl13 168 1406 0 1403 1 0 1 1 0 8 0 amappl12 160 1165 0 1157 2 1 1 1 0 8 0 amappl11 152 1703 0 1691 1 0 1 1 0 8 0 amappl10 144 1154 0 1149 1 0 1 1 0 8 0 amappl9 136 4911 0 4903 1 0 1 1 0 8 0 amappl8 128 3603 0 3512 5 1 4 4 0 8 0 amappl7 120 2093 0 2081 1 0 1 1 0 8 0 amappl6 112 1114 0 1091 1 0 1 1 0 8 0 amappl5 104 2903 0 2893 1 0 1 1 0 8 0 amappl4 96 10678 0 10650 1 0 1 1 0 8 0 amappl3 88 2908 0 2902 1 0 1 1 0 8 0 amappl2 80 65334 0 65265 3 1 2 3 0 8 0 amappl1 72 315989 0 315573 24 14 10 20 0 8 0 amappl 80 40316 0 40281 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 145 0 16 3 0 3 3 0 8 0 uaddrrnd 24 10612 0 10597 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10612 0 10597 1 0 1 1 0 8 0 vmmpekpl 168 117960 0 117927 2 0 2 2 0 8 0 vmmpepl 168 1502955 0 1501097 800 682 118 128 0 357 22 vmsppl 368 10611 0 10597 2 0 2 2 0 8 0 pdppl 4096 21231 0 21194 7 1 6 6 0 8 1 pvpl 32 3895302 0 3882442 887 740 147 172 0 265 8 pmappl 232 10611 0 10597 82 80 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 804 0 196 18 0 18 18 0 8 0