uvm_fault(0xffffffff83631c18, 0xffff8000012ec008, 0, 2) -> e kernel: page fault trap, code=2 Stopped at unveil_add_vnode+0xda: movq %rax,0x8(%r14,%r13,1) TID PID UID PRFLAGS PFLAGS CPU COMMAND *445828 73764 32767 0x502010 0x4080000 0K syz-executor 505984 77683 0 0x2 0 1 syz-executor unveil_add_vnode(ffff8000fffeb1e0,fffffd80724c8058) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000fffeb1e0,ffff80003618e888,ffff80003618e943) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000fffeb1e0,ffff80003618ea70,ffff80003618e9c0) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80003618ea70) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003618ea70) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc6851022b40, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xffffffff83631c18, 0xffff8000012ec008, 0, 2) -> e ddb{0}> trace unveil_add_vnode(ffff8000fffeb1e0,fffffd80724c8058) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000fffeb1e0,ffff80003618e888,ffff80003618e943) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000fffeb1e0,ffff80003618ea70,ffff80003618e9c0) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80003618ea70) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003618ea70) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc6851022b40, count: -5 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003618e7b0 rbx 0xffff8000fffee8e8 rdx 0 rcx 0xffff8000fffeb1e0 rax 0xffffffffffffffff r8 0x40 r9 0xfffffd807f7d33a8 r10 0xd41136c060bfa4ed r11 0x5529364202aa6699 r12 0xfffffd80724c8058 r13 0 r14 0xffff8000012ec000 r15 0 rip 0xffffffff82497e0a unveil_add_vnode+0xda cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003618e740 ss 0 unveil_add_vnode+0xda: movq %rax,0x8(%r14,%r13,1) ddb{0}> show proc PROC (syz-executor) tid=445828 pid=73764 tcnt=4 stat=onproc flags process=502010 proc=4080000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000fffea7c0 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000fffebc00,0xffff8000fffea7d0 process=0xffff8000fffee8e8 user=0xffff800036189000, vmspace=0xfffffd806c0a9c60 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 8504 483972 48271 32767 2 0x10 syz-executor 73764 516688 97227 32767 4 0x582010 syz-executor *73764 445828 97227 32767 7 0x4582010 syz-executor 73764 264392 97227 32767 3 0x4502010 suspend syz-executor 73764 366021 97227 32767 4 0x4582010 syz-executor 77683 505984 96143 0 7 0x2 syz-executor 82642 81052 5627 32767 3 0x90 nanoslp syz-executor 82642 120492 5627 32767 3 0x4000090 netacc syz-executor 82642 142597 5627 32767 3 0x4000090 kqsel syz-executor 1383 243923 44891 32767 3 0x90 nanoslp syz-executor 1383 497024 44891 32767 3 0x4000090 lockf syz-executor 1383 212672 44891 32767 3 0x4000090 fsleep syz-executor 1953 285620 0 0 3 0x14200 bored sosplice 33210 184414 6551 0 3 0x100082 sbwait ndp 6551 397933 40786 0 3 0x10008a sigsusp sh 44891 58116 50676 32767 3 0x90 nanoslp syz-executor 97227 296873 94353 32767 2 0x490 syz-executor 5627 484700 92875 32767 3 0x90 nanoslp syz-executor 40786 284037 95485 0 3 0x80 wait syz-executor 50288 460593 86203 32767 3 0x90 wait syz-executor 48271 187992 43620 32767 3 0x90 nanoslp syz-executor 94353 208789 96143 0 3 0x82 wait syz-executor 95485 81413 96143 0 3 0x82 wait syz-executor 92875 141933 96143 0 3 0x82 wait syz-executor 43620 466113 96143 0 3 0x82 wait syz-executor 86203 400042 96143 0 3 0x82 wait syz-executor 50676 442817 96143 0 3 0x82 wait syz-executor 96143 113502 14738 0 3 0x82 nanoslp syz-executor 14738 234117 24926 0 3 0x10008a sigsusp ksh 24926 114168 13594 0 3 0x98 kqread sshd-session 13594 141671 65888 0 3 0x92 kqread sshd-session 90426 188929 1 0 3 0x100083 ttyin getty 65888 149309 1 0 3 0x88 kqread sshd 44963 489971 94977 73 3 0x1100090 kqread syslogd 94977 513502 1 0 3 0x100082 sbwait syslogd 96853 97286 1 0 3 0x100080 kqread resolvd 92814 381317 55674 77 3 0x100092 kqread dhcpleased 9236 156638 55674 77 3 0x100092 kqread dhcpleased 55674 344757 1 0 3 0x80 kqread dhcpleased 19685 150428 0 0 3 0x14200 bored smr 11358 375360 0 0 3 0x14200 pgzero zerothread 70478 521674 0 0 3 0x14200 aiodoned aiodoned 65636 3528 0 0 3 0x14200 syncer update 13196 437425 0 0 3 0x14200 cleaner cleaner 62446 267708 0 0 3 0x14200 reaper reaper 75260 478964 0 0 3 0x14200 pgdaemon pagedaemon 42536 75123 0 0 3 0x14200 bored viomb 11260 311544 0 0 3 0x40014200 acpi0 acpi0 53080 452441 0 0 3 0x40014200 idle1 21808 147710 0 0 3 0x14200 bored softnet3 22104 176912 0 0 3 0x14200 bored softnet2 20140 210376 0 0 3 0x14200 bored softnet1 49984 202904 0 0 3 0x14200 bored softnet0 62839 501022 0 0 3 0x14200 bored systqmp 60845 49362 0 0 3 0x14200 bored systq 46696 336235 0 0 3 0x14200 tmoslp softclockmp 29944 491871 0 0 3 0x40014200 tmoslp softclock 91077 179795 0 0 3 0x40014200 idle0 1 83302 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 73764 (syz-executor) thread 0xffff8000fffeb1e0 (445828) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8360b818) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 __mp_acquire_count+0x58 #2 mi_switch+0x4b7 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x2f2 sys/kern/kern_synch.c:425 #4 rw_enter+0x348 sys/kern/kern_rwlock.c:285 #5 rrw_enter+0xbe sys/kern/kern_rwlock.c:464 #6 VOP_LOCK+0xa6 sys/kern/vfs_vops.c:524 #7 vn_lock+0xa4 sys/kern/vfs_vnops.c:564 #8 vget+0x2bd sys/kern/vfs_subr.c:678 #9 ufs_ihashget+0x192 sys/ufs/ufs/ufs_ihash.c:98 #10 ffs_vget+0x8c sys/ufs/ffs/ffs_vfsops.c:1201 #11 ufs_lookup+0x1631 sys/ufs/ufs/ufs_lookup.c:555 #12 VOP_LOOKUP+0x6e sys/kern/vfs_vops.c:85 #13 unveil_find_cover+0x16d sys/kern/kern_unveil.c:277 #14 unveil_add_vnode+0xd1 sys/kern/kern_unveil.c:391 #15 unveil_add+0x448 sys/kern/kern_unveil.c:494 #16 sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 #17 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] #17 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #18 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10174 11042K 11059K 166960K 11258 0 pcb 17 12K 12K 166960K 17 0 rtable 188 5K 6K 166960K 348 0 pf 27 16K 16K 166960K 31 0 ifaddr 34 6K 7K 166960K 44 0 ifgroup 42 1K 2K 166960K 50 0 sysctl 2 0K 0K 166960K 2 0 counters 60 35K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 33 0 iov 0 0K 16K 166960K 8 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1364 86K 86K 166960K 1618 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 6 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 22 78K 125K 166960K 338 0 sigio 0 0K 0K 166960K 4 0 proc 58 79K 127K 166960K 482 0 subproc 78 4K 6K 166960K 338 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 26 0 in_multi 77 5K 7K 166960K 102 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 373 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 230 57K 75K 166960K 4069 0 UVM aobj 7 2K 2K 166960K 7 0 pinsyscall 44 88K 114K 166960K 1333 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 7 0 NDP 9 0K 2K 166960K 27 0 temp 31 6814K 6879K 166960K 5031 0 kqueue 13 20K 26K 166960K 45 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 46 0 42 1 0 1 1 0 8 0 rtentry 112 111 0 24 4 0 4 4 0 8 0 unpcb 144 118 0 101 2 0 2 2 0 8 1 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 60 0 55 1 0 1 1 0 8 0 arp 120 18 0 4 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 46 0 44 1 0 1 1 0 8 0 inpcb 336 419 0 410 10 0 10 10 0 8 8 nd6 136 24 0 7 1 0 1 1 0 8 0 kcovpl 48 26 0 20 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 454 0 90 29 0 29 29 0 8 3 art_table 32 455 0 90 4 0 4 4 0 8 0 art_node 16 110 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 5 1 0 1 1 0 8 1 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 4 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1748 0 226 96 0 96 96 0 8 0 ffsino 272 1748 0 226 102 0 102 102 0 8 0 nchpl 144 2103 0 410 63 0 63 63 0 8 0 uvmvnodes 80 2095 0 0 43 0 43 43 0 8 0 vnodes 216 2095 0 0 117 0 117 117 0 8 0 namei 1024 6502 0 6500 1 0 1 1 0 8 0 percpumem 16 46 0 2 1 0 1 1 0 8 0 kstatmem 264 22 0 4 2 0 2 2 0 8 0 scxspl 216 6363 0 6363 9 1 8 8 1 8 8 plimitpl 152 115 0 94 2 0 2 2 0 8 1 sigapl 424 575 0 522 8 0 8 8 0 8 0 futexpl 64 1807 0 1806 1 0 1 1 0 8 0 knotepl 120 288 0 0 9 0 9 9 0 8 0 kqueuepl 216 95 0 84 3 0 3 3 0 8 2 pipepl 320 180 0 153 3 0 3 3 0 8 0 fdescpl 496 556 0 522 7 1 6 6 0 8 0 filepl 152 2647 0 2431 15 0 15 15 0 8 4 lockfpl 104 62 0 57 1 0 1 1 0 8 0 lockfspl 48 24 0 20 1 0 1 1 0 8 0 sessionpl 144 41 0 27 1 0 1 1 0 8 0 pgrppl 48 71 0 50 1 0 1 1 0 8 0 ucredpl 104 138 0 122 1 0 1 1 0 8 0 zombiepl 144 523 0 522 1 0 1 1 0 8 0 processpl 1160 575 0 522 5 0 5 5 0 8 0 procpl 648 792 0 732 7 0 7 7 0 8 1 sockpl 664 586 0 556 11 0 11 11 0 8 7 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 152 0 0 19 0 19 19 0 8 0 mcl2k 2048 37 0 0 5 0 5 5 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 335 0 0 21 0 21 21 0 8 0 bufpl 280 2323 0 95 160 0 160 160 0 8 0 anonpl 24 137510 0 134146 47 0 47 47 0 185 17 amapchunkpl 152 12838 0 12335 27 0 27 27 0 158 3 amappl16 200 3400 0 3390 15 1 14 14 0 8 13 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 108 0 97 1 0 1 1 0 8 0 amappl13 176 43 0 42 1 0 1 1 0 8 0 amappl12 168 1156 0 1124 2 0 2 2 0 8 0 amappl11 160 48 0 37 1 0 1 1 0 8 0 amappl10 152 33 0 33 1 1 0 1 0 8 0 amappl9 144 130 0 130 1 1 0 1 0 8 0 amappl8 136 19 0 17 1 0 1 1 0 8 0 amappl7 128 104 0 93 1 0 1 1 0 8 0 amappl6 120 166 0 163 1 0 1 1 0 8 0 amappl5 112 129 0 121 1 0 1 1 0 8 0 amappl4 104 291 0 274 1 0 1 1 0 8 0 amappl3 96 2434 0 2342 4 0 4 4 0 8 1 amappl2 88 837 0 756 3 0 3 3 0 8 0 amappl1 80 8117 0 7581 15 1 14 14 0 8 1 amappl 88 3703 0 3528 6 0 6 6 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 556 0 522 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 556 0 522 1 0 1 1 0 8 0 vmmpekpl 168 6546 0 6481 4 0 4 4 0 8 0 vmmpepl 168 42373 0 40549 100 0 100 100 0 357 7 vmsppl 448 555 0 522 5 0 5 5 0 8 0 rwobjpl 56 17523 0 14584 43 0 43 43 0 8 0 pdppl 4096 1119 0 1044 113 30 83 97 0 8 8 pvpl 32 14483 0 0 118 1 117 117 0 265 0 pmappl 248 555 0 522 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 414 0 32 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace unveil_add_vnode(ffff8000fffeb1e0,fffffd80724c8058) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000fffeb1e0,ffff80003618e888,ffff80003618e943) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000fffeb1e0,ffff80003618ea70,ffff80003618e9c0) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80003618ea70) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80003618ea70) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc6851022b40, count: -5 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(ffffffff8360b610) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8360b610) at __mp_lock+0x199 sys/kern/kern_lock.c:144 syscall(ffff8000371b81d0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371b81d0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x754e29508570, 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(ffffffff8360b610) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8360b610) at __mp_lock+0x199 sys/kern/kern_lock.c:144 syscall(ffff8000371b81d0) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371b81d0) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x754e29508570, count: -6