uvm_fault(0xffffffff83504770, 0xffff800014732004, 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 *155394 77504 0 0x2 0 0K syz-executor ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd8068036050,ffff80002a12e7c8,ffff80002a12e7f8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a12e798) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff80002a12e798) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff800029fd9448,ffffff9c,71d46f79ab60,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff80002a12e970) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a12e970) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71d46f79ab50, 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(0xffffffff83504770, 0xffff800014732004, 0, 1) -> d ddb{0}> trace ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd8068036050,ffff80002a12e7c8,ffff80002a12e7f8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a12e798) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff80002a12e798) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff800029fd9448,ffffff9c,71d46f79ab60,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff80002a12e970) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a12e970) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71d46f79ab50, count: -7 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a12e5e0 rbx 0 rdx 0 rcx 0xffffffff rax 0xfffffd806e3368f0 r8 0xffffffffffffffff r9 0xfffffd807f7d32d8 r10 0x19bc3a6c8ca0f79d r11 0xc827fad9a19fa40f r12 0 r13 0xfffffd80694d8888 r14 0 r15 0xffff800014732000 rip 0xffffffff81ea10a1 ufs_lookup+0x5e1 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80002a12e4d0 ss 0x10 ufs_lookup+0x5e1: movzwl 0x4(%r15,%rbx,1),%r14d ddb{0}> show proc PROC (syz-executor) tid=155394 pid=77504 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=0xffff800029fd8cb0,0xffff8000ffffc530 process=0xffff8000ffff5fd0 user=0xffff80002a129000, vmspace=0xfffffd80696dadc0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 21307 316935 53366 0 2 0x10 syz-executor 21307 35081 53366 0 3 0x4000090 fsleep syz-executor 83857 457141 60596 0 2 0 syz-executor 83857 6478 60596 0 3 0x4000080 fsleep syz-executor 48381 510063 61020 0 2 0 syz-executor 48381 258190 61020 0 3 0x4000080 fsleep syz-executor 60596 207897 68975 0 2 0x482 syz-executor *77504 155394 68975 0 7 0x2 syz-executor 61020 499699 68975 0 2 0x482 syz-executor 53366 41741 68975 0 2 0x482 syz-executor 97841 345525 0 0 3 0x14200 bored sosplice 68975 94899 89829 0 3 0x82 wait syz-executor 89829 154711 85283 0 3 0x10008a sigsusp ksh 85283 99966 29617 0 3 0x98 kqread sshd-session 29617 18129 32418 0 3 0x92 kqread sshd-session 76977 340748 1 0 3 0x100083 ttyopn getty 32418 234713 1 0 3 0x88 kqread sshd 84134 198042 99772 74 3 0x1100092 bpf pflogd 99772 89553 1 0 3 0x80 sbwait pflogd 42110 471903 10377 73 3 0x1100090 kqread syslogd 10377 302214 1 0 3 0x100082 sbwait syslogd 36854 312556 1 0 3 0x100080 kqread resolvd 97065 331884 56453 77 3 0x100092 kqread dhcpleased 79674 213674 56453 77 3 0x100092 kqread dhcpleased 56453 98414 1 0 3 0x80 kqread dhcpleased 25495 4997 0 0 3 0x14200 bored smr 72515 426666 0 0 2 0x14200 zerothread 95980 508983 0 0 3 0x14200 aiodoned aiodoned 22140 419333 0 0 3 0x14200 syncer update 9364 425046 0 0 3 0x14200 cleaner cleaner 93977 480388 0 0 3 0x14200 reaper reaper 94562 114614 0 0 3 0x14200 pgdaemon pagedaemon 26446 325834 0 0 3 0x14200 bored viomb 50895 386468 0 0 3 0x40014200 acpi0 acpi0 55591 99778 0 0 7 0x40014200 idle1 26611 75093 0 0 3 0x14200 bored softnet3 37061 16286 0 0 3 0x14200 bored softnet2 86264 412715 0 0 3 0x14200 bored softnet1 27933 33990 0 0 3 0x14200 bored softnet0 51427 372486 0 0 3 0x14200 bored systqmp 71532 261769 0 0 3 0x14200 bored systq 63239 353382 0 0 3 0x14200 tmoslp softclockmp 40687 400016 0 0 2 0x40014200 softclock 38345 520520 0 0 3 0x40014200 idle0 1 374109 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 77504 (syz-executor) thread 0xffff800029fd9448 (155394) exclusive rrwlock inode r = 0 (0xfffffd80694d8920) #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 (0xffffffff83553178) #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 10217 10292K 10493K 166960K 13009 0 pcb 17 15K 17K 166960K 362 0 rtable 227 8K 8K 166960K 1460 0 pf 35 17K 25K 166960K 163 0 ifaddr 43 7K 8K 166960K 200 0 ifgroup 55 2K 2K 166960K 226 0 sysctl 2 0K 0K 166960K 2 0 counters 64 36K 37K 166960K 156 0 ioctlops 0 0K 4K 166960K 1608 0 iov 0 0K 16K 166960K 83 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1636 103K 103K 166960K 2847 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 157 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 13 45K 93K 166960K 1395 0 sigio 0 0K 0K 166960K 19 0 proc 73 91K 152K 166960K 1522 0 subproc 104 6K 7K 166960K 547 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 260 0 in_multi 99 7K 8K 166960K 513 0 ether_multi 1 0K 0K 166960K 5 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 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 1017 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 198 72K 91K 166960K 12431 0 UVM aobj 22 4K 4K 166960K 24 0 pinsyscall 38 76K 102K 166960K 3342 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 44 0 NDP 12 0K 2K 166960K 143 0 temp 76 6824K 6889K 166960K 47603 0 kqueue 13 20K 26K 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 154 0 151 1 0 1 1 0 8 0 rtentry 112 506 0 403 4 0 4 4 0 8 1 unpcb 144 838 0 821 16 13 3 4 0 8 2 syncache 336 8 0 8 5 4 1 1 0 8 1 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 390 0 384 18 14 4 8 0 8 3 arp 120 90 0 72 1 0 1 1 0 8 0 inpcb 336 1544 0 1534 30 23 7 9 0 8 5 nd6 136 131 0 106 1 0 1 1 0 8 0 pkpcb 40 2 0 2 2 2 0 1 0 8 0 kcovpl 48 42 0 34 1 0 1 1 0 8 0 ppxss 1168 8 0 8 3 3 0 1 0 8 0 pfstscr 40 1 0 1 1 0 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 180 0 177 1 0 1 1 0 8 0 pfosfp 40 1428 0 1428 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 10 11 21 0 8 11 pfrktable 1344 3 0 3 1 1 0 1 0 8 0 pfanchor 1288 2 0 1 2 1 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 115 0 76 1 0 1 1 0 8 0 pfstkey 128 119 0 80 2 0 2 2 0 8 0 pfstate 376 116 0 78 6 1 5 5 0 8 0 pfrule 1344 28 0 21 2 0 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 2069 0 1616 35 6 29 32 0 8 0 art_table 32 2071 0 1616 5 1 4 5 0 8 0 art_node 16 505 0 413 1 0 1 1 0 8 0 sysvmsgpl 40 9 0 3 1 0 1 1 0 8 0 semapl 112 153 0 143 1 0 1 1 0 8 0 shmpl 112 21 0 2 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 3035 0 1466 99 0 99 99 0 8 0 ffsino 272 3038 0 1469 106 0 106 106 0 8 0 nchpl 144 4358 0 3760 64 38 26 64 0 8 1 uvmvnodes 80 4352 0 0 89 0 89 89 0 8 0 vnodes 216 4352 0 0 242 0 242 242 0 8 0 namei 1024 19132 0 19131 4 3 1 1 0 8 0 percpumem 16 92 0 46 1 0 1 1 0 8 0 pfiaddrpl 120 1 0 1 1 1 0 1 0 8 0 kstatmem 264 116 0 92 3 1 2 3 0 8 0 scsiplug 72 2 0 2 1 1 0 1 0 8 0 scxspl 216 30035 0 30035 12 11 1 8 1 8 1 plimitpl 152 333 0 316 1 0 1 1 0 8 0 sigapl 424 1632 0 1586 10 3 7 7 0 8 0 futexpl 64 12816 0 12813 4 3 1 1 0 8 0 knotepl 120 371 0 0 10 0 10 10 0 8 0 kqueuepl 216 442 0 432 11 6 5 5 0 8 4 pipepl 320 282 0 255 3 0 3 3 0 8 0 fdescpl 496 1611 0 1584 6 1 5 5 0 8 0 filepl 152 10177 0 9934 40 21 19 19 0 8 6 lockfpl 104 370 0 367 1 0 1 1 0 8 0 lockfspl 48 148 0 145 1 0 1 1 0 8 0 sessionpl 144 59 0 50 1 0 1 1 0 8 0 pgrppl 48 116 0 99 1 0 1 1 0 8 0 ucredpl 104 1310 0 1296 1 0 1 1 0 8 0 zombiepl 144 1590 0 1586 2 1 1 1 0 8 0 processpl 1160 1632 0 1586 5 1 4 5 0 8 0 procpl 648 2861 0 2812 6 0 6 6 0 8 0 srpgc 96 2 0 2 1 1 0 1 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 664 2585 0 2555 43 33 10 15 0 8 6 mcl64k 65536 3 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 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 240 0 0 30 0 30 30 0 8 0 mtagpl 96 15 0 0 1 0 1 1 0 8 0 mbufpl 256 546 0 0 31 0 31 31 0 8 0 bufpl 280 8836 0 2689 442 0 442 442 0 8 0 anonpl 24 272135 0 268969 101 44 57 58 0 185 17 amapchunkpl 152 39447 0 39072 45 14 31 32 0 158 10 amappl16 200 5686 0 5668 30 20 10 14 0 8 7 amappl15 192 75 0 75 1 1 0 1 0 8 0 amappl14 184 191 0 179 1 0 1 1 0 8 0 amappl13 176 13 0 13 1 1 0 1 0 8 0 amappl12 168 2789 0 2762 3 1 2 2 0 8 0 amappl11 160 56 0 42 1 0 1 1 0 8 0 amappl10 152 30 0 30 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 26 0 23 1 0 1 1 0 8 0 amappl7 128 176 0 164 1 0 1 1 0 8 0 amappl6 120 501 0 500 1 0 1 1 0 8 0 amappl5 112 286 0 275 1 0 1 1 0 8 0 amappl4 104 422 0 403 1 0 1 1 0 8 0 amappl3 96 7924 0 7838 5 1 4 5 0 8 0 amappl2 88 1172 0 1103 2 0 2 2 0 8 0 amappl1 80 14276 0 13721 18 4 14 14 0 8 1 amappl 88 11721 0 11586 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 23 0 2 1 0 1 1 0 8 0 uaddrrnd 24 1611 0 1584 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1611 0 1584 1 0 1 1 0 8 0 vmmpekpl 168 14047 0 13995 3 0 3 3 0 8 0 vmmpepl 168 105064 0 103435 106 14 92 95 0 357 4 vmsppl 440 1610 0 1584 6 2 4 5 0 8 0 rwobjpl 56 36143 0 30892 76 1 75 75 0 8 0 pdppl 4096 3229 0 3168 159 88 71 85 0 8 10 pvpl 32 28533 0 0 230 0 230 230 0 265 0 pmappl 248 1610 0 1584 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 533 0 144 12 0 12 12 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(fffffd8068036050,ffff80002a12e7c8,ffff80002a12e7f8) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff80002a12e798) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff80002a12e798) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff800029fd9448,ffffff9c,71d46f79ab60,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff80002a12e970) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff80002a12e970) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71d46f79ab50, 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: 10 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 acpicpu_idle() at acpicpu_idle+0x41e sys/dev/acpi/acpicpu.c:1219 sched_idle(ffff800029b7bff0) at sched_idle+0x558 sys/kern/kern_sched.c:182 end trace frame: 0x0, count: -5