uvm_fault(0xffffffff836190a8, 0xffff800027962004, 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 384824 84516 0 0 0 1 syz-executor *367885 90134 0 0x2 0 0K syz-executor ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd807cd68b10,ffff80002a369f68,ffff80002a369f98) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a369f38) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff80002a369f38) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff8000371ad6f0,ffffff9c,76da6e189b40,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff80002a36a110) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a36a110) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76da6e189b30, count: 8 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(0xffffffff836190a8, 0xffff800027962004, 0, 1) -> d ddb{0}> trace ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd807cd68b10,ffff80002a369f68,ffff80002a369f98) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a369f38) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff80002a369f38) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff8000371ad6f0,ffffff9c,76da6e189b40,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff80002a36a110) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a36a110) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76da6e189b30, count: -7 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a369d80 rbx 0 rdx 0 rcx 0xffffffff rax 0xfffffd80766b26b8 r8 0xffffffffffffffff r9 0xfffffd807f7d3888 r10 0xecf4e189fb4b21c6 r11 0x138cbc6050e2694e r12 0 r13 0xfffffd806fb1e558 r14 0 r15 0xffff800027962000 rip 0xffffffff821da6c1 ufs_lookup+0x5e1 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a369c70 ss 0x10 ufs_lookup+0x5e1: movzwl 0x4(%r15,%rbx,1),%r14d ddb{0}> show proc PROC (syz-executor) tid=367885 pid=90134 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=0xffff8000371acf58,0xffff8000371adc10 process=0xffff8000372a9b30 user=0xffff80002a365000, vmspace=0xfffffd806c0c4530 estcpu=36, cpticks=1, pctcpu=0.6, user=0, sys=7, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84516 384824 52565 0 7 0 syz-executor 84516 131472 52565 0 3 0x4000080 sbwait syz-executor 7123 143678 8450 0 2 0 syz-executor 1105 99351 73903 0 2 0 syz-executor 1105 290638 73903 0 3 0x4000080 fsleep syz-executor 53610 177385 81338 0 2 0 syz-executor 53610 212610 81338 0 3 0x4000080 kqread syz-executor 53610 164018 81338 0 2 0x4000000 syz-executor 97898 318033 29752 0 3 0x80 nanoslp syz-executor 97898 29988 29752 0 3 0x4000080 ttyin syz-executor 97898 470358 29752 0 3 0x4000080 fsleep syz-executor 84995 319384 82051 0 3 0x80 nanoslp syz-executor 84995 383787 82051 0 3 0x4000080 wsevent_read syz-executor 84995 403860 82051 0 3 0x4000080 fsleep syz-executor 81338 333427 80376 0 3 0x82 nanoslp syz-executor 73903 507390 80376 0 3 0x82 nanoslp syz-executor 8450 175711 80376 0 3 0x82 nanoslp syz-executor 29752 101837 80376 0 3 0x82 nanoslp syz-executor *90134 367885 80376 0 7 0x2 syz-executor 52565 17989 80376 0 3 0x82 nanoslp syz-executor 82051 450460 80376 0 3 0x82 nanoslp syz-executor 8837 194571 1 0 3 0x100083 ttyin getty 65905 203353 0 0 3 0x14280 nfsidl nfsio 9338 13819 0 0 3 0x14280 nfsidl nfsio 79650 371626 0 0 3 0x14280 nfsidl nfsio 79818 154289 0 0 3 0x14280 nfsidl nfsio 14398 30566 0 0 3 0x14280 nfsidl nfsio 34793 472875 0 0 3 0x14280 nfsidl nfsio 8014 148930 0 0 3 0x14280 nfsidl nfsio 75550 252303 0 0 3 0x14280 nfsidl nfsio 30395 255466 0 0 3 0x14280 nfsidl nfsio 15249 3632 0 0 3 0x14280 nfsidl nfsio 50312 223913 0 0 3 0x14280 nfsidl nfsio 3996 289079 0 0 3 0x14280 nfsidl nfsio 54644 288921 0 0 3 0x14280 nfsidl nfsio 31839 126874 0 0 3 0x14280 nfsidl nfsio 86010 435893 0 0 3 0x14280 nfsidl nfsio 86094 269492 0 0 3 0x14280 nfsidl nfsio 94386 292830 0 0 3 0x14280 nfsidl nfsio 48109 208795 0 0 3 0x14280 nfsidl nfsio 3003 32999 0 0 3 0x14280 nfsidl nfsio 97800 495550 0 0 3 0x14280 nfsidl nfsio 65601 185560 0 0 3 0x14200 bored sosplice 80376 190685 28109 0 2 0x2 syz-executor 28109 177561 48478 0 3 0x10008a sigsusp ksh 48478 354542 63129 0 3 0x98 kqread sshd-session 63129 255606 7541 0 3 0x92 kqread sshd-session 7541 465922 1 0 3 0x88 kqread sshd 83849 246262 76389 74 3 0x1100092 bpf pflogd 76389 94350 1 0 3 0x80 sbwait pflogd 75796 106080 56230 73 3 0x1100090 kqread syslogd 56230 490983 1 0 3 0x100082 sbwait syslogd 27400 348174 1 0 3 0x100080 kqread resolvd 11989 4451 59133 77 3 0x100092 kqread dhcpleased 30183 146981 59133 77 3 0x100092 kqread dhcpleased 59133 196085 1 0 3 0x80 kqread dhcpleased 79685 290698 0 0 3 0x14200 bored smr 11844 283738 0 0 2 0x14200 zerothread 20793 229246 0 0 3 0x14200 aiodoned aiodoned 3823 135698 0 0 3 0x14200 syncer update 56079 8421 0 0 3 0x14200 cleaner cleaner 34236 190862 0 0 3 0x14200 reaper reaper 13972 237651 0 0 3 0x14200 pgdaemon pagedaemon 24227 168681 0 0 3 0x14200 bored viomb 34507 510485 0 0 3 0x40014200 acpi0 acpi0 94550 197692 0 0 3 0x40014200 idle1 48312 145454 0 0 3 0x14200 bored softnet3 89223 89252 0 0 3 0x14200 bored softnet2 10378 110181 0 0 3 0x14200 bored softnet1 68911 96376 0 0 3 0x14200 bored softnet0 37729 438067 0 0 3 0x14200 bored systqmp 48890 180283 0 0 3 0x14200 bored systq 96800 510903 0 0 3 0x14200 tmoslp softclockmp 26354 189392 0 0 3 0x40014200 tmoslp softclock 87772 521474 0 0 3 0x40014200 idle0 1 378031 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 90134 (syz-executor) thread 0xffff8000371ad6f0 (367885) exclusive rrwlock inode r = 0 (0xfffffd806fb1e5f0) #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 dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 #8 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #8 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8362f4e0) #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 10216 10304K 10424K 166960K 11733 0 pcb 19 12K 12K 166960K 94 0 rtable 218 6K 6K 166960K 1024 0 pf 36 18K 25K 166960K 114 0 ifaddr 43 7K 8K 166960K 145 0 ifgroup 55 2K 2K 166960K 162 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 36K 166960K 122 0 ioctlops 0 0K 4K 166960K 1533 0 iov 0 0K 12K 166960K 45 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1431 90K 90K 166960K 2033 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 5K 6K 166960K 13 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 17 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 16 57K 93K 166960K 808 0 sigio 0 0K 0K 166960K 4 0 proc 72 91K 128K 166960K 1149 0 subproc 104 6K 6K 166960K 377 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 71 0 in_multi 99 7K 7K 166960K 353 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 91 413K 413K 166960K 91 0 exec 0 0K 1K 166960K 678 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 231 73K 92K 166960K 7821 0 UVM aobj 14 2K 2K 166960K 15 0 pinsyscall 41 82K 107K 166960K 2440 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 46 0 NDP 16 0K 2K 166960K 102 0 temp 43 6815K 6881K 166960K 16736 0 kqueue 13 20K 28K 166960K 84 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 133 0 130 2 1 1 2 0 8 0 rtentry 112 356 0 255 4 1 3 4 0 8 0 unpcb 144 619 0 598 5 3 2 4 0 8 1 syncache 336 7 0 7 3 3 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 281 0 271 8 6 2 8 0 8 0 arp 120 63 0 45 1 0 1 1 0 8 0 inpcb 336 738 0 722 13 10 3 8 0 8 1 nd6 136 90 0 65 1 0 1 1 0 8 0 pkpcb 40 3 0 3 3 2 1 1 0 8 1 kcovpl 48 29 0 21 1 0 1 1 0 8 0 ppxss 1168 5 0 5 4 3 1 1 0 8 1 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pffrag 232 4 0 0 1 0 1 1 0 482 0 pffrnode 88 4 0 0 1 0 1 1 0 8 0 pffrent 40 4 0 0 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 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pfstitem 24 60 0 29 1 0 1 1 0 8 0 pfstkey 128 61 0 30 2 0 2 2 0 8 0 pfstate 376 61 0 30 4 0 4 4 0 8 0 pfrule 1344 23 0 17 2 0 2 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1453 0 1003 34 5 29 29 0 8 0 art_table 32 1454 0 1003 5 1 4 4 0 8 0 art_node 16 355 0 265 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 13 0 3 1 0 1 1 0 8 0 shmpl 112 12 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2256 0 706 98 0 98 98 0 8 0 ffsino 272 2256 0 706 105 1 104 104 0 8 0 nchpl 144 3005 0 2432 64 33 31 64 0 8 7 uvmvnodes 80 2877 0 0 59 0 59 59 0 8 0 vnodes 216 2877 0 0 160 0 160 160 0 8 0 namei 1024 11696 0 11695 2 1 1 1 0 8 0 percpumem 16 75 0 29 1 0 1 1 0 8 0 kstatmem 264 82 0 58 2 0 2 2 0 8 0 scxspl 216 18074 0 18074 10 8 2 8 1 8 2 plimitpl 152 118 0 99 1 0 1 1 0 8 0 sigapl 424 1089 0 1020 9 0 9 9 0 8 0 futexpl 64 5706 0 5703 3 2 1 1 0 8 0 knotepl 120 594 0 0 18 0 18 18 0 8 0 kqueuepl 216 242 0 232 8 7 1 5 0 8 0 pipepl 320 266 0 239 5 0 5 5 0 8 2 fdescpl 496 1050 0 1020 5 0 5 5 0 8 0 filepl 152 5696 0 5436 22 9 13 16 0 8 2 lockfpl 104 257 0 253 2 1 1 2 0 8 0 lockfspl 48 59 0 55 1 0 1 1 0 8 0 sessionpl 144 46 0 37 1 0 1 1 0 8 0 pgrppl 48 80 0 63 1 0 1 1 0 8 0 ucredpl 104 856 0 843 1 0 1 1 0 8 0 zombiepl 144 1021 0 1020 1 0 1 1 0 8 0 processpl 1160 1089 0 1020 6 0 6 6 0 8 0 procpl 648 1688 0 1611 8 0 8 8 0 8 0 sockpl 664 1499 0 1460 17 11 6 10 0 8 2 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 227 0 0 29 0 29 29 0 8 0 mtagpl 96 72 0 0 2 0 2 2 0 8 0 mbufpl 256 320 0 0 20 0 20 20 0 8 0 bufpl 280 6449 0 275 442 0 442 442 0 8 0 anonpl 24 256137 0 251218 71 11 60 70 0 185 23 amapchunkpl 152 25950 0 25421 42 8 34 38 0 158 11 amappl16 200 6025 0 5985 17 14 3 16 0 8 0 amappl15 192 17 0 16 1 0 1 1 0 8 0 amappl14 184 162 0 150 1 0 1 1 0 8 0 amappl13 176 14 0 14 1 1 0 1 0 8 0 amappl12 168 2040 0 2010 3 1 2 2 0 8 0 amappl11 160 57 0 43 1 0 1 1 0 8 0 amappl10 152 9 0 9 1 1 0 1 0 8 0 amappl9 144 150 0 150 1 1 0 1 0 8 0 amappl8 136 25 0 22 1 0 1 1 0 8 0 amappl7 128 168 0 156 1 0 1 1 0 8 0 amappl6 120 398 0 397 1 0 1 1 0 8 0 amappl5 112 218 0 206 1 0 1 1 0 8 0 amappl4 104 378 0 359 1 0 1 1 0 8 0 amappl3 96 4772 0 4668 4 0 4 4 0 8 0 amappl2 88 991 0 922 2 0 2 2 0 8 0 amappl1 80 11278 0 10714 14 0 14 14 0 8 0 amappl 88 7248 0 7081 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 14 0 1 1 0 1 1 0 8 0 uaddrrnd 24 1050 0 1020 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1050 0 1020 1 0 1 1 0 8 0 vmmpekpl 168 9854 0 9796 4 1 3 3 0 8 0 vmmpepl 168 74161 0 72344 98 12 86 96 0 357 1 vmsppl 440 1049 0 1020 6 2 4 5 0 8 0 rwobjpl 56 27976 0 24149 56 1 55 55 0 8 0 pdppl 4096 2107 0 2040 131 56 75 85 0 8 8 pvpl 32 29986 0 0 242 0 242 242 0 265 0 pmappl 248 1049 0 1020 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 458 0 87 11 0 11 11 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(fffffd807cd68b10,ffff80002a369f68,ffff80002a369f98) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a369f38) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff80002a369f38) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff8000371ad6f0,ffffff9c,76da6e189b40,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff80002a36a110) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a36a110) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76da6e189b30, count: -7 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 end of kernel end trace frame: 0x738495416a00, count: 12 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 end of kernel end trace frame: 0x738495416a00, count: -3