panic: bad dir Stopped at db_enter+030: addq $010,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *462147 91978 0 0 0 0 dhcpleased db_enter() at db_enter+030 panic(ffffffff82457070) at panic+0541 ufs_lookup() at ufs_lookup+013511 VOP_LOOKUP(fffffd806ede39d8,ffff8000216658e8,ffff800021665918) at VOP_LOOKUP+0130 vfs_lookup(ffff8000216658b8) at vfs_lookup+03314 namei(ffff8000216658b8) at namei+01552 vn_open(ffff8000216658b8,1,0) at vn_open+0405 doopenat(ffff8000ffff9a48,ffffff9c,7f7ffffc2df0,0,0,ffff800021665aa0) at doopenat+01152 syscall(ffff800021665b10) at syscall+02116 Xsyscall() at Xsyscall+0450 end of kernel end trace frame: 0x7f7ffffc2de0, 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: bad dir ddb> trace db_enter() at db_enter+030 panic(ffffffff82457070) at panic+0541 ufs_lookup() at ufs_lookup+013511 VOP_LOOKUP(fffffd806ede39d8,ffff8000216658e8,ffff800021665918) at VOP_LOOKUP+0130 vfs_lookup(ffff8000216658b8) at vfs_lookup+03314 namei(ffff8000216658b8) at namei+01552 vn_open(ffff8000216658b8,1,0) at vn_open+0405 doopenat(ffff8000ffff9a48,ffffff9c,7f7ffffc2df0,0,0,ffff800021665aa0) at doopenat+01152 syscall(ffff800021665b10) at syscall+02116 Xsyscall() at Xsyscall+0450 end of kernel end trace frame: 0x7f7ffffc2de0, count: -10 ddb> show registers rdi 0 rsi 01 rbp 01777774000004131451600 rbx 0 rdx 0 rcx 0 rax 01777774000037777715110 r8 04010020040100200401 r9 01002004010020040100200 r10 01576213061175247470522 r11 01230350363451300207512 r12 0 r13 01777777730015674612260 r14 0 r15 01 rip 01777777777760216710530 db_enter+030 cs 010 rflags 01106 rsp 01777774000004131451560 ss 020 db_enter+030: addq $010,%rsp ddb> show proc PROC (dhcpleased) pid=462147 stat=onproc flags process=0 proc=0 pri=17, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff8a88,0xffff8000ffff8fd8 process=0xffff8000216403f8 user=0xffff800021660000, vmspace=0xfffffd807f018110 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 66106 6594 50727 0 2 0 syz-executor.1 66106 462928 50727 0 3 0x4000080 fsleep syz-executor.1 86197 402222 22293 0 3 0x80 nanoslp syz-executor.0 86197 191781 22293 0 3 0x4000080 fsleep syz-executor.0 88338 33848 52527 0 2 0 syz-executor.2 88338 36455 52527 0 3 0x4000080 fsleep syz-executor.2 88338 342872 52527 0 3 0x4000080 fsleep syz-executor.2 88338 396776 52527 0 3 0x4000080 fsleep syz-executor.2 50727 204569 93293 0 3 0x82 nanoslp syz-executor.1 14050 491110 93293 0 3 0x82 nanoslp syz-executor.3 22293 58646 93293 0 3 0x82 nanoslp syz-executor.0 52527 346162 93293 0 3 0x82 nanoslp syz-executor.2 96710 134045 1 0 3 0x100083 ttyin getty 56649 23034 0 0 3 0x14280 nfsidl nfsio 88740 211295 0 0 3 0x14280 nfsidl nfsio 51244 238730 0 0 3 0x14280 nfsidl nfsio 16191 200551 0 0 3 0x14280 nfsidl nfsio 90296 391571 0 0 3 0x14280 nfsidl nfsio 48231 83672 0 0 3 0x14280 nfsidl nfsio 52241 437218 0 0 3 0x14280 nfsidl nfsio 1156 468941 0 0 3 0x14280 nfsidl nfsio 21898 178459 0 0 3 0x14280 nfsidl nfsio 69490 92938 0 0 3 0x14280 nfsidl nfsio 90647 237621 0 0 3 0x14280 nfsidl nfsio 20356 211338 0 0 3 0x14280 nfsidl nfsio 25320 212598 0 0 3 0x14280 nfsidl nfsio 8841 53643 0 0 3 0x14280 nfsidl nfsio 51333 331794 0 0 3 0x14280 nfsidl nfsio 57951 382808 0 0 3 0x14280 nfsidl nfsio 38507 387533 0 0 3 0x14280 nfsidl nfsio 9674 424705 0 0 3 0x14280 nfsidl nfsio 45041 442912 0 0 3 0x14280 nfsidl nfsio 15007 426196 0 0 3 0x14280 nfsidl nfsio 17780 339487 0 0 3 0x14200 acct acct 70806 103616 0 0 3 0x14200 bored sosplice 93293 139491 90019 0 3 0x82 kqread syz-fuzzer 93293 202942 90019 0 3 0x4000082 thrsleep syz-fuzzer 93293 513010 90019 0 3 0x4000082 thrsleep syz-fuzzer 93293 92264 90019 0 3 0x4000082 thrsleep syz-fuzzer 93293 358109 90019 0 3 0x4000082 thrsleep syz-fuzzer 93293 308000 90019 0 3 0x4000082 thrsleep syz-fuzzer 93293 199850 90019 0 3 0x4000082 thrsleep syz-fuzzer 90019 45350 72455 0 3 0x10008a sigsusp ksh 72455 456064 9305 0 3 0x9a poll sshd 9305 239628 1 0 3 0x88 poll sshd 76376 348823 94503 73 3 0x100090 kqread syslogd 94503 432912 1 0 3 0x100082 netio syslogd 93043 299723 1 0 3 0x100080 kqread resolvd 4069 212443 91978 77 3 0x100092 kqread dhcpleased 57197 413646 91978 77 3 0x100092 kqread dhcpleased *91978 462147 1 0 7 0 dhcpleased 15768 118111 0 0 3 0x14200 bored smr 48370 487874 0 0 2 0x14200 zerothread 77938 328082 0 0 3 0x14200 aiodoned aiodoned 84047 146527 0 0 3 0x14200 syncer update 19806 245539 0 0 3 0x14200 cleaner cleaner 36191 511443 0 0 3 0x14200 reaper reaper 15373 192908 0 0 3 0x14200 pgdaemon pagedaemon 92892 451275 0 0 3 0x14200 bored viomb 67251 277667 0 0 3 0x40014200 acpi0 acpi0 56348 501423 0 0 3 0x14200 bored softnet 25043 224804 0 0 3 0x14200 bored systqmp 43296 325785 0 0 3 0x14200 bored systq 47273 63181 0 0 3 0x40014200 bored softclock 69067 152282 0 0 3 0x40014200 idle0 1 500410 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 devbuf 10194 6429K 7242K 78643K 30541 0 pcb 13 20K 25K 78643K 3137 0 rtable 226 32K 33K 78643K 4913 0 ifaddr 95 25K 25K 78643K 1524 0 sysctl 2 0K 0K 78643K 2 0 counters 23 16K 17K 78643K 199 0 ioctlops 0 0K 4K 78643K 13450 0 iov 0 0K 28K 78643K 1394 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1373 86K 86K 78643K 8606 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 107 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 2119 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 9 29K 41K 78643K 17149 0 sigio 0 0K 0K 78643K 120 0 proc 63 55K 79K 78643K 3083 0 subproc 52 3K 4K 78643K 1163 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 963 0 in_multi 55 3K 3K 78643K 1398 0 ether_multi 1 0K 0K 78643K 172 0 mrt 1 0K 0K 78643K 19 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 2K 78643K 3711 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 7 26K 26K 78643K 7 0 UVM amap 306 116K 132K 78643K 203014 0 UVM aobj 131 6K 6K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1890 0 NDP 9 0K 1K 78643K 372 0 temp 121 4233K 4469K 78643K 103888 0 kqueue 10 14K 20K 78643K 443 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 1100 0 1097 7 6 1 3 0 8 0 rtentry 112 1143 0 1084 2 0 2 2 0 8 0 unpcb 136 7495 0 7481 85 84 1 8 0 8 0 syncache 296 180 0 180 12 12 0 1 0 8 0 tcpqe 32 78 0 78 9 8 1 1 0 8 1 tcpcb 736 18665 0 18654 418 416 2 34 0 8 1 arp 88 181 0 171 1 0 1 1 0 8 0 ipq 40 40 0 40 3 3 0 1 0 8 0 ipqe 40 80 0 80 3 3 0 1 0 8 0 inpcb 304 29085 0 29072 283 282 1 16 0 8 0 rttmr 72 6 0 6 2 2 0 1 0 8 0 nd6 48 282 0 270 1 0 1 1 0 8 0 pkpcb 40 15 0 15 4 4 0 1 0 8 0 kcovpl 48 89 0 85 1 0 1 1 0 8 0 ppxss 1152 37 0 37 9 8 1 1 0 8 1 pfstscr 40 3391 0 3391 13 13 0 1 0 8 0 pffrag 232 26 0 26 7 6 1 1 0 482 1 pffrnode 88 26 0 26 7 6 1 1 0 8 1 pffrent 40 145 0 145 7 6 1 1 0 8 1 pfosfp 40 4 0 3 2 1 1 1 0 8 0 pfosfpen 112 4 0 3 2 1 1 1 0 8 0 pfrke_plain 168 2 0 2 1 1 0 1 0 8 0 pfrktable 1344 770 0 734 9 5 4 4 0 8 1 pftag 88 133 0 119 1 0 1 1 0 8 0 pfqueue 264 41 0 37 1 0 1 1 0 8 0 pfstitem 24 2998 0 2998 10 10 0 1 0 8 0 pfstkey 112 6510 0 6510 14 14 0 1 0 8 0 pfstate 320 3259 0 3259 14 14 0 1 0 8 0 pfsrctr 152 556 0 553 7 6 1 2 0 8 0 pfrule 1360 3948 0 3266 58 1 57 57 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 4666 0 4393 63 45 18 18 0 8 0 art_table 32 4667 0 4393 9 6 3 3 0 8 0 art_node 16 1142 0 1092 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 0 1 0 1 1 0 8 0 semupl 112 7 0 7 1 1 0 1 0 8 0 semapl 112 2105 0 2095 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 22633 0 21188 91 0 91 91 0 8 0 ffsino 240 22633 0 21188 86 0 86 86 0 8 0 nchpl 144 42999 0 41411 61 0 61 61 0 8 0 rtmask 32 4 0 4 1 1 0 1 0 8 0 uvmvnodes 80 6184 0 0 127 0 127 127 0 8 0 vnodes 224 6184 0 0 364 0 364 364 0 8 0 namei 1024 149383 0 149382 21 20 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 528 8 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 599 0 412 10 4 6 6 0 8 0 scsiplug 72 3 0 3 1 1 0 1 0 8 0 scxspl 216 172808 0 172808 23 22 1 8 0 8 1 plimitpl 152 1243 0 1233 1 0 1 1 0 8 0 sigapl 424 17126 0 17071 11 4 7 7 0 8 0 futexpl 64 164104 0 164099 20 19 1 1 0 8 0 knotepl 112 7046 0 6997 4 2 2 3 0 8 0 kqueuepl 184 2282 0 2270 40 39 1 7 0 8 0 pipepl 304 2367 0 2351 61 59 2 7 0 8 0 fdescpl 432 17091 0 17071 7 4 3 3 0 8 0 filepl 120 112029 0 111872 171 166 5 12 0 8 0 lockfpl 104 3685 0 3683 9 8 1 2 0 8 0 lockfspl 48 858 0 856 1 0 1 1 0 8 0 sessionpl 144 104 0 92 1 0 1 1 0 8 0 pgrppl 48 263 0 251 1 0 1 1 0 8 0 ucredpl 96 11776 0 11765 1 0 1 1 0 8 0 zombiepl 144 17071 0 17070 3 2 1 1 0 8 0 processpl 1000 17126 0 17070 9 1 8 8 0 8 0 procpl 672 41284 0 41217 50 43 7 8 0 8 1 sosppl 168 94 0 91 20 19 1 1 0 8 0 sockpl 448 37699 0 37668 584 580 4 25 0 8 0 mcl64k 65536 408 0 408 38 38 0 1 0 8 0 mcl16k 16384 99 0 99 32 32 0 1 0 8 0 mcl12k 12288 485 0 485 48 47 1 1 0 8 1 mcl9k 9216 196 0 196 37 36 1 1 0 8 1 mcl8k 8192 1033 0 1033 40 39 1 1 0 8 1 mcl4k 4096 1837 0 1837 29 28 1 1 0 8 1 mcl2k2 2112 128 0 128 43 43 0 1 0 8 0 mcl2k 2048 110873 0 110824 47 37 10 16 0 8 2 mtagpl 96 2425 0 2421 35 34 1 9 0 8 0 mbufpl 256 291997 0 291814 225 206 19 65 0 8 1 bufpl 288 28287 0 21887 459 0 459 459 0 8 0 anonpl 24 4675806 0 4658987 362 233 129 194 0 188 0 amapchunkpl 152 504770 0 504139 182 148 34 56 0 158 7 amappl16 200 46064 0 45313 187 146 41 53 0 8 0 amappl15 192 3731 0 3730 1 0 1 1 0 8 0 amappl14 184 3018 0 3016 1 0 1 1 0 8 0 amappl13 176 3011 0 3010 1 0 1 1 0 8 0 amappl12 168 2130 0 2126 1 0 1 1 0 8 0 amappl11 160 629 0 615 1 0 1 1 0 8 0 amappl10 152 1717 0 1708 1 0 1 1 0 8 0 amappl9 144 2223 0 2217 1 0 1 1 0 8 0 amappl8 136 4039 0 3953 5 1 4 4 0 8 0 amappl7 128 2557 0 2548 1 0 1 1 0 8 0 amappl6 120 2431 0 2412 1 0 1 1 0 8 0 amappl5 112 14043 0 14026 1 0 1 1 0 8 0 amappl4 104 4421 0 4389 1 0 1 1 0 8 0 amappl3 96 5516 0 5499 1 0 1 1 0 8 0 amappl2 88 4234 0 4189 2 0 2 2 0 8 0 amappl1 80 298050 0 297579 16 5 11 12 0 8 1 amappl 88 201210 0 201021 5 0 5 5 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 17099 0 17071 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17099 0 17071 1 0 1 1 0 8 0 vmmpekpl 168 111513 0 111473 2 0 2 2 0 8 0 vmmpepl 168 1561676 0 1559425 532 402 130 133 0 357 18 vmsppl 272 17098 0 17071 3 1 2 2 0 8 0 rwobjpl 24 357667 0 349765 61 13 48 48 0 8 0 pdppl 4096 34205 0 34150 178 121 57 59 0 8 2 pvpl 32 8091174 0 8071977 669 447 222 311 0 265 35 pmappl 216 17098 0 17071 2 0 2 2 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 2379 0 1566 26 1 25 26 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+030 panic(ffffffff82457070) at panic+0541 ufs_lookup() at ufs_lookup+013511 VOP_LOOKUP(fffffd806ede39d8,ffff8000216658e8,ffff800021665918) at VOP_LOOKUP+0130 vfs_lookup(ffff8000216658b8) at vfs_lookup+03314 namei(ffff8000216658b8) at namei+01552 vn_open(ffff8000216658b8,1,0) at vn_open+0405 doopenat(ffff8000ffff9a48,ffffff9c,7f7ffffc2df0,0,0,ffff800021665aa0) at doopenat+01152 syscall(ffff800021665b10) at syscall+02116 Xsyscall() at Xsyscall+0450 end of kernel end trace frame: 0x7f7ffffc2de0, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+030 panic(ffffffff82457070) at panic+0541 ufs_lookup() at ufs_lookup+013511 VOP_LOOKUP(fffffd806ede39d8,ffff8000216658e8,ffff800021665918) at VOP_LOOKUP+0130 vfs_lookup(ffff8000216658b8) at vfs_lookup+03314 namei(ffff8000216658b8) at namei+01552 vn_open(ffff8000216658b8,1,0) at vn_open+0405 doopenat(ffff8000ffff9a48,ffffff9c,7f7ffffc2df0,0,0,ffff800021665aa0) at doopenat+01152 syscall(ffff800021665b10) at syscall+02116 Xsyscall() at Xsyscall+0450 end of kernel end trace frame: 0x7f7ffffc2de0, count: -10