Warning: Permanently added '10.128.0.75' (ECDSA) to the list of known hosts. executing program /: bad dir ino 2 at offset 0: mangled entry panic: bad dir Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *308306 82927 0 0 0 1 syz-executor6193 421530 6758 73 0x100010 0 0 syslogd db_enter() at db_enter+0x18 panic() at panic+0x15c ufs_dirbadentry(ffff800020bba968,ffff800020bba968,ca21247bcb3d2877) at ufs_dirbadentry VOP_LOOKUP(fffffd807efca960,ffff800020bbaa10,ffff800020bba9d0) at VOP_LOOKUP+0x5b unveil_find_cover(fffffd806ed037d8,ffff800020b852d0) at unveil_find_cover+0x139 unveil_add_vnode() at unveil_add_vnode+0x221 unveil_add(ffff800020b852d0,ffff800020bbafd8,ffff800020bbb0a3) at unveil_add+0x273 sys_unveil(ffff800020b852d0,ffff800020bbb118,ffff800020bbb180) at sys_unveil+0x405 syscall(ffff800020bbb1f0) at syscall+0x552 Xsyscall(6,0,7f7ffffcf7a8,0,431bde82d7b634db,7dfc472d568) at Xsyscall+0x128 end trace frame: 0x0, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic bad dir ddb{1}> trace db_enter() at db_enter+0x18 panic() at panic+0x15c ufs_dirbadentry(ffff800020bba968,ffff800020bba968,ca21247bcb3d2877) at ufs_dirbadentry VOP_LOOKUP(fffffd807efca960,ffff800020bbaa10,ffff800020bba9d0) at VOP_LOOKUP+0x5b unveil_find_cover(fffffd806ed037d8,ffff800020b852d0) at unveil_find_cover+0x139 unveil_add_vnode() at unveil_add_vnode+0x221 unveil_add(ffff800020b852d0,ffff800020bbafd8,ffff800020bbb0a3) at unveil_add+0x273 sys_unveil(ffff800020b852d0,ffff800020bbb118,ffff800020bbb180) at sys_unveil+0x405 syscall(ffff800020bbb1f0) at syscall+0x552 Xsyscall(6,0,7f7ffffcf7a8,0,431bde82d7b634db,7dfc472d568) at Xsyscall+0x128 end trace frame: 0x0, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020bba780 rbx 0xffff800020bba830 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81a425b3 kprintf+0x173 r9 0x1 r10 0x4274cb14f133163b r11 0x3188371dbc430079 r12 0x3000000008 r13 0xffff800020bba790 r14 0x100 r15 0x1 rip 0xffffffff812575e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020bba770 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor6193) pid=308306 stat=onproc flags process=0 proc=0 pri=17, usrpri=53, nice=20 forw=0xffffffffffffffff, list=0xffff800020b84e20,0xffffffff823445b0 process=0xffff800020b3b3c0 user=0xffff800020bb6000, vmspace=0xfffffd806f1a2878 estcpu=3, cpticks=5, pctcpu=0.7 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND *82927 308306 84520 0 7 0 syz-executor6193 84520 148700 53087 0 3 0x82 nanosleep syz-executor6193 53087 29823 60172 0 3 0x10008a pause ksh 60172 209202 76707 0 3 0x92 select sshd 17999 4757 1 0 3 0x100083 ttyin getty 76707 251384 1 0 3 0x80 select sshd 38475 105361 60582 74 3 0x100092 bpf pflogd 60582 151913 1 0 3 0x80 netio pflogd 6758 421530 56284 73 7 0x100010 syslogd 56284 410030 1 0 3 0x100082 netio syslogd 54129 80941 1 77 3 0x100090 poll dhclient 6496 443897 1 0 3 0x80 poll dhclient 39443 278119 0 0 3 0x14200 pgzero zerothread 50030 331091 0 0 3 0x14200 aiodoned aiodoned 22903 107321 0 0 3 0x14200 syncer update 86361 302272 0 0 3 0x14200 cleaner cleaner 17251 73644 0 0 3 0x14200 reaper reaper 81615 10797 0 0 3 0x14200 pgdaemon pagedaemon 65775 386849 0 0 3 0x14200 bored crynlk 74253 65237 0 0 3 0x14200 bored crypto 42075 518234 0 0 3 0x40014200 acpi0 acpi0 47050 480008 0 0 3 0x40014200 idle1 55622 208616 0 0 3 0x14200 bored softnet 70012 332349 0 0 3 0x14200 bored systqmp 76615 113594 0 0 3 0x14200 bored systq 85943 398782 0 0 3 0x40014200 bored softclock 34088 418983 0 0 3 0x40014200 idle0 34096 201573 0 0 3 0x14200 bored smr 1 201855 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 82927 (syz-executor6193) thread 0xffff800020b852d0 (308306) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82374b68) #0 witness_lock+0x52e #1 __mp_acquire_count+0x51 #2 mi_switch+0x38c #3 sleep_finish+0x110 #4 sleep_finish_all+0x34 #5 tsleep+0x195 #6 biowait+0xa1 #7 ffs_bufatoff+0x14f #8 ufs_lookup+0x48d #9 VOP_LOOKUP+0x5b #10 unveil_find_cover+0x139 #11 unveil_add_vnode+0x221 #12 unveil_add+0x273 #13 sys_unveil+0x405 #14 syscall+0x552 #15 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd807ed21e68) #0 witness_lock+0x52e #1 rw_enter+0x414 #2 rrw_enter+0x4f #3 VOP_LOCK+0x4b #4 vn_lock+0x6e #5 vget+0x1c3 #6 unveil_find_cover+0x10d #7 unveil_add_vnode+0x221 #8 unveil_add+0x273 #9 sys_unveil+0x405 #10 syscall+0x552 #11 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9450 6382K 6383K 78643K 10537 0 0 pcb 25 9K 9K 78643K 57 0 0 rtable 61 2K 2K 78643K 125 0 0 ifaddr 25 7K 7K 78643K 26 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1467 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1167 73K 73K 78643K 1173 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 1K 78643K 2 0 0 VM map 2 1K 1K 78643K 2 0 0 sem 2 0K 0K 78643K 2 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12628 0 0 file desc 1 0K 0K 78643K 1 0 0 proc 54 70K 70K 78643K 281 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 in_multi 11 0K 0K 78643K 11 0 0 ether_multi 1 0K 0K 78643K 1 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 18 79K 79K 78643K 18 0 0 exec 0 0K 1K 78643K 179 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 55 3K 3K 78643K 773 0 0 UVM aobj 2 2K 2K 78643K 2 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 NDP 4 0K 0K 78643K 4 0 0 temp 39 2712K 2776K 78643K 2845 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 2 0 0 1 0 1 1 0 8 0 inpcbpl 280 29 0 23 1 0 1 1 0 8 0 plimitpl 152 14 0 8 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 syncache 264 5 0 5 1 0 1 1 0 8 1 tcpcb 544 8 0 5 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 8 0 0 1 0 1 1 0 8 0 pfstkey 112 8 0 0 1 0 1 1 0 8 0 pfstate 328 8 0 0 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 dino1pl 128 1394 0 19 45 0 45 45 0 8 0 ffsino 272 1394 0 19 92 0 92 92 0 8 0 nchpl 144 1568 0 32 57 0 57 57 0 8 0 uvmvnodes 72 1404 0 0 26 0 26 26 0 8 0 vnodes 200 1404 0 0 74 0 74 74 0 8 0 namei 1024 3556 0 3555 2 1 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 scxspl 192 5579 0 5578 9 3 6 7 0 8 5 sigapl 432 206 0 193 2 0 2 2 0 8 0 knotepl 112 5 0 0 1 0 1 1 0 8 0 kqueuepl 104 1 0 0 1 0 1 1 0 8 0 pipepl 112 136 0 129 2 1 1 1 0 8 0 fdescpl 488 207 0 193 3 1 2 3 0 8 0 filepl 152 962 0 914 2 0 2 2 0 8 0 lockfpl 104 6 0 6 1 1 0 1 0 8 0 lockfspl 48 3 0 3 1 1 0 1 0 8 0 sessionpl 112 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 96 52 0 43 1 0 1 1 0 8 0 zombiepl 144 193 0 193 2 1 1 1 0 8 1 processpl 840 222 0 193 4 0 4 4 0 8 0 procpl 600 222 0 193 3 0 3 3 0 8 0 sockpl 384 73 0 55 2 0 2 2 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 71 0 0 9 0 9 9 0 8 0 mtagpl 80 1 0 0 1 0 1 1 0 8 0 mbufpl 256 104 0 0 6 0 6 6 0 8 0 bufpl 256 7124 0 2651 280 0 280 280 0 8 0 anonpl 16 23702 0 18375 24 2 22 22 0 125 0 amapchunkpl 152 593 0 540 3 0 3 3 0 158 0 amappl16 192 338 0 92 13 0 13 13 0 8 0 amappl14 176 16 0 15 2 1 1 1 0 8 0 amappl12 160 4 0 4 1 1 0 1 0 8 0 amappl11 152 42 0 24 1 0 1 1 0 8 0 amappl10 144 56 0 54 1 0 1 1 0 8 0 amappl9 136 423 0 422 1 0 1 1 0 8 0 amappl8 128 98 0 94 1 0 1 1 0 8 0 amappl7 120 19 0 18 1 0 1 1 0 8 0 amappl6 112 48 0 42 1 0 1 1 0 8 0 amappl5 104 120 0 107 1 0 1 1 0 8 0 amappl4 96 440 0 415 1 0 1 1 0 8 0 amappl3 88 106 0 100 1 0 1 1 0 8 0 amappl2 80 646 0 604 1 0 1 1 0 8 0 amappl1 72 13718 0 13283 15 5 10 15 0 8 0 amappl 72 436 0 413 1 0 1 1 0 75 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 dma64 64 259 0 259 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 207 0 193 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 207 0 193 1 0 1 1 0 8 0 vmmpekpl 168 5623 0 5602 2 0 2 2 0 8 0 vmmpepl 168 28055 0 27020 59 13 46 46 0 357 0 vmsppl 360 206 0 193 2 0 2 2 0 8 0 pdppl 4096 422 0 386 6 1 5 6 0 8 0 pvpl 32 89377 0 82288 62 4 58 58 0 265 0 pmappl 232 206 0 193 1 0 1 1 0 8 0 extentpl 40 39 0 25 1 0 1 1 0 8 0 phpool 112 411 0 5 12 0 12 12 0 8 0