uvm_fault(0xffffffff839a9f78, 0xffff800029a62004, 0, 1) -> d kernel: page fault trap, code=0 Stopped at ufs_readdir+0x26e: movzwl 0x4(%r14),%ebx TID PID UID PRFLAGS PFLAGS CPU COMMAND *332665 30848 0 0x2 0 0 syz-executor ufs_readdir(ffff80002a82b1b0) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff7006d8e27f8,ffff80002a82b238,fffff70007ffd888,ffff80002a82b27c) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a7367d0,ffff80002a82b3c0,ffff80002a82b310) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a82b3c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a82b3c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cd1576cfc0, count: 10 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: uvm_fault(0xffffffff839a9f78, 0xffff800029a62004, 0, 1) -> d ddb> show kasan No such command ddb> trace ufs_readdir(ffff80002a82b1b0) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff7006d8e27f8,ffff80002a82b238,fffff70007ffd888,ffff80002a82b27c) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a7367d0,ffff80002a82b3c0,ffff80002a82b310) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a82b3c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a82b3c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cd1576cfc0, count: -5 ddb> show registers rdi 0x200 rsi 0x800 rbp 0xffff80002a82b1a0 rbx 0x200 rdx 0 rcx 0xfffff7006d8478c0 rax 0xffff800029a62200 r8 0xffffffffffffffff r9 0x3 r10 0x2ed5207491f6d976 r11 0xd92ee0f126f9639b r12 0 r13 0xffff80002a82b238 r14 0xffff800029a62000 r15 0xffff800029a62008 rip 0xffffffff81d77e2e ufs_readdir+0x26e cs 0x8 rflags 0x10283 __ALIGN_SIZE+0xf283 rsp 0xffff80002a82aff0 ss 0x10 ufs_readdir+0x26e: movzwl 0x4(%r14),%ebx ddb> show proc PROC (syz-executor) tid=332665 pid=30848 tcnt=1 stat=onproc flags process=2 proc=0 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a767c98,0xffff80002a737ca0 process=0xffff80002a79d210 user=0xffff80002a826000, vmspace=0xfffff7007f1ed738 estcpu=36, cpticks=9, pctcpu=0.1, user=1, sys=8, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 4532 521652 30301 0 2 0 0 syz-executor 4532 244366 30301 0 3 0 0x4000080 fsleep syz-executor 25683 294167 10160 0 2 0 0 syz-executor 25683 415938 10160 0 3 0 0x4000080 sbwait syz-executor 12093 175194 69658 0 2 0 0 syz-executor 12093 214281 69658 0 3 0 0x4000080 fsleep syz-executor 65455 421414 12797 0 2 0 0 syz-executor 65455 290497 12797 0 3 0 0x4000080 fsleep syz-executor 65455 160693 12797 0 3 0 0x4000080 fsleep syz-executor 65455 288192 12797 0 3 0 0x4000080 fsleep syz-executor 86817 151140 56868 60929 3 0x10 0x80 nanoslp syz-executor 86817 102162 56868 60929 3 0x10 0x4000080 msgwait syz-executor 86817 126801 56868 60929 3 0x10 0x4000080 fsleep syz-executor 27105 143525 76152 0 2 0 0 syz-executor 27105 224235 76152 0 3 0 0x4000080 fsleep syz-executor 69658 475296 65517 0 3 0x2 0x80 nanoslp syz-executor 56868 446471 65517 0 2 0x2 0xc80 syz-executor 76152 357214 65517 0 2 0x2 0xc80 syz-executor 30301 389768 65517 0 2 0x2 0xc80 syz-executor *30848 332665 65517 0 7 0x2 0 syz-executor 12797 468906 65517 0 3 0x2 0x80 nanoslp syz-executor 71844 61986 65517 0 3 0x2 0x80 wait syz-executor 10160 499470 65517 0 3 0x2 0x80 nanoslp syz-executor 65517 108361 49596 0 2 0x2 0 syz-executor 49596 84236 83936 0 3 0x100002 0x88 sigsusp ksh 83936 373396 85926 0 3 0x10 0x88 kqread sshd-session 85926 110123 46106 0 3 0x12 0x80 kqread sshd-session 33555 483899 1 0 3 0x100003 0x80 ttyin getty 46106 480509 1 0 3 0 0x88 kqread sshd 52230 144893 19109 73 3 0x1100010 0x80 kqread syslogd 19109 468936 1 0 3 0x100002 0x80 sbwait syslogd 61871 136585 1 0 3 0x100000 0x80 kqread resolvd 22111 248443 44324 77 3 0x100012 0x80 kqread dhcpleased 12783 144177 44324 77 3 0x100012 0x80 kqread dhcpleased 44324 374468 1 0 3 0 0x80 kqread dhcpleased 88766 285664 0 0 3 0x14000 0x200 bored smr 33578 446220 0 0 2 0x14000 0x200 zerothread 24237 199729 0 0 3 0x14000 0x200 aiodoned aiodoned 90294 76427 0 0 3 0x14000 0x200 syncer update 3560 143823 0 0 3 0x14000 0x200 cleaner cleaner 17085 280597 0 0 3 0x14000 0x200 reaper reaper 85971 55775 0 0 3 0x14000 0x200 pgdaemon pagedaemon 31858 157881 0 0 3 0x14000 0x200 bored viomb 99405 194405 0 0 3 0x14000 0x40000200 acpi0 acpi0 77597 167228 0 0 3 0x14000 0x200 bored softnet0 44078 147951 0 0 3 0x14000 0x200 bored systqmp 15493 449336 0 0 3 0x14000 0x200 bored systq 3327 452983 0 0 3 0x14000 0x40000200 tmoslp softclock 46110 384521 0 0 3 0x14000 0x40000200 idle0 1 344110 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11040 12174K 12378K 166960K 12775 0 pcb 17 12K 12K 166960K 152 0 rtable 273 9K 11K 166960K 502 0 pf 32 13K 17K 166960K 61 0 ifaddr 42 7K 7K 166960K 47 0 ifgroup 53 2K 2K 166960K 59 0 sysctl 4 1K 9K 166960K 11 0 counters 33 17K 18K 166960K 39 0 ioctlops 0 0K 4K 166960K 135 0 iov 0 0K 12K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1299 82K 82K 166960K 1916 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 49 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 85K 166960K 729 0 sigio 0 0K 0K 166960K 1 0 proc 60 59K 83K 166960K 535 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 77 0 in_multi 99 6K 7K 166960K 121 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 18 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 382 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 224 153K 165K 166960K 7812 0 UVM aobj 9 2K 2K 166960K 9 0 pinsyscall 38 76K 93K 166960K 1829 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 104 0 NDP 11 0K 1K 166960K 30 0 temp 63 9113K 9121K 166960K 45058 0 kqueue 16 24K 33K 166960K 115 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 123 0 120 1 0 1 1 0 8 0 rtentry 136 125 0 5 5 0 5 5 0 8 0 unpcb 144 473 0 454 6 0 6 6 0 8 5 syncache 336 30 0 30 1 0 1 1 0 8 1 tcpcb 736 192 0 188 2 0 2 2 0 8 1 arp 96 20 0 1 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 655 0 643 7 0 7 7 0 8 5 ip6q 72 18 0 14 1 0 1 1 0 8 0 ip6af 40 40 0 36 1 0 1 1 0 8 0 nd6 112 33 0 1 1 0 1 1 0 8 0 pkpcb 40 32 0 32 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 6 0 6 1 0 1 1 0 8 1 pfstscr 40 26 0 0 1 0 1 1 0 8 0 pfrktable 1344 5 0 5 1 0 1 1 0 8 1 pfanchor 1288 1 0 1 1 0 1 1 0 8 1 pftag 88 4 0 1 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 0 1 1 0 8 1 pfstitem 24 25 0 20 1 0 1 1 0 8 0 pfstkey 128 25 0 10 1 0 1 1 0 8 0 pfstate 384 13 0 0 2 0 2 2 0 8 0 pfrule 1360 15 0 15 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 573 0 15 35 0 35 35 0 8 0 art_table 40 575 0 15 6 0 6 6 0 8 0 art_node 32 125 0 16 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semapl 72 46 0 36 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 2702 0 1240 92 0 92 92 0 8 0 ffsino 256 2702 0 1240 92 0 92 92 0 8 0 nchpl 144 3680 0 1987 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 3032 0 0 169 0 169 169 0 8 0 namei 1024 10868 0 10868 2 0 2 2 0 8 2 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 kstatmem 264 29 0 6 2 0 2 2 0 8 0 scxspl 216 16770 0 16770 8 0 8 8 1 8 8 plimitpl 152 128 0 111 1 0 1 1 0 8 0 sigapl 424 1024 0 982 6 0 6 6 0 8 1 knotepl 120 25519 0 25256 19 5 14 15 0 8 4 kqueuepl 184 126 0 114 1 0 1 1 0 8 0 pipepl 304 172 0 144 3 0 3 3 0 8 0 fdescpl 448 1011 0 982 4 0 4 4 0 8 0 filepl 120 4879 0 4649 14 0 14 14 0 8 6 lockfpl 104 69 0 66 1 0 1 1 0 8 0 lockfspl 48 31 0 28 1 0 1 1 0 8 0 sessionpl 144 42 0 34 1 0 1 1 0 8 0 pgrppl 48 51 0 35 1 0 1 1 0 8 0 ucredpl 104 785 0 772 1 0 1 1 0 8 0 zombiepl 144 983 0 982 1 0 1 1 0 8 0 processpl 1152 1024 0 982 4 0 4 4 0 8 0 procpl 664 1764 0 1713 6 0 6 6 0 8 1 sockpl 552 1286 0 1252 17 7 10 17 0 8 7 mcl64k 65536 13 0 13 1 0 1 1 0 8 1 mcl16k 16384 32 0 32 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k128 9344 3 0 3 1 0 1 1 0 8 1 mcl8k 8192 104 0 104 1 0 1 1 0 8 1 mcl4k 4096 3557 0 3502 15 0 15 15 0 8 7 mcl2k2 2112 4 0 4 1 0 1 1 0 8 1 mcl2k 2048 539 0 536 2 0 2 2 0 8 0 mextrefs 64 455 0 455 1 0 1 1 0 8 1 mtagpl 96 6 0 5 1 0 1 1 0 8 0 mbufpl 256 10562 0 10328 20 0 20 20 0 8 4 bufpl 272 6568 0 352 415 0 415 415 0 8 0 anonpl 24 141248 0 137018 46 0 46 46 0 187 5 amapchunkpl 152 24534 0 24001 28 0 28 28 0 158 3 amappl16 200 2354 0 2325 16 0 16 16 0 8 8 amappl15 192 1 0 1 1 0 1 1 0 8 1 amappl14 184 411 0 410 1 0 1 1 0 8 0 amappl13 176 115 0 105 1 0 1 1 0 8 0 amappl12 168 1249 0 1221 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 76 0 66 1 0 1 1 0 8 0 amappl9 144 272 0 272 1 0 1 1 0 8 1 amappl8 136 94 0 93 1 0 1 1 0 8 0 amappl7 128 139 0 128 1 0 1 1 0 8 0 amappl6 120 150 0 149 1 0 1 1 0 8 0 amappl5 112 89 0 82 1 0 1 1 0 8 0 amappl4 104 263 0 247 1 0 1 1 0 8 0 amappl3 96 5192 0 5084 4 0 4 4 0 8 0 amappl2 88 524 0 469 2 0 2 2 0 8 0 amappl1 80 12668 0 12124 13 0 13 13 0 8 1 amappl 88 7017 0 6856 5 0 5 5 0 92 0 uvmvnodes 80 107 0 0 3 0 3 3 0 8 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1011 0 982 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1011 0 982 1 0 1 1 0 8 0 vmmpekpl 168 8925 0 8890 2 0 2 2 0 8 0 vmmpepl 168 69255 0 67475 92 0 92 92 0 357 11 vmsppl 368 1010 0 982 4 0 4 4 0 8 1 rwobjpl 40 20187 0 19231 13 0 13 13 0 8 0 pdppl 4096 2028 0 1964 90 24 66 76 0 8 2 pvpl 32 441075 0 429871 124 0 124 124 0 265 23 pmappl 216 1010 0 982 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 786 0 24 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace ufs_readdir(ffff80002a82b1b0) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff7006d8e27f8,ffff80002a82b238,fffff70007ffd888,ffff80002a82b27c) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a7367d0,ffff80002a82b3c0,ffff80002a82b310) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a82b3c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a82b3c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cd1576cfc0, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace ufs_readdir(ffff80002a82b1b0) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff7006d8e27f8,ffff80002a82b238,fffff70007ffd888,ffff80002a82b27c) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a7367d0,ffff80002a82b3c0,ffff80002a82b310) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a82b3c0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a82b3c0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cd1576cfc0, count: -5