Warning: Permanently added '10.128.0.250' (ED25519) to the list of known hosts. executing program executing program executing program executing program executing program executing program executing program executing program executing program First bad /: bad dir ino 131027 at offset 0: mangled entry panic: bad dir Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *462243 81009 0 0 0 0K syz-executor1831808981 141565 22777 0 0 0 1 syz-executor1831808981 db_enter() at db_enter+0x18 panic(ffffffff825e34ee) at panic+0x177 ufs_lookup() at ufs_lookup+0x174c VOP_LOOKUP(fffffd806c6a9e68,ffff8000213061f0,ffff800021306220) at VOP_LOOKUP+0x58 vfs_lookup(ffff8000213061c0) at vfs_lookup+0x6e5 namei(ffff8000213061c0) at namei+0x36a domknodat(ffff8000ffff5cf0,ffffff9c,20000000,80002005,2d94) at domknodat+0x92 syscall(ffff8000213063c0) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde640, count: 6 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 *cpu0: bad dir ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff825e34ee) at panic+0x177 ufs_lookup() at ufs_lookup+0x174c VOP_LOOKUP(fffffd806c6a9e68,ffff8000213061f0,ffff800021306220) at VOP_LOOKUP+0x58 vfs_lookup(ffff8000213061c0) at vfs_lookup+0x6e5 namei(ffff8000213061c0) at namei+0x36a domknodat(ffff8000ffff5cf0,ffffff9c,20000000,80002005,2d94) at domknodat+0x92 syscall(ffff8000213063c0) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde640, count: -9 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021305da0 rbx 0xffffffff829e2b8f cpu_info_full_primary+0x2b8f rdx 0x3fd rcx 0 rax 0xf r8 0x101010101010101 r9 0x8080808080808080 r10 0x64bf8e866db68894 r11 0x3a0bdd498322f300 r12 0xffffffff829e2990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff81768868 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021305d90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor1831808981) pid=462243 stat=onproc flags process=0 proc=0 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000212b1268,0xffffffff82a5e258 process=0xffff8000ffff14e0 user=0xffff800021301000, vmspace=0xfffffd806c668d00 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *81009 462243 89348 0 7 0 syz-executor1831808981 24794 94493 11916 0 3 0x80 dklk syz-executor1831808981 57199 77948 58981 0 2 0 syz-executor1831808981 51232 305471 93069 0 3 0x80 dklk syz-executor1831808981 86609 164015 11079 0 2 0 syz-executor1831808981 22777 141565 58601 0 7 0 syz-executor1831808981 94353 415273 5637 0 3 0x80 dklk syz-executor1831808981 83765 434663 60671 0 3 0x80 dklk syz-executor1831808981 93069 282367 98959 0 3 0x80 nanoslp syz-executor1831808981 11079 228824 98959 0 3 0x80 nanoslp syz-executor1831808981 89348 514967 98959 0 3 0x80 nanoslp syz-executor1831808981 58601 87797 98959 0 3 0x80 nanoslp syz-executor1831808981 58981 219417 98959 0 3 0x80 nanoslp syz-executor1831808981 60671 380644 98959 0 3 0x80 nanoslp syz-executor1831808981 11916 31129 98959 0 3 0x80 nanoslp syz-executor1831808981 5637 147876 98959 0 3 0x80 nanoslp syz-executor1831808981 98959 69854 36429 0 3 0x82 nanoslp syz-executor1831808981 36429 464878 22465 0 3 0x10008a sigsusp ksh 22465 4300 12425 0 3 0x9a kqread sshd 11264 38183 1 0 3 0x100083 ttyin getty 12425 24830 1 0 3 0x88 kqread sshd 65885 513033 4174 74 3 0x1100092 bpf pflogd 4174 90547 1 0 3 0x80 netio pflogd 95443 329947 92057 73 3 0x1100090 kqread syslogd 92057 266929 1 0 3 0x100082 netio syslogd 71450 12902 1 0 3 0x100080 kqread resolvd 75458 256065 28794 77 3 0x100092 kqread dhcpleased 80871 170608 28794 77 3 0x100092 kqread dhcpleased 28794 117797 1 0 3 0x80 kqread dhcpleased 59747 522978 0 0 3 0x14200 bored smr 33467 9374 0 0 2 0x14200 zerothread 36374 98796 0 0 3 0x14200 aiodoned aiodoned 81469 18624 0 0 3 0x14200 syncer update 1695 27765 0 0 3 0x14200 cleaner cleaner 32878 390846 0 0 3 0x14200 reaper reaper 17137 129859 0 0 3 0x14200 pgdaemon pagedaemon 21241 475480 0 0 3 0x14200 bored viomb 20110 437271 0 0 3 0x40014200 acpi0 acpi0 13427 57522 0 0 3 0x40014200 idle1 60802 144933 0 0 3 0x14200 bored softnet 40779 432065 0 0 3 0x14200 bored softnet 81360 518498 0 0 3 0x14200 bored softnet 15842 154734 0 0 3 0x14200 bored softnet 56058 192771 0 0 3 0x14200 bored systqmp 41438 349950 0 0 2 0x14200 systq 20766 402798 0 0 3 0x40014200 bored softclock 34430 484235 0 0 3 0x40014200 idle0 1 506500 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 81009 (syz-executor1831808981) thread 0xffff8000ffff5cf0 (462243) exclusive rrwlock inode r = 0 (0xfffffd806c68ae68) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_lookup+0xd1 #6 namei+0x36a #7 domknodat+0x92 #8 syscall+0x435 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82bad6e8) #0 witness_lock+0x44d #1 syscall+0x41d #2 Xsyscall+0x128 Process 57199 (syz-executor1831808981) thread 0xffff8000212b0a88 (77948) exclusive rrwlock inode r = 0 (0xfffffd806c68a918) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 ufs_ihashins+0x42 #5 ffs_vget+0x141 #6 ffs_inode_alloc+0x1be #7 ufs_makeinode+0xae #8 ufs_mknod+0x4e #9 VOP_MKNOD+0xbf #10 domknodat+0x326 #11 syscall+0x435 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c68a808) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_lookup+0xd1 #6 namei+0x36a #7 domknodat+0x92 #8 syscall+0x435 #9 Xsyscall+0x128 Process 86609 (syz-executor1831808981) thread 0xffff8000212b0008 (164015) exclusive rrwlock inode r = 0 (0xfffffd806c68a6f8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 ufs_ihashins+0x42 #5 ffs_vget+0x141 #6 ffs_inode_alloc+0x1be #7 ufs_makeinode+0xae #8 ufs_mknod+0x4e #9 VOP_MKNOD+0xbf #10 domknodat+0x326 #11 syscall+0x435 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806c68a1a8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_lookup+0xd1 #6 namei+0x36a #7 domknodat+0x92 #8 syscall+0x435 #9 Xsyscall+0x128 Process 22777 (syz-executor1831808981) thread 0xffff8000212b02a8 (141565) exclusive rrwlock inode r = 0 (0xfffffd806c68a5e8) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 rrw_enter+0x8b #3 VOP_LOCK+0x87 #4 vn_lock+0x84 #5 vfs_lookup+0xd1 #6 namei+0x36a #7 domknodat+0x92 #8 syscall+0x435 #9 Xsyscall+0x128 Process 41438 (systq) thread 0xffff8000211e87e0 (349950) exclusive rwlock dklk r = 0 (0xffff8000006b6068) #0 witness_lock+0x44d #1 rw_enter+0x3e1 #2 vndopen+0x8d #3 spec_open+0x3df #4 VOP_OPEN+0x75 #5 disk_readlabel+0xc5 #6 disk_attach_callback+0x7c #7 taskq_thread+0xe5 #8 proc_trampoline+0x1c shared rwlock systq r = 0 (0xffffffff829a1020) #0 witness_lock+0x44d #1 taskq_thread+0xca #2 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10165 6456K 6457K 78643K 11255 0 pcb 13 8K 8K 78643K 13 0 rtable 58 1K 2K 78643K 107 0 ifaddr 30 8K 8K 78643K 33 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 4 0 vnodes 1169 73K 73K 78643K 1183 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 91K 91K 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 8 62K 64K 78643K 10 0 UVM amap 111 69K 69K 78643K 1599 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 25 4725K 4789K 78643K 2774 0 kqueue 11 16K 18K 78643K 24 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 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 144 35 0 20 1 0 1 1 0 8 0 syncache 296 5 0 5 2 1 1 1 0 8 1 tcpcb 768 8 0 5 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 368 32 0 26 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 9 0 2 1 0 1 1 0 8 0 pfstkey 120 9 0 2 1 0 1 1 0 8 0 pfstate 336 9 0 2 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 1451 0 45 88 0 88 88 0 8 0 ffsino 272 1452 0 45 94 0 94 94 0 8 0 nchpl 144 1644 0 54 59 0 59 59 0 8 0 uvmvnodes 80 1463 0 0 30 0 30 30 0 8 0 vnodes 216 1463 0 0 82 0 82 82 0 8 0 namei 1024 4492 0 4489 3 1 2 2 0 8 1 percpumem 16 32 0 0 1 0 1 1 0 8 0 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 4607 0 4607 10 7 3 8 0 8 3 plimitpl 152 24 0 9 1 0 1 1 0 8 0 sigapl 424 340 0 292 7 1 6 6 0 8 0 knotepl 120 43 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 320 86 0 83 2 1 1 1 0 8 0 fdescpl 496 323 0 292 4 0 4 4 0 8 0 filepl 152 1229 0 1167 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 26 0 9 1 0 1 1 0 8 0 pgrppl 48 26 0 9 1 0 1 1 0 8 0 ucredpl 104 70 0 57 1 0 1 1 0 8 0 zombiepl 144 292 0 292 2 1 1 1 0 8 1 processpl 1064 340 0 292 4 0 4 4 0 8 0 procpl 672 340 0 292 6 1 5 5 0 8 0 sockpl 488 84 0 60 5 1 4 4 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 74 0 0 9 0 9 9 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 133 0 0 8 0 8 8 0 8 0 bufpl 288 2440 0 86 169 0 169 169 0 8 0 anonpl 24 43829 0 40929 21 3 18 18 0 186 0 amapchunkpl 152 2888 0 2739 8 2 6 6 0 158 0 amappl16 200 40 0 31 2 1 1 1 0 8 0 amappl15 192 74 0 66 1 0 1 1 0 8 0 amappl13 176 34 0 33 2 1 1 1 0 8 0 amappl12 168 3 0 3 2 1 1 1 0 8 1 amappl11 160 45 0 31 1 0 1 1 0 8 0 amappl9 144 936 0 936 3 2 1 1 0 8 1 amappl8 136 382 0 377 1 0 1 1 0 8 0 amappl7 128 69 0 61 1 0 1 1 0 8 0 amappl6 120 137 0 105 1 0 1 1 0 8 0 amappl5 112 88 0 78 1 0 1 1 0 8 0 amappl4 104 632 0 609 1 0 1 1 0 8 0 amappl3 96 454 0 418 1 0 1 1 0 8 0 amappl2 88 349 0 301 3 1 2 2 0 8 0 amappl1 80 9907 0 9268 16 2 14 14 0 8 0 amappl 88 1293 0 1221 3 1 2 2 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 324 0 293 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 324 0 293 1 0 1 1 0 8 0 vmmpekpl 168 7043 0 7027 1 0 1 1 0 8 0 vmmpepl 168 29064 0 27573 70 5 65 65 0 357 0 vmsppl 368 323 0 293 3 0 3 3 0 8 0 rwobjpl 56 10556 0 8302 32 0 32 32 0 8 0 pdppl 4096 655 0 586 89 20 69 69 0 8 0 pvpl 32 135972 0 129918 56 7 49 49 0 265 0 pmappl 248 323 0 293 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 482 0 24 14 0 14 14 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 panic(ffffffff825e34ee) at panic+0x177 ufs_lookup() at ufs_lookup+0x174c VOP_LOOKUP(fffffd806c6a9e68,ffff8000213061f0,ffff800021306220) at VOP_LOOKUP+0x58 vfs_lookup(ffff8000213061c0) at vfs_lookup+0x6e5 namei(ffff8000213061c0) at namei+0x36a domknodat(ffff8000ffff5cf0,ffffff9c,20000000,80002005,2d94) at domknodat+0x92 syscall(ffff8000213063c0) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde640, count: -9 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82bad4e0) at __mp_lock+0x122 __mp_acquire_count(ffffffff82bad4e0,1) at __mp_acquire_count+0x48 mi_switch() at mi_switch+0x3bb sleep_finish(ffff800021317bc0,1) at sleep_finish+0x180 tsleep(fffffd806d440008,11,ffffffff82672c46,0) at tsleep+0x12c getblk(fffffd807efb41b0,1fa7a0,4000,0,ffffffffffffffff) at getblk+0x13c bread(fffffd807efb41b0,1fa7a0,4000,ffff800021317e68) at bread+0x3a ffs_update(fffffd806c68aaa0,0) at ffs_update+0x14b ufs_reclaim(fffffd806c567b10) at ufs_reclaim+0xb9 ffs_reclaim(ffff800021317f68) at ffs_reclaim+0x36 VOP_RECLAIM(fffffd806c567b10,ffff8000212b02a8) at VOP_RECLAIM+0x61 end trace frame: 0xffff800021318000, count: 0 ddb{1}> trace x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff82bad4e0) at __mp_lock+0x122 __mp_acquire_count(ffffffff82bad4e0,1) at __mp_acquire_count+0x48 mi_switch() at mi_switch+0x3bb sleep_finish(ffff800021317bc0,1) at sleep_finish+0x180 tsleep(fffffd806d440008,11,ffffffff82672c46,0) at tsleep+0x12c getblk(fffffd807efb41b0,1fa7a0,4000,0,ffffffffffffffff) at getblk+0x13c bread(fffffd807efb41b0,1fa7a0,4000,ffff800021317e68) at bread+0x3a ffs_update(fffffd806c68aaa0,0) at ffs_update+0x14b ufs_reclaim(fffffd806c567b10) at ufs_reclaim+0xb9 ffs_reclaim(ffff800021317f68) at ffs_reclaim+0x36 VOP_RECLAIM(fffffd806c567b10,ffff8000212b02a8) at VOP_RECLAIM+0x61 vclean(fffffd806c567b10,8,ffff8000212b02a8) at vclean+0x220 vgonel(fffffd806c567b10,ffff8000212b02a8) at vgonel+0x79 ufs_mknod(ffff8000213180c0) at ufs_mknod+0x11b VOP_MKNOD(fffffd806c6a9298,ffff800021318220,ffff800021318250,ffff800021318150) at VOP_MKNOD+0xbf domknodat(ffff8000212b02a8,ffffff9c,20000000,80002005,2d94) at domknodat+0x326 syscall(ffff8000213183f0) at syscall+0x435 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffde640, count: -21 ddb{1}>