uvm_fault(0xffffffff835262b0, 0xffff8000013bd008, 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 190145 22257 32767 0x1010 0x2000 1 syz-executor *242980 51839 32767 0x502010 0x4080000 0K syz-executor unveil_add_vnode(ffff8000371cea48,fffffd806d306390) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000371cea48,ffff80002a7667c8,ffff80002a766883) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000371cea48,ffff80002a7669b0,ffff80002a766900) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80002a7669b0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a7669b0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6347ef0bd80, 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(0xffffffff835262b0, 0xffff8000013bd008, 0, 2) -> e ddb{0}> trace unveil_add_vnode(ffff8000371cea48,fffffd806d306390) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000371cea48,ffff80002a7667c8,ffff80002a766883) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000371cea48,ffff80002a7669b0,ffff80002a766900) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80002a7669b0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a7669b0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6347ef0bd80, count: -5 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002a7666f0 rbx 0xffff8000371d1240 rdx 0 rcx 0xffff8000371cea48 rax 0xffffffffffffffff r8 0x40 r9 0xfffffd807f7d3068 r10 0x7d6006d7cc862d5c r11 0x602aa2915494c3e2 r12 0xfffffd806d306390 r13 0 r14 0xffff8000013bd000 r15 0 rip 0xffffffff8185f42a unveil_add_vnode+0xda cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a766680 ss 0 unveil_add_vnode+0xda: movq %rax,0x8(%r14,%r13,1) ddb{0}> show proc PROC (syz-executor) tid=242980 pid=51839 tcnt=4 stat=onproc flags process=502010 proc=4080000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000371cf978 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000371cf468,0xffff800035d9d470 process=0xffff8000371d1240 user=0xffff80002a761000, vmspace=0xfffffd806c234558 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 25875 392488 75850 32767 2 0x10 syz-executor 25875 5896 75850 32767 2 0x4000010 syz-executor 61309 212550 75112 0 2 0x2004 syz-executor 67704 234338 92358 32767 2 0x10 syz-executor 29247 226835 75112 0 2 0x2 syz-executor 20879 106483 61699 32767 2 0x10 syz-executor 20879 495887 61699 32767 3 0x4000090 pipewr syz-executor 22257 190145 67533 32767 7 0x3010 syz-executor 27031 211785 87830 32767 3 0x90 nanoslp syz-executor 27031 511613 87830 32767 3 0x4000090 fsleep syz-executor 27031 305720 87830 32767 2 0x4000010 syz-executor 51839 147654 18208 32767 4 0x582010 syz-executor *51839 242980 18208 32767 7 0x4582010 syz-executor 51839 43207 18208 32767 3 0x4502010 suspend syz-executor 51839 521641 18208 32767 4 0x4582010 syz-executor 17330 338477 88661 0 3 0x82 netio sshd-session 88509 309927 0 0 3 0x14200 bored sosplice 92358 511702 99551 32767 2 0x490 syz-executor 18208 506974 79012 32767 3 0x90 nanoslp syz-executor 87830 40573 46068 32767 2 0x490 syz-executor 61699 372366 72200 32767 3 0x90 nanoslp syz-executor 75850 24031 56453 32767 2 0x490 syz-executor 67533 367925 482 32767 2 0x490 syz-executor 99551 170372 75112 0 3 0x82 wait syz-executor 46068 389821 75112 0 3 0x82 wait syz-executor 482 43085 75112 0 3 0x82 wait syz-executor 56453 238928 75112 0 3 0x82 wait syz-executor 79012 316993 75112 0 3 0x82 wait syz-executor 72200 313996 75112 0 3 0x82 wait syz-executor 75112 62512 77713 0 3 0x82 kqread syz-executor 77713 371673 71122 0 3 0x10008a sigsusp ksh 71122 56807 75278 0 3 0x98 kqread sshd-session 75278 133751 88661 0 3 0x92 kqread sshd-session 70807 260251 1 0 3 0x100083 ttyin getty 88661 397887 1 0 3 0x88 kqread sshd 40145 474166 9397 73 3 0x1100090 kqread syslogd 9397 139108 1 0 3 0x100082 sbwait syslogd 66428 238641 1 0 3 0x100080 kqread resolvd 12655 7848 29749 77 3 0x100092 kqread dhcpleased 77763 335238 29749 77 3 0x100092 kqread dhcpleased 29749 329191 1 0 3 0x80 kqread dhcpleased 33294 53267 0 0 3 0x14200 bored smr 59724 91526 0 0 2 0x14200 zerothread 15341 243607 0 0 3 0x14200 aiodoned aiodoned 49899 403331 0 0 3 0x14200 syncer update 66034 41320 0 0 3 0x14200 cleaner cleaner 44227 516047 0 0 2 0x14200 reaper 72556 332954 0 0 3 0x14200 pgdaemon pagedaemon 59999 328278 0 0 3 0x14200 bored viomb 11574 453998 0 0 3 0x40014200 acpi0 acpi0 19364 165269 0 0 3 0x40014200 idle1 13610 33547 0 0 3 0x14200 bored softnet3 40434 515039 0 0 3 0x14200 bored softnet2 52852 44356 0 0 3 0x14200 bored softnet1 94567 69998 0 0 3 0x14200 bored softnet0 49679 344446 0 0 3 0x14200 bored systqmp 30926 288309 0 0 3 0x14200 bored systq 91788 12750 0 0 3 0x14200 tmoslp softclockmp 62347 51708 0 0 3 0x40014200 tmoslp softclock 50115 472744 0 0 3 0x40014200 idle0 1 316314 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 51839 (syz-executor) thread 0xffff8000371cea48 (242980) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83509d40) #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 10206 11046K 11059K 166960K 11292 0 pcb 17 12K 12K 166960K 17 0 rtable 190 5K 6K 166960K 349 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 35 0 iov 0 0K 12K 166960K 11 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1365 86K 86K 166960K 1656 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 80 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 22 75K 121K 166960K 367 0 sigio 0 0K 0K 166960K 4 0 proc 58 79K 115K 166960K 495 0 subproc 78 4K 6K 166960K 299 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 34 0 in_multi 77 5K 7K 166960K 102 0 ether_multi 1 0K 0K 166960K 2 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 1 0K 1K 166960K 412 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 231 57K 78K 166960K 4409 0 UVM aobj 9 2K 4K 166960K 11 0 pinsyscall 45 90K 110K 166960K 1377 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 14 0 NDP 9 0K 2K 166960K 27 0 temp 32 6818K 6883K 166960K 4641 0 kqueue 14 20K 29K 166960K 57 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 43 0 39 1 0 1 1 0 8 0 rtentry 112 111 0 23 4 0 4 4 0 8 0 unpcb 144 140 0 125 1 0 1 1 0 8 0 syncache 336 9 0 9 1 0 1 1 0 8 1 tcpqe 32 3 0 3 1 0 1 1 0 8 1 tcpcb 808 113 0 104 5 0 5 5 0 8 3 arp 120 18 0 4 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 46 0 45 1 0 1 1 0 8 0 inpcb 336 304 0 290 4 0 4 4 0 8 2 nd6 136 24 0 6 1 0 1 1 0 8 0 kcovpl 48 23 0 17 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 88 29 0 29 29 0 8 3 art_table 32 454 0 88 4 0 4 4 0 8 0 art_node 16 110 0 30 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 112 78 0 68 1 0 1 1 0 8 0 shmpl 112 8 0 2 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1871 0 348 96 0 96 96 0 8 0 ffsino 272 1871 0 348 102 0 102 102 0 8 0 nchpl 144 2279 0 582 63 0 63 63 0 8 0 uvmvnodes 80 2179 0 0 45 0 45 45 0 8 0 vnodes 216 2179 0 0 122 0 122 122 0 8 0 namei 1024 7448 0 7445 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 6523 0 6523 3 2 1 2 1 8 1 plimitpl 152 91 0 69 2 0 2 2 0 8 1 sigapl 424 613 0 559 7 0 7 7 0 8 0 futexpl 64 2495 0 2494 1 0 1 1 0 8 0 knotepl 120 80 0 0 3 0 3 3 0 8 0 kqueuepl 216 73 0 62 1 0 1 1 0 8 0 pipepl 320 170 0 141 3 0 3 3 0 8 0 fdescpl 496 594 0 559 7 1 6 6 0 8 0 filepl 152 3130 0 2909 13 0 13 13 0 8 2 lockfpl 104 33 0 31 1 0 1 1 0 8 0 lockfspl 48 14 0 12 1 0 1 1 0 8 0 sessionpl 144 41 0 26 1 0 1 1 0 8 0 pgrppl 48 67 0 44 1 0 1 1 0 8 0 ucredpl 104 639 0 622 1 0 1 1 0 8 0 zombiepl 144 560 0 559 1 0 1 1 0 8 0 processpl 1160 613 0 559 5 0 5 5 0 8 0 procpl 648 926 0 864 7 0 7 7 0 8 1 sosppl 168 4 0 4 1 0 1 1 0 8 1 sockpl 664 488 0 455 6 0 6 6 0 8 3 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 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 157 0 0 20 0 20 20 0 8 0 mcl2k 2048 17 0 0 3 0 3 3 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 312 0 0 20 0 20 20 0 8 0 bufpl 280 2447 0 95 168 0 168 168 0 8 0 anonpl 24 162578 0 159267 46 0 46 46 0 185 22 amapchunkpl 152 14414 0 13928 24 0 24 24 0 158 5 amappl16 200 4215 0 4200 14 5 9 14 0 8 8 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 110 0 99 1 0 1 1 0 8 0 amappl13 176 17 0 17 1 1 0 1 0 8 0 amappl12 168 1193 0 1160 2 0 2 2 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 163 0 163 1 1 0 1 0 8 0 amappl8 136 35 0 34 1 0 1 1 0 8 0 amappl7 128 161 0 149 1 0 1 1 0 8 0 amappl6 120 166 0 164 1 0 1 1 0 8 0 amappl5 112 141 0 131 1 0 1 1 0 8 0 amappl4 104 297 0 282 1 0 1 1 0 8 0 amappl3 96 2644 0 2553 3 0 3 3 0 8 0 amappl2 88 892 0 806 3 0 3 3 0 8 0 amappl1 80 9056 0 8456 15 0 15 15 0 8 0 amappl 88 4021 0 3848 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 10 0 2 1 0 1 1 0 8 0 uaddrrnd 24 594 0 559 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 594 0 559 1 0 1 1 0 8 0 vmmpekpl 168 7000 0 6942 3 0 3 3 0 8 0 vmmpepl 168 46378 0 44402 100 0 100 100 0 357 7 vmsppl 448 593 0 559 5 0 5 5 0 8 0 rwobjpl 56 19598 0 16521 46 1 45 45 0 8 0 pdppl 4096 1195 0 1118 117 36 81 95 0 8 4 pvpl 32 14907 0 0 121 0 121 121 0 265 0 pmappl 248 593 0 559 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 413 0 38 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace unveil_add_vnode(ffff8000371cea48,fffffd806d306390) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000371cea48,ffff80002a7667c8,ffff80002a766883) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000371cea48,ffff80002a7669b0,ffff80002a766900) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80002a7669b0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a7669b0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6347ef0bd80, 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(ffffffff83509b38) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83509b38) at __mp_lock+0x192 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff83509b38,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x2f2 sys/kern/kern_synch.c:425 msleep(ffff8000371d1cb0,ffff8000371d1c58,20,ffffffff830ca6f5,0) at msleep+0x13b sys/kern/kern_synch.c:251 single_thread_set(ffff800035d9d970,3) at single_thread_set+0x41e single_thread_wait sys/kern/kern_sig.c:2230 [inline] single_thread_set(ffff800035d9d970,3) at single_thread_set+0x41e sys/kern/kern_sig.c:2213 exit1(ffff800035d9d970,0,0,1) at exit1+0xa3 sys/kern/kern_exit.c:132 sys_exit(ffff800035d9d970,ffff80002a778ac0,ffff80002a778a10) at sys_exit+0x1a syscall(ffff80002a778ac0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a778ac0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b06ebd151d0, count: 2 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(ffffffff83509b38) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff83509b38) at __mp_lock+0x192 sys/kern/kern_lock.c:144 __mp_acquire_count(ffffffff83509b38,1) at __mp_acquire_count+0x58 mi_switch() at mi_switch+0x4b7 sys/kern/sched_bsd.c:441 sleep_finish(0,1) at sleep_finish+0x2f2 sys/kern/kern_synch.c:425 msleep(ffff8000371d1cb0,ffff8000371d1c58,20,ffffffff830ca6f5,0) at msleep+0x13b sys/kern/kern_synch.c:251 single_thread_set(ffff800035d9d970,3) at single_thread_set+0x41e single_thread_wait sys/kern/kern_sig.c:2230 [inline] single_thread_set(ffff800035d9d970,3) at single_thread_set+0x41e sys/kern/kern_sig.c:2213 exit1(ffff800035d9d970,0,0,1) at exit1+0xa3 sys/kern/kern_exit.c:132 sys_exit(ffff800035d9d970,ffff80002a778ac0,ffff80002a778a10) at sys_exit+0x1a syscall(ffff80002a778ac0) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a778ac0) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7b06ebd151d0, count: -13