login: uvm_fault(0xffffffff8353da28, 0xffff800012932004, 0, 1) -> d kernel: page fault trap, code=0 Stopped at ufs_lookup+0x5e1: movzwl 0x4(%r15,%rbx,1),%r14d TID PID UID PRFLAGS PFLAGS CPU COMMAND 256048 56739 0 0 0 1 syz-executor *248525 25833 0 0 0x4000000 0K syz-executor ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd80697f57d8,ffff8000371bdef8,ffff8000371bdf28) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000371bdec8) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff8000371bdec8) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff8000371bdec8,70f,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff8000371d87c8,ffffff9c,20000040,70e,0,ffff8000371be070) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff8000371be120) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371be120) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xee3bd0748d0, count: 7 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xffffffff8353da28, 0xffff800012932004, 0, 1) -> d ddb{0}> trace ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd80697f57d8,ffff8000371bdef8,ffff8000371bdf28) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000371bdec8) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff8000371bdec8) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff8000371bdec8,70f,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff8000371d87c8,ffffff9c,20000040,70e,0,ffff8000371be070) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff8000371be120) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371be120) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xee3bd0748d0, count: -8 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000371bdb40 rbx 0 rdx 0xffff8000011ae7c0 rcx 0xffffffff rax 0xfffffd807bced258 r8 0xffffffffffffffff r9 0xfffffd807f7d3820 r10 0x313536d3abf061b0 r11 0x8bcf994e1b999b63 r12 0 r13 0xfffffd8059fcacc0 r14 0 r15 0xffff800012932000 rip 0xffffffff8137e6e1 ufs_lookup+0x5e1 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff8000371bda30 ss 0x10 ufs_lookup+0x5e1: movzwl 0x4(%r15,%rbx,1),%r14d ddb{0}> show proc PROC (syz-executor) tid=248525 pid=25833 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=84, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000371d8cd8,0xffff8000ffff6a50 process=0xffff8000ffff3678 user=0xffff8000371b9000, vmspace=0xfffffd806bec7370 estcpu=34, cpticks=1, pctcpu=0.17, user=0, sys=18, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39855 240195 15801 0 2 0 syz-executor 39855 421800 15801 0 2 0x4000000 syz-executor 84368 369013 39332 0 2 0 syz-executor 84368 384692 39332 0 2 0x4000000 syz-executor 97434 22029 98638 0 2 0 syz-executor 97434 332621 98638 0 3 0x4000080 kqread syz-executor 42017 367004 710 0 2 0 syz-executor 42017 101099 710 0 2 0x4000000 syz-executor 42017 160492 710 0 3 0x4000080 fsleep syz-executor 56739 256048 28783 0 7 0 syz-executor 25833 128171 43956 0 2 0 syz-executor *25833 248525 43956 0 7 0x4000000 syz-executor 78829 379985 71654 0 2 0 syz-executor 78829 181007 71654 0 3 0x4000080 fsleep syz-executor 78829 265138 71654 0 3 0x4000080 fsleep syz-executor 15859 491979 54354 0 2 0x10 syz-executor 15859 61812 54354 0 3 0x4000090 fifor syz-executor 15859 136665 54354 0 3 0x4000090 fifor syz-executor 15859 492495 54354 0 3 0x4000090 fifor syz-executor 15859 512838 54354 0 3 0x4000090 fifor syz-executor 15859 351962 54354 0 3 0x4000090 fifor syz-executor 710 30851 66640 0 3 0x82 nanoslp syz-executor 28783 141881 66640 0 2 0x482 syz-executor 43956 163173 66640 0 2 0x482 syz-executor 39332 414024 66640 0 2 0x2 syz-executor 54354 430175 66640 0 3 0x82 nanoslp syz-executor 71654 469942 66640 0 2 0x482 syz-executor 15801 492026 66640 0 3 0x82 nanoslp syz-executor 6377 296689 1 0 3 0x100083 ttyin getty 98638 100166 66640 0 2 0x2 syz-executor 7253 285136 0 0 3 0x14200 bored sosplice 66640 516974 16199 0 3 0x82 kqread syz-executor 16199 403450 44994 0 3 0x10008a sigsusp ksh 44994 220293 62782 0 3 0x98 kqread sshd-session 62782 482832 23869 0 3 0x92 kqread sshd-session 23869 428353 1 0 3 0x88 kqread sshd 40247 488183 20976 74 3 0x1100092 bpf pflogd 20976 171494 1 0 3 0x80 sbwait pflogd 25097 335382 80419 73 3 0x1100090 kqread syslogd 80419 322252 1 0 3 0x100082 sbwait syslogd 24846 481626 1 0 3 0x100080 kqread resolvd 24681 128178 29242 77 3 0x100092 kqread dhcpleased 66095 308146 29242 77 3 0x100092 kqread dhcpleased 29242 91349 1 0 3 0x80 kqread dhcpleased 44640 151389 0 0 3 0x14200 bored smr 77831 376487 0 0 2 0x14200 zerothread 70967 140528 0 0 3 0x14200 aiodoned aiodoned 37986 383067 0 0 3 0x14200 syncer update 33351 339487 0 0 3 0x14200 cleaner cleaner 11831 211817 0 0 3 0x14200 reaper reaper 15765 446644 0 0 3 0x14200 pgdaemon pagedaemon 31139 285333 0 0 3 0x14200 bored viomb 39125 178395 0 0 3 0x40014200 acpi0 acpi0 52274 316582 0 0 3 0x40014200 idle1 15138 506284 0 0 3 0x14200 bored softnet3 86782 257682 0 0 3 0x14200 bored softnet2 94595 328471 0 0 3 0x14200 bored softnet1 95298 422002 0 0 3 0x14200 bored softnet0 77969 38909 0 0 3 0x14200 bored systqmp 62259 480646 0 0 3 0x14200 bored systq 71160 1409 0 0 3 0x14200 tmoslp softclockmp 6453 7622 0 0 3 0x40014200 tmoslp softclock 10544 406609 0 0 3 0x40014200 idle0 1 472127 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 56739 (syz-executor) thread 0xffff8000ffff6a40 (256048) exclusive rwlock amaplk r = 0 (0xfffffd8062550be8) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 uvm_fault_check+0x521 sys/uvm/uvm_fault.c:782 #2 uvm_fault+0x112 sys/uvm/uvm_fault.c:600 #3 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #4 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #5 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffffd806c49c9a0) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1785 #2 uvm_fault_check+0x47 sys/uvm/uvm_fault.c:672 #3 uvm_fault+0x112 sys/uvm/uvm_fault.c:600 #4 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:188 #5 usertrap+0x2d8 sys/arch/amd64/amd64/trap.c:436 #6 recall_trap+0x8 Process 25833 (syz-executor) thread 0xffff8000371d87c8 (248525) exclusive rrwlock inode r = 0 (0xfffffd8059fcad58) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 rw_enter+0x41b sys/kern/kern_rwlock.c:309 #2 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #3 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #4 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #5 vfs_lookup+0x109 sys/kern/vfs_lookup.c:418 #6 namei+0x7aa sys/kern/vfs_lookup.c:250 #7 vn_open+0x1f4 sys/kern/vfs_vnops.c:107 #8 doopenat+0x31d sys/kern/vfs_syscalls.c:1123 #9 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #9 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83628520) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] #1 syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10229 10177K 10479K 166960K 12412 0 pcb 17 16K 18K 166960K 359 0 rtable 229 9K 10K 166960K 1712 0 pf 35 17K 21K 166960K 157 0 ifaddr 43 7K 7K 166960K 221 0 ifgroup 55 2K 2K 166960K 232 0 sysctl 3 1K 1K 166960K 3 0 counters 64 36K 36K 166960K 158 0 ioctlops 0 0K 4K 166960K 1619 0 iov 0 0K 18K 166960K 108 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1426 90K 90K 166960K 2536 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 14 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 24 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 18 65K 93K 166960K 1436 0 sigio 0 0K 0K 166960K 46 0 proc 72 91K 140K 166960K 1724 0 subproc 104 6K 6K 166960K 626 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 78 0 in_multi 98 7K 7K 166960K 586 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 241 1076K 1076K 166960K 241 0 exec 0 0K 1K 166960K 953 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 254 75K 93K 166960K 12667 0 UVM aobj 23 2K 4K 166960K 26 0 pinsyscall 43 86K 105K 166960K 3569 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 29 0 NDP 12 0K 2K 166960K 158 0 temp 78 6824K 6899K 166960K 56988 0 kqueue 14 22K 30K 166960K 137 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 187 0 184 2 1 1 2 0 8 0 rtentry 112 603 0 500 4 1 3 4 0 8 0 unpcb 144 809 0 788 15 9 6 6 0 8 5 syncache 336 5 0 5 2 2 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 808 439 0 435 21 17 4 11 0 8 3 arp 120 104 0 85 1 0 1 1 0 8 0 inpcb 336 1424 0 1415 23 19 4 10 0 8 2 nd6 136 155 0 130 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 48 0 40 1 0 1 1 0 8 0 ppxss 1168 7 0 7 3 3 0 1 0 8 0 pffrag 232 21 0 16 1 0 1 1 0 482 0 pffrnode 88 20 0 16 1 0 1 1 0 8 0 pffrent 40 135 0 130 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 114 0 67 1 0 1 1 0 8 0 pfstkey 128 114 0 67 2 0 2 2 0 8 0 pfstate 376 114 0 67 6 0 6 6 0 8 0 pfrule 1344 25 0 20 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2405 0 1960 35 7 28 31 0 8 0 art_table 32 2407 0 1960 4 0 4 4 0 8 0 art_node 16 585 0 493 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 3 1 0 1 1 0 8 0 semapl 112 21 0 11 1 0 1 1 0 8 0 shmpl 112 23 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2928 0 1345 100 0 100 100 0 8 0 ffsino 272 2928 0 1345 106 0 106 106 0 8 0 nchpl 144 4176 0 2429 65 0 65 65 0 8 0 uvmvnodes 80 3920 0 0 80 0 80 80 0 8 0 vnodes 216 3920 0 0 218 0 218 218 0 8 0 namei 1024 18443 0 18442 5 4 1 2 0 8 0 percpumem 16 93 0 47 1 0 1 1 0 8 0 kstatmem 264 118 0 94 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 30319 0 30319 13 12 1 8 1 8 1 plimitpl 152 363 0 344 1 0 1 1 0 8 0 sigapl 424 1661 0 1610 10 3 7 7 0 8 0 futexpl 64 10872 0 10869 6 5 1 1 0 8 0 knotepl 120 788 0 0 22 0 22 22 0 8 0 kqueuepl 216 224 0 214 1 0 1 1 0 8 0 pipepl 320 357 0 330 8 0 8 8 0 8 5 fdescpl 496 1642 0 1610 10 5 5 5 0 8 0 filepl 152 9014 0 8754 40 18 22 22 0 8 8 lockfpl 104 288 0 285 1 0 1 1 0 8 0 lockfspl 48 102 0 99 1 0 1 1 0 8 0 sessionpl 144 65 0 56 1 0 1 1 0 8 0 pgrppl 48 120 0 103 1 0 1 1 0 8 0 ucredpl 104 1300 0 1285 1 0 1 1 0 8 0 zombiepl 144 1610 0 1610 1 0 1 1 0 8 1 processpl 1160 1661 0 1610 5 1 4 5 0 8 0 procpl 648 2905 0 2841 7 1 6 6 0 8 0 srpgc 96 4 0 4 2 2 0 1 0 8 0 sosppl 168 14 0 14 2 2 0 1 0 8 0 sockpl 664 2429 0 2396 44 32 12 15 0 8 8 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 244 0 0 31 0 31 31 0 8 0 mtagpl 96 12 0 0 1 0 1 1 0 8 0 mbufpl 256 1537 0 0 95 0 95 95 0 8 0 bufpl 280 8231 0 1895 453 0 453 453 0 8 0 anonpl 24 280305 0 272106 81 17 64 67 0 185 14 amapchunkpl 152 41123 0 40298 50 14 36 43 0 158 4 amappl16 200 4893 0 4870 22 18 4 14 0 8 2 amappl15 192 18 0 18 2 2 0 1 0 8 0 amappl14 184 203 0 191 1 0 1 1 0 8 0 amappl13 176 34 0 33 1 0 1 1 0 8 0 amappl12 168 2940 0 2908 4 2 2 3 0 8 0 amappl11 160 62 0 47 1 0 1 1 0 8 0 amappl10 152 7 0 7 1 1 0 1 0 8 0 amappl9 144 152 0 152 1 1 0 1 0 8 0 amappl8 136 38 0 35 1 0 1 1 0 8 0 amappl7 128 194 0 181 1 0 1 1 0 8 0 amappl6 120 569 0 566 1 0 1 1 0 8 0 amappl5 112 307 0 295 1 0 1 1 0 8 0 amappl4 104 437 0 418 1 0 1 1 0 8 0 amappl3 96 7784 0 7657 4 0 4 4 0 8 0 amappl2 88 1260 0 1190 2 0 2 2 0 8 0 amappl1 80 14278 0 13702 18 4 14 15 0 8 0 amappl 88 11913 0 11721 5 0 5 5 0 92 0 dma16384 16384 1 0 1 1 1 0 1 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 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 25 0 3 1 0 1 1 0 8 0 uaddrrnd 24 1642 0 1610 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1642 0 1610 1 0 1 1 0 8 0 vmmpekpl 168 14609 0 14572 3 0 3 3 0 8 0 vmmpepl 168 106877 0 104945 100 13 87 91 0 357 3 vmsppl 440 1641 0 1610 6 2 4 5 0 8 0 rwobjpl 56 35587 0 30683 71 1 70 70 0 8 0 pdppl 4096 3291 0 3220 159 88 71 85 0 8 0 pvpl 32 31297 0 0 253 1 252 252 0 265 0 pmappl 248 1641 0 1610 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 593 0 143 14 0 14 14 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd80697f57d8,ffff8000371bdef8,ffff8000371bdf28) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000371bdec8) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff8000371bdec8) at namei+0x7aa sys/kern/vfs_lookup.c:250 vn_open(ffff8000371bdec8,70f,0) at vn_open+0x1f4 sys/kern/vfs_vnops.c:107 doopenat(ffff8000371d87c8,ffffff9c,20000040,70e,0,ffff8000371be070) at doopenat+0x31d sys/kern/vfs_syscalls.c:1123 syscall(ffff8000371be120) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371be120) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xee3bd0748d0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83628318) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83628318) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff8000371a6af0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371a6af0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f9a50661950, count: 9 ddb{1}> trace x86_ipi_db(ffff800029b7bff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff83628318) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83628318) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff8000371a6af0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371a6af0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6f9a50661950, count: -6