uvm_fault(0xffffffff83a472d0, 0xffff800026102004, 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 *124019 38737 0 0x2 0 0 syz-executor ufs_readdir(ffff80002a7f5530) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff280602387f0,ffff80002a7f55b8,fffff28007ffd888,ffff80002a7f55fc) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a767a00,ffff80002a7f5740,ffff80002a7f5690) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a7f5740) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f5740) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x728e9da1c290, 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(0xffffffff83a472d0, 0xffff800026102004, 0, 1) -> d ddb> show kasan No such command ddb> trace ufs_readdir(ffff80002a7f5530) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff280602387f0,ffff80002a7f55b8,fffff28007ffd888,ffff80002a7f55fc) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a767a00,ffff80002a7f5740,ffff80002a7f5690) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a7f5740) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f5740) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x728e9da1c290, count: -5 ddb> show registers rdi 0x200 rsi 0x800 rbp 0xffff80002a7f5520 rbx 0x200 rdx 0 rcx 0xfffff280641f9f20 rax 0xffff800026102200 r8 0xffffffffffffffff r9 0x3 r10 0xbf042eb9b1e51e87 r11 0xe978c8d0feacf7f5 r12 0 r13 0xffff80002a7f55b8 r14 0xffff800026102000 r15 0xffff800026102008 rip 0xffffffff813dd2be ufs_readdir+0x26e cs 0x8 rflags 0x10283 __ALIGN_SIZE+0xf283 rsp 0xffff80002a7f5370 ss 0x10 ufs_readdir+0x26e: movzwl 0x4(%r14),%ebx ddb> show proc PROC (syz-executor) tid=124019 pid=38737 tcnt=1 stat=onproc flags process=2 proc=0 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a766a70,0xffff80002a767ca8 process=0xffff80002a79c910 user=0xffff80002a7f0000, vmspace=0xfffff2807f22ccf0 estcpu=36, cpticks=9, pctcpu=0.3, user=0, sys=9, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 24750 398895 86428 0 3 0 0x80 nanoslp syz-executor 24750 176136 86428 0 3 0 0x4000080 netacc syz-executor 24750 419080 86428 0 3 0 0x4000080 fsleep syz-executor 44226 397922 1 0 3 0x100003 0x80 ttyin getty 98787 356834 0 0 3 0x14000 0x280 nfsidl nfsio 17468 448080 0 0 3 0x14000 0x280 nfsidl nfsio 58244 82420 0 0 3 0x14000 0x280 nfsidl nfsio 65597 348470 0 0 3 0x14000 0x280 nfsidl nfsio 26837 286533 0 0 3 0x14000 0x280 nfsidl nfsio 92109 497505 0 0 3 0x14000 0x280 nfsidl nfsio 15467 204551 0 0 3 0x14000 0x280 nfsidl nfsio 29064 173001 0 0 3 0x14000 0x280 nfsidl nfsio 39693 417736 0 0 3 0x14000 0x280 nfsidl nfsio 28894 470172 0 0 3 0x14000 0x280 nfsidl nfsio 78613 37020 0 0 3 0x14000 0x280 nfsidl nfsio 53403 358098 0 0 3 0x14000 0x280 nfsidl nfsio 16570 355853 0 0 3 0x14000 0x280 nfsidl nfsio 45943 254799 0 0 3 0x14000 0x280 nfsidl nfsio 78081 75576 0 0 3 0x14000 0x280 nfsidl nfsio 11120 497675 0 0 3 0x14000 0x280 nfsidl nfsio 65709 265757 0 0 3 0x14000 0x280 nfsidl nfsio 30969 251095 0 0 3 0x14000 0x280 nfsidl nfsio 39810 145625 0 0 3 0x14000 0x280 nfsidl nfsio 10202 255880 0 0 3 0x14000 0x280 nfsidl nfsio 41111 266940 62780 0 3 0x2 0x80 wait syz-executor 86428 449358 62780 0 3 0x2 0x80 nanoslp syz-executor *38737 124019 62780 0 7 0x2 0 syz-executor 62780 399464 41725 0 3 0x2 0x80 wait syz-executor 41725 229202 46268 0 3 0x100002 0x88 sigsusp ksh 46268 104985 27532 0 3 0x10 0x88 kqread sshd-session 27532 416162 97492 0 3 0x12 0x80 kqread sshd-session 97492 289817 1 0 3 0 0x88 kqread sshd 37620 462700 10687 73 3 0x1100010 0x80 kqread syslogd 10687 261035 1 0 3 0x100002 0x80 sbwait syslogd 65448 230336 1 0 3 0x100000 0x80 kqread resolvd 70144 310234 32245 77 3 0x100012 0x80 kqread dhcpleased 19606 6549 32245 77 3 0x100012 0x80 kqread dhcpleased 32245 267051 1 0 3 0 0x80 kqread dhcpleased 20223 197699 0 0 3 0x14000 0x200 bored smr 26243 123216 0 0 2 0x14000 0x200 zerothread 5626 233958 0 0 3 0x14000 0x200 aiodoned aiodoned 83588 465325 0 0 3 0x14000 0x200 syncer update 76243 426858 0 0 3 0x14000 0x200 cleaner cleaner 18382 200522 0 0 3 0x14000 0x200 reaper reaper 88896 404652 0 0 3 0x14000 0x200 pgdaemon pagedaemon 73299 416126 0 0 3 0x14000 0x200 bored viomb 37519 309840 0 0 3 0x14000 0x40000200 acpi0 acpi0 67310 420481 0 0 3 0x14000 0x200 bored softnet0 19204 224188 0 0 3 0x14000 0x200 smrbar systqmp 13629 329958 0 0 3 0x14000 0x200 bored systq 69682 455518 0 0 3 0x14000 0x40000200 tmoslp softclock 16099 473550 0 0 3 0x14000 0x40000200 idle0 1 213303 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 12104K 12399K 166960K 12702 0 pcb 19 14K 16K 166960K 195 0 rtable 131 3K 7K 166960K 455 0 pf 30 13K 15K 166960K 61 0 ifaddr 29 4K 7K 166960K 66 0 ifgroup 49 2K 2K 166960K 89 0 sysctl 4 1K 9K 166960K 43 0 counters 32 17K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 126 0 iov 0 0K 12K 166960K 15 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1386 87K 87K 166960K 1879 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 7 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 29 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 10 33K 93K 166960K 564 0 sigio 0 0K 0K 166960K 8 0 proc 60 59K 108K 166960K 564 0 subproc 54 3K 4K 166960K 82 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 42 0 in_multi 51 3K 6K 166960K 138 0 ether_multi 1 0K 0K 166960K 1 0 mrt 3 0K 0K 166960K 15 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 109 493K 493K 166960K 109 0 exec 0 0K 1K 166960K 493 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 162 133K 165K 166960K 6428 0 UVM aobj 77 3K 3K 166960K 77 0 pinsyscall 31 62K 95K 166960K 1698 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 17 0 NDP 10 0K 2K 166960K 41 0 temp 35 9111K 9247K 166960K 20005 0 kqueue 13 20K 30K 166960K 93 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 63 0 60 1 0 1 1 0 8 0 rtentry 136 142 0 91 4 0 4 4 0 8 0 unpcb 144 214 0 198 1 0 1 1 0 8 0 syncache 336 10 0 10 2 1 1 1 0 8 1 tcpcb 736 227 0 223 13 6 7 7 0 8 6 arp 96 22 0 12 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 656 0 648 19 12 7 12 0 8 5 nd6 112 30 0 21 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 kcovpl 48 9 0 3 1 0 1 1 0 8 0 ppxss 1072 5 0 5 2 1 1 1 0 8 1 pffrag 232 6 0 3 1 0 1 1 0 482 0 pffrnode 88 6 0 3 1 0 1 1 0 8 0 pffrent 40 10 0 7 1 0 1 1 0 8 0 rttmr 136 2 0 1 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 634 0 362 29 4 25 29 0 8 4 art_table 40 636 0 362 5 0 5 5 0 8 0 art_node 32 142 0 97 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 3 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 26 0 16 1 0 1 1 0 8 0 shmpl 112 74 0 0 3 0 3 3 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2482 0 1033 92 0 92 92 0 8 0 ffsino 256 2484 0 1035 92 0 92 92 0 8 0 nchpl 144 3266 0 1566 64 0 64 64 0 8 0 vnodes 216 2800 0 0 156 0 156 156 0 8 0 namei 1024 11021 0 11021 2 1 1 2 0 8 1 kstatmem 264 43 0 22 2 0 2 2 0 8 0 scsiplug 72 10 0 10 1 0 1 1 0 8 1 scxspl 216 17168 0 17168 8 7 1 8 1 8 1 plimitpl 152 71 0 55 1 0 1 1 0 8 0 sigapl 424 878 0 821 8 0 8 8 0 8 0 knotepl 120 27888 0 27841 31 20 11 17 0 8 8 kqueuepl 184 149 0 140 3 0 3 3 0 8 2 pipepl 304 149 0 122 3 0 3 3 0 8 0 fdescpl 448 845 0 823 5 1 4 5 0 8 0 filepl 120 4887 0 4706 15 5 10 14 0 8 2 lockfpl 104 405 0 403 3 2 1 3 0 8 0 lockfspl 48 99 0 97 1 0 1 1 0 8 0 sessionpl 144 41 0 33 1 0 1 1 0 8 0 pgrppl 48 58 0 42 1 0 1 1 0 8 0 ucredpl 104 930 0 919 1 0 1 1 0 8 0 zombiepl 144 827 0 821 1 0 1 1 0 8 0 processpl 1152 878 0 821 5 0 5 5 0 8 0 procpl 664 1477 0 1418 7 0 7 7 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 940 0 912 17 9 8 12 0 8 5 mcl64k 65536 25 0 24 1 0 1 1 0 8 0 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 3152 0 3098 18 10 8 17 0 8 0 mcl2k 2048 501 0 499 2 1 1 2 0 8 0 mextrefs 64 268 0 268 1 0 1 1 0 8 1 mtagpl 96 9 0 9 2 1 1 1 0 8 1 mbufpl 256 9352 0 9195 26 5 21 21 0 8 5 bufpl 272 6634 0 418 415 0 415 415 0 8 0 anonpl 24 111852 0 109167 57 12 45 54 0 187 1 amapchunkpl 152 20482 0 20188 34 6 28 28 0 158 8 amappl16 200 1843 0 1822 20 5 15 15 0 8 7 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 422 0 421 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 1085 0 1063 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 55 0 45 1 0 1 1 0 8 0 amappl9 144 266 0 266 1 1 0 1 0 8 0 amappl8 136 94 0 93 1 0 1 1 0 8 0 amappl7 128 212 0 201 1 0 1 1 0 8 0 amappl6 120 154 0 153 1 0 1 1 0 8 0 amappl5 112 89 0 81 1 0 1 1 0 8 0 amappl4 104 266 0 248 1 0 1 1 0 8 0 amappl3 96 3715 0 3656 3 0 3 3 0 8 0 amappl2 88 960 0 897 2 0 2 2 0 8 0 amappl1 80 11938 0 11415 13 1 12 13 0 8 0 amappl 88 5657 0 5556 5 0 5 5 0 92 0 uvmvnodes 80 111 0 0 3 0 3 3 0 8 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 254 0 254 2 1 1 1 0 8 1 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 76 0 0 2 0 2 2 0 8 0 uaddrrnd 24 845 0 823 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 845 0 823 1 0 1 1 0 8 0 vmmpekpl 168 8164 0 8118 3 0 3 3 0 8 0 vmmpepl 168 59856 0 58428 94 2 92 92 0 357 9 vmsppl 368 844 0 823 4 1 3 4 0 8 0 rwobjpl 40 18435 0 17495 14 0 14 14 0 8 0 pdppl 4096 1696 0 1646 98 32 66 80 0 8 16 pvpl 32 352812 0 345760 130 14 116 129 0 265 11 pmappl 216 844 0 823 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 810 0 66 22 0 22 22 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace ufs_readdir(ffff80002a7f5530) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff280602387f0,ffff80002a7f55b8,fffff28007ffd888,ffff80002a7f55fc) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a767a00,ffff80002a7f5740,ffff80002a7f5690) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a7f5740) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f5740) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x728e9da1c290, count: -5 ddb> machine ddbcpu 1 No such command ddb> trace ufs_readdir(ffff80002a7f5530) at ufs_readdir+0x26e sys/ufs/ufs/ufs_vnops.c:1397 VOP_READDIR(fffff280602387f0,ffff80002a7f55b8,fffff28007ffd888,ffff80002a7f55fc) at VOP_READDIR+0x125 sys/kern/vfs_vops.c:453 sys_getdents(ffff80002a767a00,ffff80002a7f5740,ffff80002a7f5690) at sys_getdents+0x2dd sys/kern/vfs_syscalls.c:3133 syscall(ffff80002a7f5740) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a7f5740) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x728e9da1c290, count: -5