Warning: Permanently added '10.128.0.114' (ED25519) to the list of known hosts. executing program panic: ufsdirhash_lookup: bad offset in hash array Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *272457 47639 0 0x8000002 0 0 syz-executor4013312317 db_enter() at db_enter+0x1c panic(ffffffff828e005a) at panic+0x165 ufsdirhash_lookup(fffffd806c3fbc40,ffff80002a5f6800,1,fffffd806c3fbcec,ffff80002a615a30,ffff80002a615a48) at ufsdirhash_lookup+0x8a8 ufs_lookup() at ufs_lookup+0xba0 VOP_LOOKUP(fffffd806d1e9db0,ffff80002a615d88,ffff80002a615db8) at VOP_LOOKUP+0x5c vfs_lookup(ffff80002a615d58) at vfs_lookup+0x6df namei(ffff80002a615d58) at namei+0x56a dorenameat(ffff80002a5d6aa8,4,200000c0,3,0) at dorenameat+0x7f syscall(ffff80002a615f40) at syscall+0x538 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cdd411c4ba0, count: 5 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 *cpu0: ufsdirhash_lookup: bad offset in hash array ddb> trace db_enter() at db_enter+0x1c panic(ffffffff828e005a) at panic+0x165 ufsdirhash_lookup(fffffd806c3fbc40,ffff80002a5f6800,1,fffffd806c3fbcec,ffff80002a615a30,ffff80002a615a48) at ufsdirhash_lookup+0x8a8 ufs_lookup() at ufs_lookup+0xba0 VOP_LOOKUP(fffffd806d1e9db0,ffff80002a615d88,ffff80002a615db8) at VOP_LOOKUP+0x5c vfs_lookup(ffff80002a615d58) at vfs_lookup+0x6df namei(ffff80002a615d58) at namei+0x56a dorenameat(ffff80002a5d6aa8,4,200000c0,3,0) at dorenameat+0x7f syscall(ffff80002a615f40) at syscall+0x538 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cdd411c4ba0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002a615850 rbx 0xffff8000006ba410 rdx 0x3fd rcx 0 rax 0x33 r8 0x101010101010101 r9 0x8080808080808080 r10 0x29616aa677fb6a34 r11 0xaca89fc7d8914b35 r12 0 r13 0xffff800000dc9800 r14 0 r15 0x1 rip 0xffffffff822c0e2c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a615840 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor4013312317) tid=272457 pid=47639 tcnt=1 stat=onproc flags process=8000002 proc=0 runpri=17, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a5d72a0,0xffffffff82d2f7e8 process=0xffff8000ffff6190 user=0xffff80002a610000, vmspace=0xfffffd800749e2c0 estcpu=0, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND *47639 272457 19988 0 7 0x8000002 syz-executor4013312317 19988 338449 61779 0 3 0x810008a sigsusp ksh 61779 414861 99219 0 3 0x1800009a kqread sshd 22661 277712 1 0 3 0x18100083 ttyin getty 99219 456228 1 0 3 0x18000088 kqread sshd 96255 17536 38283 73 3 0x19100090 kqread syslogd 38283 406222 1 0 3 0x18100082 netio syslogd 54539 452187 1 0 3 0x18100080 kqread resolvd 11853 400610 95321 77 3 0x18100092 kqread dhcpleased 14946 221898 95321 77 3 0x18100092 kqread dhcpleased 95321 318967 1 0 3 0x18000080 kqread dhcpleased 60423 342649 0 0 3 0x14200 bored smr 70172 244120 0 0 3 0x14200 pgzero zerothread 57210 112430 0 0 3 0x14200 aiodoned aiodoned 77561 403503 0 0 3 0x14200 syncer update 88978 169330 0 0 3 0x14200 cleaner cleaner 40687 269600 0 0 3 0x14200 reaper reaper 3279 322390 0 0 3 0x14200 pgdaemon pagedaemon 19230 132208 0 0 3 0x14200 bored viomb 30092 148315 0 0 3 0x40014200 acpi0 acpi0 51888 135390 0 0 3 0x14200 bored softnet3 45628 210050 0 0 3 0x14200 bored softnet2 2334 102121 0 0 3 0x14200 bored softnet1 67985 140721 0 0 3 0x14200 bored softnet0 7597 385512 0 0 3 0x14200 bored systqmp 70524 246872 0 0 3 0x14200 bored systq 69953 335456 0 0 3 0x40014200 tmoslp softclock 65425 498751 0 0 3 0x40014200 idle0 1 32272 0 0 3 0x8000082 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 devbuf 10137 6382K 6413K 166960K 11215 0 pcb 15 10K 10K 166960K 15 0 rtable 58 1K 2K 166960K 110 0 pf 12 6K 6K 166960K 12 0 ifaddr 11 5K 5K 166960K 11 0 ifgroup 17 1K 1K 166960K 17 0 counters 22 16K 16K 166960K 22 0 ioctlops 0 0K 2K 166960K 21 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1259 79K 79K 166960K 1275 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 21 3K 3K 166960K 21 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 1 0K 0K 166960K 1 0 proc 55 58K 59K 166960K 246 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 11 0K 0K 166960K 11 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 243 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 93 4K 6K 166960K 2184 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 21 42K 56K 166960K 839 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 3 0K 0K 166960K 3 0 temp 1 6788K 6852K 166960K 2756 0 kqueue 11 16K 18K 166960K 24 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 20 0 17 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 155 0 155 1 0 1 1 0 8 1 tcpcb 808 8 0 5 1 0 1 1 0 8 0 arp 88 2 0 0 1 0 1 1 0 8 0 inpcb 360 26 0 20 1 0 1 1 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 20 0 0 3 0 3 3 0 8 0 dino2pl 256 1505 0 40 92 0 92 92 0 8 0 ffsino 240 1505 0 40 87 0 87 87 0 8 0 nchpl 144 1689 0 53 61 0 61 61 0 8 0 uvmvnodes 80 1514 0 0 31 0 31 31 0 8 0 vnodes 216 1514 0 0 85 0 85 85 0 8 0 namei 1024 4350 0 4349 1 0 1 1 0 8 0 kstatmem 264 6 0 0 1 0 1 1 0 8 0 scxspl 216 5160 0 5160 4 0 4 4 1 8 4 plimitpl 152 16 0 10 1 0 1 1 0 8 0 sigapl 424 308 0 279 4 0 4 4 0 8 0 knotepl 120 3479 0 3450 2 0 2 2 0 8 1 kqueuepl 184 20 0 13 1 0 1 1 0 8 0 pipepl 288 87 0 84 1 0 1 1 0 8 0 fdescpl 432 292 0 279 3 0 3 3 0 8 1 filepl 120 1133 0 1078 2 0 2 2 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 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 104 66 0 56 1 0 1 1 0 8 0 zombiepl 144 279 0 279 1 0 1 1 0 8 1 processpl 1072 308 0 279 3 0 3 3 0 8 0 procpl 680 308 0 279 3 0 3 3 0 8 0 sockpl 488 79 0 57 4 0 4 4 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 10 0 10 1 0 1 1 0 8 1 mcl2k 2048 12074 0 12032 28 14 14 27 0 8 6 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 19400 0 19353 14 2 12 14 0 8 8 bufpl 280 2483 0 84 172 0 172 172 0 8 0 anonpl 24 186957 0 185153 24 0 24 24 0 188 11 amapchunkpl 152 8475 0 8345 7 0 7 7 0 158 0 amappl16 200 5450 0 5448 5 0 5 5 0 8 4 amappl15 192 8 0 8 1 0 1 1 0 8 1 amappl14 184 105 0 96 1 0 1 1 0 8 0 amappl13 176 19 0 19 1 0 1 1 0 8 1 amappl12 168 819 0 807 2 0 2 2 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 20 0 20 1 0 1 1 0 8 1 amappl9 144 195 0 195 1 0 1 1 0 8 1 amappl8 136 23 0 22 1 0 1 1 0 8 0 amappl7 128 23 0 22 1 0 1 1 0 8 0 amappl6 120 160 0 149 1 0 1 1 0 8 0 amappl5 112 118 0 106 1 0 1 1 0 8 0 amappl4 104 389 0 363 1 0 1 1 0 8 0 amappl3 96 2217 0 2191 1 0 1 1 0 8 0 amappl2 88 589 0 538 2 0 2 2 0 8 0 amappl1 80 8790 0 8382 11 0 11 11 0 8 1 amappl 88 1885 0 1838 2 0 2 2 0 92 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 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 292 0 279 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 292 0 279 1 0 1 1 0 8 0 vmmpekpl 168 5541 0 5523 1 0 1 1 0 8 0 vmmpepl 168 34537 0 33638 49 0 49 49 0 357 5 vmsppl 352 291 0 279 2 0 2 2 0 8 0 rwobjpl 24 19093 0 16974 14 0 14 14 0 8 0 pdppl 4096 590 0 558 52 18 34 44 0 8 2 pvpl 32 278135 0 274113 51 0 51 51 0 265 15 pmappl 216 291 0 279 2 0 2 2 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 295 0 34 9 0 9 9 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c panic(ffffffff828e005a) at panic+0x165 ufsdirhash_lookup(fffffd806c3fbc40,ffff80002a5f6800,1,fffffd806c3fbcec,ffff80002a615a30,ffff80002a615a48) at ufsdirhash_lookup+0x8a8 ufs_lookup() at ufs_lookup+0xba0 VOP_LOOKUP(fffffd806d1e9db0,ffff80002a615d88,ffff80002a615db8) at VOP_LOOKUP+0x5c vfs_lookup(ffff80002a615d58) at vfs_lookup+0x6df namei(ffff80002a615d58) at namei+0x56a dorenameat(ffff80002a5d6aa8,4,200000c0,3,0) at dorenameat+0x7f syscall(ffff80002a615f40) at syscall+0x538 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cdd411c4ba0, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c panic(ffffffff828e005a) at panic+0x165 ufsdirhash_lookup(fffffd806c3fbc40,ffff80002a5f6800,1,fffffd806c3fbcec,ffff80002a615a30,ffff80002a615a48) at ufsdirhash_lookup+0x8a8 ufs_lookup() at ufs_lookup+0xba0 VOP_LOOKUP(fffffd806d1e9db0,ffff80002a615d88,ffff80002a615db8) at VOP_LOOKUP+0x5c vfs_lookup(ffff80002a615d58) at vfs_lookup+0x6df namei(ffff80002a615d58) at namei+0x56a dorenameat(ffff80002a5d6aa8,4,200000c0,3,0) at dorenameat+0x7f syscall(ffff80002a615f40) at syscall+0x538 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7cdd411c4ba0, count: -10 ddb>