login: uvm_fault(0xffffffff8353da28, 0xffff80001a892004, 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 175534 19070 0 0 0 0 syz-executor *286236 56002 0 0x2 0 1K syz-executor ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd8075ce5a38,ffff8000367972e8,ffff800036797318) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000367972b8) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff8000367972b8) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff8000ffff51e0,ffffff9c,7aafea2f7d30,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff800036797490) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800036797490) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7aafea2f7d20, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xffffffff8353da28, 0xffff80001a892004, 0, 1) -> d ddb{1}> trace ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd8075ce5a38,ffff8000367972e8,ffff800036797318) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000367972b8) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff8000367972b8) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff8000ffff51e0,ffffff9c,7aafea2f7d30,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff800036797490) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800036797490) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7aafea2f7d20, count: -7 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800036797100 rbx 0 rdx 0 rcx 0xffffffff rax 0xfffffd806a577c10 r8 0xffffffffffffffff r9 0xfffffd807f7d3680 r10 0xddb9d4d7d22e4107 r11 0xc5951c83a611d7c6 r12 0 r13 0xfffffd806e69c000 r14 0 r15 0xffff80001a892000 rip 0xffffffff8137e6e1 ufs_lookup+0x5e1 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff800036796ff0 ss 0x10 ufs_lookup+0x5e1: movzwl 0x4(%r15,%rbx,1),%r14d ddb{1}> show proc PROC (syz-executor) tid=286236 pid=56002 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=0xffff8000ffff4a48,0xffff8000ffff5988 process=0xffff8000fffec020 user=0xffff800036792000, vmspace=0xfffffd806ed12530 estcpu=36, cpticks=2, pctcpu=0.3, user=0, sys=7, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19070 175534 85752 0 7 0 syz-executor 19070 392324 85752 0 2 0x4000000 syz-executor 19070 9324 85752 0 3 0x4000080 fsleep syz-executor 130 433478 49270 0 3 0x80 nanoslp syz-executor 130 371705 49270 0 3 0x4000080 bpf syz-executor 130 515353 49270 0 3 0x4000080 fsleep syz-executor 72897 378250 31104 0 3 0x80 nanoslp syz-executor 72897 61346 31104 0 3 0x4000080 piperd syz-executor 72897 246376 31104 0 3 0x4000080 fsleep syz-executor 49187 19026 74238 0 3 0x82 nanoslp syz-executor 49270 490690 74238 0 3 0x82 nanoslp syz-executor 85752 514692 74238 0 3 0x82 nanoslp syz-executor *56002 286236 74238 0 7 0x2 syz-executor 31104 169098 74238 0 3 0x82 nanoslp syz-executor 12192 470659 1 0 3 0x100083 ttyin getty 73029 174048 0 0 3 0x14200 bored sosplice 74238 437647 84143 0 3 0x82 wait syz-executor 84143 4262 3203 0 3 0x10008a sigsusp ksh 3203 462712 23539 0 3 0x98 kqread sshd-session 23539 101120 84431 0 3 0x92 kqread sshd-session 84431 282712 1 0 3 0x88 kqread sshd 4843 207256 77374 74 3 0x1100092 bpf pflogd 77374 302469 1 0 3 0x80 sbwait pflogd 68150 359564 97123 73 3 0x1100090 kqread syslogd 97123 69811 1 0 3 0x100082 sbwait syslogd 13012 262004 1 0 3 0x100080 kqread resolvd 86421 379349 91524 77 3 0x100092 kqread dhcpleased 34088 279570 91524 77 3 0x100092 kqread dhcpleased 91524 479956 1 0 3 0x80 kqread dhcpleased 1940 213449 0 0 3 0x14200 bored smr 7484 42982 0 0 3 0x14200 pgzero zerothread 72587 286717 0 0 3 0x14200 aiodoned aiodoned 59132 6151 0 0 3 0x14200 syncer update 40774 412896 0 0 3 0x14200 cleaner cleaner 64071 438519 0 0 3 0x14200 reaper reaper 29751 98869 0 0 3 0x14200 pgdaemon pagedaemon 31226 517087 0 0 3 0x14200 bored viomb 57 115072 0 0 3 0x40014200 acpi0 acpi0 92203 216181 0 0 3 0x40014200 idle1 59516 267020 0 0 3 0x14200 bored softnet3 30452 434998 0 0 3 0x14200 bored softnet2 36895 255398 0 0 3 0x14200 bored softnet1 49001 128914 0 0 3 0x14200 bored softnet0 93686 178539 0 0 3 0x14200 bored systqmp 71941 328028 0 0 3 0x14200 bored systq 36631 236118 0 0 3 0x14200 tmoslp softclockmp 55973 228804 0 0 3 0x40014200 tmoslp softclock 85087 138026 0 0 3 0x40014200 idle0 1 443567 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 56002 (syz-executor) thread 0xffff8000ffff51e0 (286236) exclusive rrwlock inode r = 0 (0xfffffd806e69c098) #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 (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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 10110K 10423K 166960K 11738 0 pcb 17 12K 12K 166960K 81 0 rtable 213 6K 7K 166960K 869 0 pf 34 17K 19K 166960K 104 0 ifaddr 41 7K 8K 166960K 121 0 ifgroup 55 2K 2K 166960K 134 0 sysctl 3 1K 1K 166960K 6 0 counters 64 36K 36K 166960K 108 0 ioctlops 0 0K 4K 166960K 1536 0 iov 0 0K 12K 166960K 33 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1367 86K 86K 166960K 1839 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 13K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 21 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 14 49K 93K 166960K 768 0 sigio 0 0K 0K 166960K 4 0 proc 73 91K 140K 166960K 1025 0 subproc 104 6K 6K 166960K 312 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 68 0 in_multi 92 7K 7K 166960K 304 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 609 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 91K 92K 166960K 7724 0 UVM aobj 18 2K 2K 166960K 22 0 pinsyscall 39 78K 104K 166960K 2267 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 20 0 NDP 12 0K 1K 166960K 84 0 temp 44 6815K 6911K 166960K 29591 0 kqueue 13 20K 32K 166960K 97 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 125 0 122 2 1 1 2 0 8 0 rtentry 112 297 0 199 4 0 4 4 0 8 0 unpcb 144 669 0 651 12 8 4 6 0 8 3 syncache 336 6 0 6 3 3 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 808 193 0 189 7 6 1 4 0 8 0 arp 120 50 0 32 1 0 1 1 0 8 0 inpcb 336 627 0 620 8 3 5 5 0 8 4 nd6 136 76 0 54 1 0 1 1 0 8 0 pkpcb 40 7 0 7 3 2 1 1 0 8 1 kcovpl 48 24 0 16 1 0 1 1 0 8 0 ppxss 1168 6 0 6 3 2 1 1 0 8 1 pffrag 232 2 0 2 1 0 1 1 0 482 1 pffrnode 88 2 0 2 1 0 1 1 0 8 1 pffrent 40 69 0 69 1 0 1 1 0 8 1 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 64 0 41 1 0 1 1 0 8 0 pfstkey 128 64 0 41 2 0 2 2 0 8 0 pfstate 376 64 0 41 4 0 4 4 0 8 1 pfrule 1344 25 0 20 2 0 2 2 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 1219 0 820 31 3 28 31 0 8 1 art_table 32 1222 0 820 4 0 4 4 0 8 0 art_node 16 296 0 207 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 2 2 1 1 1 0 8 0 semapl 112 17 0 7 1 0 1 1 0 8 0 shmpl 112 19 0 4 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2281 0 750 97 0 97 97 0 8 0 ffsino 272 2282 0 751 103 0 103 103 0 8 0 nchpl 144 3017 0 1311 64 0 64 64 0 8 0 uvmvnodes 80 2746 0 0 57 0 57 57 0 8 0 vnodes 216 2746 0 0 153 0 153 153 0 8 0 namei 1024 10925 0 10924 3 2 1 2 0 8 0 percpumem 16 68 0 22 1 0 1 1 0 8 0 kstatmem 264 68 0 44 2 0 2 2 0 8 0 scxspl 216 15496 0 15496 10 2 8 8 1 8 8 plimitpl 152 175 0 156 1 0 1 1 0 8 0 sigapl 424 1038 0 991 9 2 7 7 0 8 1 futexpl 64 6066 0 6063 2 1 1 1 0 8 0 knotepl 120 562 0 0 18 0 18 18 0 8 0 kqueuepl 216 124 0 115 1 0 1 1 0 8 0 pipepl 320 195 0 166 3 0 3 3 0 8 0 fdescpl 496 1019 0 991 6 1 5 5 0 8 0 filepl 152 4786 0 4538 21 8 13 16 0 8 1 lockfpl 104 218 0 216 1 0 1 1 0 8 0 lockfspl 48 53 0 51 1 0 1 1 0 8 0 sessionpl 144 41 0 32 1 0 1 1 0 8 0 pgrppl 48 135 0 118 1 0 1 1 0 8 0 ucredpl 104 383 0 370 1 0 1 1 0 8 0 zombiepl 144 995 0 991 1 0 1 1 0 8 0 processpl 1160 1038 0 991 5 1 4 5 0 8 0 procpl 648 1717 0 1664 7 1 6 6 0 8 0 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 664 1429 0 1401 21 12 9 14 0 8 6 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 242 0 0 31 0 31 31 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 437 0 0 26 0 26 26 0 8 0 bufpl 280 8362 0 2188 442 0 442 442 0 8 0 anonpl 24 263920 0 255165 112 6 106 111 0 185 51 amapchunkpl 152 25873 0 25106 40 5 35 38 0 158 3 amappl16 200 7155 0 7127 41 26 15 27 0 8 9 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 151 0 139 1 0 1 1 0 8 0 amappl13 176 9 0 9 1 1 0 1 0 8 0 amappl12 168 1932 0 1904 3 1 2 2 0 8 0 amappl11 160 54 0 40 1 0 1 1 0 8 0 amappl10 152 24 0 24 1 1 0 1 0 8 0 amappl9 144 188 0 188 1 1 0 1 0 8 0 amappl8 136 35 0 32 1 0 1 1 0 8 0 amappl7 128 149 0 137 1 0 1 1 0 8 0 amappl6 120 349 0 348 1 0 1 1 0 8 0 amappl5 112 203 0 192 1 0 1 1 0 8 0 amappl4 104 370 0 351 1 0 1 1 0 8 0 amappl3 96 4651 0 4551 4 0 4 4 0 8 0 amappl2 88 911 0 842 2 0 2 2 0 8 0 amappl1 80 10804 0 10252 17 3 14 14 0 8 0 amappl 88 7189 0 7030 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 2 0 1 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 21 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1019 0 991 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1019 0 991 1 0 1 1 0 8 0 vmmpekpl 168 9706 0 9655 3 0 3 3 0 8 0 vmmpepl 168 72358 0 70649 104 5 99 104 0 357 14 vmsppl 440 1018 0 991 6 2 4 5 0 8 0 rwobjpl 56 28118 0 24445 57 1 56 56 0 8 1 pdppl 4096 2045 0 1982 123 52 71 85 0 8 8 pvpl 32 32892 0 0 267 1 266 266 0 265 0 pmappl 248 1018 0 991 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 449 0 74 11 0 11 11 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff834f4ff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff83628318) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83628318) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7481062aebd0, count: 8 ddb{0}> trace x86_ipi_db(ffffffff834f4ff0) 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x2c sys/dev/kcov.c:158 __mp_lock(ffffffff83628318) at __mp_lock+0x1a3 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83628318) at __mp_lock+0x1a3 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x7481062aebd0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at ufs_lookup+0x5e1: movzwl 0x4(%r15,%rbx,1),%r14d ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd8075ce5a38,ffff8000367972e8,ffff800036797318) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000367972b8) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff8000367972b8) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff8000ffff51e0,ffffff9c,7aafea2f7d30,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff800036797490) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800036797490) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7aafea2f7d20, count: 8 ddb{1}> trace ufs_lookup() at ufs_lookup+0x5e1 sys/ufs/ufs/ufs_lookup.c:279 VOP_LOOKUP(fffffd8075ce5a38,ffff8000367972e8,ffff800036797318) at VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 vfs_lookup(ffff8000367972b8) at vfs_lookup+0x8fa sys/kern/vfs_lookup.c:566 namei(ffff8000367972b8) at namei+0x7aa sys/kern/vfs_lookup.c:250 dounlinkat(ffff8000ffff51e0,ffffff9c,7aafea2f7d30,8) at dounlinkat+0xc1 sys/kern/vfs_syscalls.c:1852 syscall(ffff800036797490) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff800036797490) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7aafea2f7d20, count: -7