panic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *286935 26197 32767 0x10 0 0K syz-executor.0 212405 67598 32767 0x10 0 1 syz-executor.1 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(ffff800024d7efe8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd80684e9800) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd80684e9800) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd80684e9800) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024d7f270) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8079192ea0,ffff800024d7f3d0,ffff800024d7f420,ffff800024d7f300) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab0780,ffffff9c,7f7ffffc9140,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024d7f5a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d7f5a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffc9140,88,0,7f7ffffc9164) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc91b0, 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(ffff800024d7efe8) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd80684e9800) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd80684e9800) at bwrite+0x1b9 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd80684e9800) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff800024d7f270) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd8079192ea0,ffff800024d7f3d0,ffff800024d7f420,ffff800024d7f300) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800020ab0780,ffffff9c,7f7ffffc9140,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff800024d7f5a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024d7f5a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffc9140,88,0,7f7ffffc9164) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffc91b0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800024d7ef10 rbx 0xffff800024d7efc0 rdx 0xffff800020ab0780 rcx 0 rax 0 r8 0xffffffff815aa7ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x366e35ecaf702ed r12 0x3000000008 r13 0xffff800024d7ef20 r14 0x100 r15 0x1 rip 0xffffffff81beadb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024d7ef00 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=286935 stat=onproc flags process=10 proc=0 pri=17, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab18c8,0xffffffff8263f0b0 process=0xffff800020a8b890 user=0xffff800024d7a000, vmspace=0xfffffd807f00b170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *26197 286935 7844 32767 7 0x10 syz-executor.0 7844 306386 48186 0 3 0x82 wait syz-executor.0 67598 212405 37455 32767 7 0x10 syz-executor.1 37455 400530 48186 0 3 0x82 wait syz-executor.1 58188 350331 0 0 3 0x14200 bored sosplice 48186 515130 58195 0 2 0x2 syz-fuzzer 48186 484587 58195 0 3 0x4000082 nanosleep syz-fuzzer 48186 81049 58195 0 3 0x4000082 thrsleep syz-fuzzer 48186 317620 58195 0 3 0x4000082 thrsleep syz-fuzzer 48186 460218 58195 0 3 0x4000082 thrsleep syz-fuzzer 48186 27853 58195 0 3 0x4000082 thrsleep syz-fuzzer 48186 475556 58195 0 3 0x4000082 thrsleep syz-fuzzer 48186 74261 58195 0 3 0x4000082 thrsleep syz-fuzzer 48186 268154 58195 0 3 0x4000082 thrsleep syz-fuzzer 48186 253093 58195 0 3 0x4000082 kqread syz-fuzzer 58195 101147 56098 0 3 0x10008a pause ksh 56098 411901 4014 0 2 0x92 sshd 74968 24061 1 0 3 0x100083 ttyin getty 4014 330429 1 0 3 0x80 select sshd 62332 193430 95156 73 3 0x100090 kqread syslogd 95156 165100 1 0 3 0x100082 netio syslogd 24637 280453 1 77 3 0x100090 poll dhclient 93667 366002 1 0 3 0x80 poll dhclient 27129 253018 0 0 3 0x14200 pgzero zerothread 89890 220245 0 0 3 0x14200 aiodoned aiodoned 19919 521598 0 0 3 0x14200 syncer update 79557 419797 0 0 3 0x14200 cleaner cleaner 17141 182431 0 0 3 0x14200 reaper reaper 84059 126705 0 0 3 0x14200 pgdaemon pagedaemon 70146 150769 0 0 3 0x14200 bored crynlk 88347 355480 0 0 3 0x14200 bored crypto 74486 391653 0 0 3 0x40014200 acpi0 acpi0 1015 339082 0 0 3 0x40014200 idle1 31695 522343 0 0 3 0x14200 bored softnet 81412 82875 0 0 3 0x14200 bored systqmp 93757 346962 0 0 3 0x14200 bored systq 83119 308302 0 0 3 0x40014200 bored softclock 80865 282781 0 0 3 0x40014200 idle0 98735 147384 0 0 3 0x14200 bored smr 1 510872 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 26197 (syz-executor.0) thread 0xffff800020ab0780 (286935) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8264d188) #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 (0xfffffd8071a88920) #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 (0xfffffd807bc8a4e0) #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 67598 (syz-executor.1) thread 0xffff800020ab09f8 (212405) exclusive rrwlock inode r = 0 (0xfffffd807068b1b8) #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 9474 6323K 6323K 78643K 14852 0 0 pcb 13 12K 14K 78643K 17 0 0 rtable 117 3K 4K 78643K 35841 0 0 ifaddr 36 22K 29K 78643K 5327 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 2K 78643K 1674 0 0 iov 0 0K 52K 78643K 11252 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 76K 78643K 19282 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 358 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 12 0K 1K 78643K 13828 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 33K 78643K 31047 0 0 sigio 0 0K 0K 78643K 628 0 0 proc 48 50K 83K 78643K 39309 0 0 subproc 34 2K 2K 78643K 14620 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 3639 0 0 in_multi 33 2K 2K 78643K 10370 0 0 ether_multi 1 0K 0K 78643K 63 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 14355 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 166 25K 41K 78643K 111466 0 0 UVM aobj 130 7K 7K 78643K 135 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 1855 0 0 NDP 9 0K 0K 78643K 2583 0 0 temp 121 3562K 3646K 78643K 166653 0 0 kqueue 0 0K 0K 78643K 563 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 1790 0 1784 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 4223 0 4221 1 0 1 1 0 8 0 rtentry 112 8702 0 8652 2 0 2 2 0 8 0 unpcb 120 20598 0 20543 26 23 3 3 0 8 0 syncache 264 199 0 199 83 82 1 1 0 8 1 sackhl 24 5 0 5 4 4 0 1 0 8 0 tcpqe 32 69 0 69 40 39 1 1 0 8 1 tcpcb 544 13552 0 13546 163 162 1 14 0 8 0 ipq 40 317 0 317 94 94 0 1 0 8 0 ipqe 40 10986 0 10986 94 94 0 1 0 8 0 inpcb 280 60419 0 60406 252 249 3 13 0 8 1 ip6q 72 13 0 13 9 9 0 1 0 8 0 ip6af 40 127 0 127 9 9 0 1 0 8 0 nd6 48 1723 0 1719 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 38748 0 38446 26 7 19 20 0 8 0 art_table 32 38749 0 38446 21 18 3 3 0 8 0 art_node 16 8701 0 8655 1 0 1 1 0 8 0 sysvmsgpl 40 98 0 64 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 13824 0 13814 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 31202 0 29725 49 1 48 48 0 8 0 ffsino 272 31202 0 29725 101 2 99 99 0 8 0 nchpl 144 68628 0 66976 69 7 62 62 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 350184 0 350183 9 8 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 201345 0 201345 198 197 1 4 0 8 1 plimitpl 152 4965 0 4956 1 0 1 1 0 8 0 sigapl 432 28644 0 28630 47 45 2 3 0 8 0 futexpl 56 540144 0 540144 7 6 1 1 0 8 1 knotepl 112 25563 0 25544 29 28 1 3 0 8 0 kqueuepl 104 11639 0 11637 45 44 1 4 0 8 0 pipepl 112 22270 0 22251 59 58 1 2 0 8 0 fdescpl 488 28645 0 28630 3 0 3 3 0 8 1 filepl 152 259672 0 259574 291 285 6 14 0 8 2 lockfpl 104 10978 0 10977 1 0 1 1 0 8 0 lockfspl 48 4365 0 4364 1 0 1 1 0 8 0 sessionpl 112 875 0 865 1 0 1 1 0 8 0 pgrppl 48 1124 0 1114 1 0 1 1 0 8 0 ucredpl 96 49978 0 49969 1 0 1 1 0 8 0 zombiepl 144 28630 0 28630 3 2 1 1 0 8 1 processpl 896 28661 0 28630 4 0 4 4 0 8 0 procpl 632 74001 0 73961 45 40 5 5 0 8 1 srpgc 64 1716 0 1716 62 61 1 1 0 8 1 sosppl 128 483 0 483 106 105 1 1 0 8 1 sockpl 384 85748 0 85679 365 354 11 23 0 8 2 mcl64k 65536 143 0 0 6 3 3 4 0 8 0 mcl16k 16384 103 0 0 11 9 2 3 0 8 0 mcl12k 12288 81 0 0 2 0 2 2 0 8 0 mcl9k 9216 81 0 0 3 1 2 2 0 8 0 mcl8k 8192 66 0 0 6 3 3 3 0 8 0 mcl4k 4096 41 0 0 4 1 3 3 0 8 0 mcl2k2 2112 15 0 0 1 0 1 1 0 8 0 mcl2k 2048 245 0 0 19 9 10 19 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 2888 0 0 24 0 24 24 0 8 0 bufpl 256 67781 0 60737 441 0 441 441 0 8 0 anonpl 16 3488413 0 3478646 309 252 57 72 0 124 0 amapchunkpl 152 280714 0 280597 327 320 7 19 0 158 1 amappl16 192 126766 0 126143 626 586 40 57 0 8 0 amappl15 184 3685 0 3683 78 77 1 1 0 8 0 amappl14 176 9172 0 9166 1 0 1 1 0 8 0 amappl13 168 2499 0 2497 1 0 1 1 0 8 0 amappl12 160 2616 0 2613 35 34 1 1 0 8 0 amappl11 152 5325 0 5314 1 0 1 1 0 8 0 amappl10 144 2612 0 2607 1 0 1 1 0 8 0 amappl9 136 14439 0 14432 1 0 1 1 0 8 0 amappl8 128 11464 0 11349 5 1 4 4 0 8 0 amappl7 120 6102 0 6092 1 0 1 1 0 8 0 amappl6 112 3270 0 3244 1 0 1 1 0 8 0 amappl5 104 8822 0 8813 1 0 1 1 0 8 0 amappl4 96 28419 0 28379 7 5 2 2 0 8 0 amappl3 88 5924 0 5918 1 0 1 1 0 8 0 amappl2 80 163241 0 163169 3 1 2 3 0 8 0 amappl1 72 826306 0 825888 99 90 9 20 0 8 0 amappl 80 88272 0 88233 3 1 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 28645 0 28630 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 28645 0 28630 1 0 1 1 0 8 0 vmmpekpl 168 264335 0 264304 2 0 2 2 0 8 0 vmmpepl 168 4007903 0 4006070 899 784 115 126 0 357 17 vmsppl 368 28644 0 28630 2 0 2 2 0 8 0 pdppl 4096 57297 0 57260 8 2 6 6 0 8 1 pvpl 32 9729552 0 9716611 972 834 138 174 0 265 0 pmappl 232 28644 0 28630 111 109 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 826 0 208 19 0 19 19 0 8 0