oLoLpanic: fifo_badop called Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 49648 54772 0 0x2 0 0 syz-executor.0 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(ffff80001594a548) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803ac36f00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803ac36f00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803ac36f00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001594a7d0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd803617e690,ffff80001594a930,ffff80001594a980,ffff80001594a860) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800015953650,ffffff9c,7f7ffffbefc0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001594ab00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffbefc0,88,0,7f7ffffbefe4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf030, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic fifo_badop called ddb> 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(ffff80001594a548) at fifo_badop+0x14 sys/miscfs/fifofs/fifo_vnops.c:491 VOP_STRATEGY(fffffd803ac36f00) at VOP_STRATEGY+0x99 sys/kern/vfs_vops.c:727 bwrite(fffffd803ac36f00) at bwrite+0x206 sys/kern/vfs_bio.c:738 VOP_BWRITE(fffffd803ac36f00) at VOP_BWRITE+0x4a sys/kern/vfs_vops.c:739 ufs_mkdir(ffff80001594a7d0) at ufs_mkdir+0x6b7 sys/ufs/ufs/ufs_vnops.c:1250 VOP_MKDIR(fffffd803617e690,ffff80001594a930,ffff80001594a980,ffff80001594a860) at VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 domkdirat(ffff800015953650,ffffff9c,7f7ffffbefc0,1ff) at domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 syscall(ffff80001594ab00) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,88,7f7ffffbefc0,88,0,7f7ffffbefe4) at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbf030, count: -11 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001594a470 rbx 0xffff80001594a520 rdx 0x2 rcx 0 rax 0 r8 0xffff80001594a430 r9 0x1 r10 0 r11 0xdc44d7129e7be5b1 r12 0x3000000008 r13 0xffff80001594a480 r14 0x100 r15 0x1 rip 0xffffffff8208d768 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001594a460 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=49648 stat=onproc flags process=2 proc=0 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800015953160,0xffff8000159522a0 process=0xffff8000148a2d98 user=0xffff800015945000, vmspace=0xfffffd803f013330 estcpu=36, cpticks=0, pctcpu=0.1 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 84907 271384 28256 0 2 0 syz-executor.1 84907 362717 28256 0 2 0x4000000 syz-executor.1 *54772 49648 30249 0 7 0x2 syz-executor.0 70055 484709 1 0 3 0x100083 ttyin getty 28256 275598 30249 0 3 0x82 nanosleep syz-executor.1 84947 310096 0 0 3 0x14200 acct acct 69579 355392 0 0 3 0x14200 bored sosplice 30249 298080 13501 0 3 0x82 thrsleep syz-fuzzer 30249 176969 13501 0 3 0x4000082 nanosleep syz-fuzzer 30249 129392 13501 0 3 0x4000082 thrsleep syz-fuzzer 30249 313056 13501 0 3 0x4000082 thrsleep syz-fuzzer 30249 309869 13501 0 3 0x4000082 kqread syz-fuzzer 30249 318879 13501 0 3 0x4000082 thrsleep syz-fuzzer 30249 351936 13501 0 3 0x4000082 thrsleep syz-fuzzer 30249 233891 13501 0 3 0x4000082 thrsleep syz-fuzzer 13501 72316 52382 0 3 0x10008a pause ksh 52382 80139 36017 0 3 0x92 select sshd 36017 345747 1 0 3 0x80 select sshd 91771 494989 4731 73 3 0x100090 kqread syslogd 4731 218424 1 0 3 0x100082 netio syslogd 95810 370484 1 77 3 0x100090 poll dhclient 98070 285304 1 0 3 0x80 poll dhclient 39860 69405 0 0 2 0x14200 zerothread 62691 148007 0 0 3 0x14200 aiodoned aiodoned 70781 251680 0 0 3 0x14200 syncer update 98824 96477 0 0 3 0x14200 cleaner cleaner 16891 478634 0 0 3 0x14200 reaper reaper 24646 407680 0 0 3 0x14200 pgdaemon pagedaemon 64305 210941 0 0 3 0x14200 bored crynlk 8606 396172 0 0 3 0x14200 bored crypto 2991 59396 0 0 3 0x40014200 acpi0 acpi0 28330 230061 0 0 3 0x14200 bored softnet 97452 140843 0 0 3 0x14200 bored systqmp 29378 350898 0 0 3 0x14200 bored systq 52540 135494 0 0 3 0x40014200 bored softclock 60690 387431 0 0 3 0x40014200 idle0 1219 418054 0 0 3 0x14200 bored smr 1 54714 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9595 6499K 7768K 78643K 20089 0 0 pcb 13 10K 12K 78643K 761 0 0 rtable 125 12K 13K 78643K 5048 0 0 ifaddr 94 21K 21K 78643K 589 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 246 0 0 iov 0 0K 24K 78643K 2250 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 78K 78643K 4725 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 78 0 0 VM map 37 9K 9K 78643K 44 0 0 sem 12 1K 1K 78643K 541 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 3549 0 0 sigio 0 0K 0K 78643K 39 0 0 proc 50 38K 62K 78643K 1487 0 0 subproc 32 2K 2K 78643K 357 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 317 0 0 in_multi 37 2K 2K 78643K 346 0 0 ether_multi 1 0K 0K 78643K 21 0 0 mrt 0 0K 0K 78643K 15 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 806 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 163 307K 316K 78643K 10297 0 0 UVM aobj 130 4K 4K 78643K 136 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 692 0 0 NDP 22 0K 1K 78643K 188 0 0 temp 240 3545K 4185K 78643K 104312 0 0 kqueue 0 0K 0K 78643K 26 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 113 0 107 1 0 1 1 0 8 0 rtpcb 80 4425 0 4423 2 1 1 2 0 8 0 rtentry 112 427 0 382 2 0 2 2 0 8 0 unpcb 120 2494 0 2484 4 3 1 2 0 8 0 syncache 264 23 0 23 12 12 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 47 0 47 10 10 0 1 0 8 0 tcpcb 544 1737 0 1733 18 17 1 12 0 8 0 ipq 40 33 0 33 13 13 0 1 0 8 0 ipqe 40 979 0 979 13 13 0 1 0 8 0 inpcb 280 4370 0 4363 24 22 2 9 0 8 1 rttmr 72 6 0 5 3 2 1 1 0 8 0 nd6 48 51 0 47 5 4 1 1 0 8 0 pkpcb 40 10 0 10 3 3 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 56 0 56 15 14 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1667 0 1423 39 23 16 17 0 8 0 art_table 32 1668 0 1423 4 2 2 3 0 8 0 art_node 16 426 0 385 1 0 1 1 0 8 0 sysvmsgpl 40 66 0 50 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 535 0 525 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7199 0 5793 46 0 46 46 0 8 0 ffsino 240 7199 0 5793 85 1 84 84 0 8 0 nchpl 144 12628 0 12156 61 40 21 61 0 8 0 uvmvnodes 72 6785 0 0 124 0 124 124 0 8 0 vnodes 208 6785 0 0 358 0 358 358 0 8 0 namei 1024 44246 0 44243 6 5 1 1 0 8 0 vcpupl 1984 35 0 0 5 0 5 5 0 8 0 vmpool 520 42 0 7 3 0 3 3 0 8 0 scsiplug 64 5 0 5 3 3 0 1 0 8 0 scxspl 192 42625 0 42625 29 26 3 7 0 8 3 plimitpl 152 331 0 324 1 0 1 1 0 8 0 sigapl 432 3666 0 3653 2 0 2 2 0 8 0 futexpl 56 101544 0 101544 5 4 1 1 0 8 1 knotepl 112 879 0 860 1 0 1 1 0 8 0 kqueuepl 104 1136 0 1134 4 3 1 4 0 8 0 pipepl 112 2230 0 2211 8 6 2 2 0 8 1 fdescpl 424 3667 0 3653 2 0 2 2 0 8 0 filepl 120 34541 0 34445 25 20 5 11 0 8 1 lockfpl 104 2356 0 2355 1 0 1 1 0 8 0 lockfspl 48 868 0 867 1 0 1 1 0 8 0 sessionpl 112 39 0 29 1 0 1 1 0 8 0 pgrppl 48 398 0 388 1 0 1 1 0 8 0 ucredpl 96 4363 0 4356 1 0 1 1 0 8 0 zombiepl 144 3653 0 3653 1 0 1 1 0 8 1 processpl 864 3683 0 3653 4 0 4 4 0 8 0 procpl 632 8099 0 8061 6 2 4 5 0 8 0 sosppl 128 59 0 59 11 11 0 1 0 8 0 sockpl 384 11325 0 11306 58 54 4 14 0 8 1 mcl64k 65536 1340 0 1340 126 125 1 33 0 8 1 mcl16k 16384 46 0 46 17 17 0 1 0 8 0 mcl12k 12288 106 0 106 15 14 1 1 0 8 1 mcl9k 9216 42 0 42 14 13 1 1 0 8 1 mcl8k 8192 214 0 214 10 9 1 1 0 8 1 mcl4k 4096 518 0 518 6 5 1 1 0 8 1 mcl2k2 2112 49 0 49 15 14 1 1 0 8 1 mcl2k 2048 68212 0 68168 18 12 6 13 0 8 0 mtagpl 80 133 0 125 8 7 1 1 0 8 0 mbufpl 256 196265 0 196139 750 728 22 155 0 8 6 bufpl 256 22102 0 15330 425 0 425 425 0 8 0 anonpl 16 461763 0 444596 186 104 82 95 0 62 1 amapchunkpl 152 19884 0 19772 70 63 7 16 0 158 1 amappl16 192 21883 0 20782 182 124 58 68 0 8 2 amappl15 184 77 0 76 2 1 1 1 0 8 0 amappl14 176 1197 0 1190 1 0 1 1 0 8 0 amappl13 168 200 0 200 5 4 1 1 0 8 1 amappl12 160 174 0 172 1 0 1 1 0 8 0 amappl11 152 386 0 375 1 0 1 1 0 8 0 amappl10 144 638 0 636 1 0 1 1 0 8 0 amappl9 136 1407 0 1399 1 0 1 1 0 8 0 amappl8 128 951 0 911 3 1 2 2 0 8 0 amappl7 120 742 0 733 1 0 1 1 0 8 0 amappl6 112 341 0 333 1 0 1 1 0 8 0 amappl5 104 460 0 448 1 0 1 1 0 8 0 amappl4 96 3204 0 3176 1 0 1 1 0 8 0 amappl3 88 1931 0 1921 1 0 1 1 0 8 0 amappl2 80 27617 0 27548 3 1 2 3 0 8 0 amappl1 72 77795 0 77383 25 16 9 20 0 8 0 amappl 80 8697 0 8641 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 3709 0 3653 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3709 0 3653 1 0 1 1 0 8 0 vmmpekpl 168 25675 0 25636 2 0 2 2 0 8 0 vmmpepl 168 451417 0 449168 351 210 141 141 0 357 33 vmsppl 272 3666 0 3653 3 2 1 2 0 8 0 pdppl 4096 7424 0 7355 14 5 9 10 0 8 0 pvpl 32 1213504 0 1193474 375 171 204 264 0 265 19 pmappl 200 3708 0 3660 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1523 0 951 24 5 19 21 0 8 0