uvm_fault(0xffffffff8352b8e8, 0xffff800001640008, 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 *209361 33030 32767 0x502010 0x4080000 0K syz-executor 203168 13219 32767 0x10 0 1 syz-executor unveil_add_vnode(ffff8000ffff7240,fffffd806bfc2950) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000ffff7240,ffff8000371bd848,ffff8000371bd903) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000ffff7240,ffff8000371bda30,ffff8000371bd980) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff8000371bda30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371bda30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x92f861bc7c0, 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(0xffffffff8352b8e8, 0xffff800001640008, 0, 2) -> e ddb{0}> trace unveil_add_vnode(ffff8000ffff7240,fffffd806bfc2950) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000ffff7240,ffff8000371bd848,ffff8000371bd903) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000ffff7240,ffff8000371bda30,ffff8000371bd980) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff8000371bda30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371bda30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x92f861bc7c0, count: -5 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff8000371bd770 rbx 0xffff800029fe8da0 rdx 0 rcx 0xffff8000ffff7240 rax 0xffffffffffffffff r8 0x40 r9 0xfffffd807f7d30d0 r10 0x801dc9690f5df760 r11 0x3bd26fc0c527884a r12 0xfffffd806bfc2950 r13 0 r14 0xffff800001640000 r15 0 rip 0xffffffff8240a58a unveil_add_vnode+0xda cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000371bd700 ss 0x10 unveil_add_vnode+0xda: movq %rax,0x8(%r14,%r13,1) ddb{0}> show proc PROC (syz-executor) tid=209361 pid=33030 tcnt=3 stat=onproc flags process=502010 proc=4080000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000fffeb468 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff6598,0xffff8000ffff6098 process=0xffff800029fe8da0 user=0xffff8000371b8000, vmspace=0xfffffd8059043540 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48797 216572 77653 32767 2 0x10 syz-executor 66873 494382 40487 0 2 0x2 syz-executor 33030 240284 23182 32767 4 0x582010 syz-executor *33030 209361 23182 32767 7 0x4582010 syz-executor 33030 386621 23182 32767 3 0x4502010 suspend syz-executor 13219 203168 71092 32767 7 0x10 syz-executor 13219 76507 71092 32767 2 0x4000010 syz-executor 13219 350390 71092 32767 3 0x4000090 fsleep syz-executor 77030 81544 52143 0 2 0x2 ifconfig 52143 61966 57307 0 3 0x10008a sigsusp sh 57307 371307 80640 0 3 0x80 wait syz-executor 80640 364650 40487 0 3 0x82 wait syz-executor 48552 333062 12842 32767 2 0x10 syz-executor 48552 482749 12842 32767 3 0x4000090 sbwait syz-executor 48552 435633 12842 32767 3 0x4000090 fsleep syz-executor 24453 16157 57222 32767 2 0x10 syz-executor 24453 23319 57222 32767 3 0x4000090 ttyout syz-executor 24453 40223 57222 32767 3 0x4000090 fsleep syz-executor 24453 203511 57222 32767 3 0x4000090 fsleep syz-executor 52356 65877 82735 32767 3 0x90 nanoslp syz-executor 52356 33865 82735 32767 3 0x4000090 piperd syz-executor 52356 473538 82735 32767 3 0x4000090 fsleep syz-executor 23182 129788 91756 32767 3 0x90 nanoslp syz-executor 91756 353747 40487 0 3 0x82 wait syz-executor 77653 230097 17413 32767 3 0x90 nanoslp syz-executor 12842 489271 35546 32767 3 0x90 nanoslp syz-executor 71092 233260 95847 32767 3 0x90 nanoslp syz-executor 35546 22695 40487 0 3 0x82 wait syz-executor 17413 31379 40487 0 3 0x82 wait syz-executor 95847 241779 40487 0 3 0x82 wait syz-executor 82735 258567 48414 32767 2 0x10 syz-executor 48414 291900 40487 0 3 0x82 wait syz-executor 57222 19258 95682 32767 2 0x490 syz-executor 95682 496415 40487 0 3 0x82 wait syz-executor 58790 413227 0 0 3 0x14200 bored sosplice 40487 100102 91786 0 3 0x82 kqread syz-executor 91786 477677 29840 0 3 0x10008a sigsusp ksh 29840 517892 1322 0 3 0x98 kqread sshd-session 1322 418409 72392 0 3 0x92 kqread sshd-session 86440 248748 1 0 3 0x100083 ttyin getty 72392 62231 1 0 3 0x88 kqread sshd 60348 115951 48738 73 2 0x1100010 syslogd 48738 512652 1 0 3 0x100082 sbwait syslogd 36430 384271 1 0 3 0x100080 kqread resolvd 62676 417153 30753 77 3 0x100092 kqread dhcpleased 83364 34294 30753 77 3 0x100092 kqread dhcpleased 30753 62719 1 0 3 0x80 kqread dhcpleased 89816 332385 0 0 3 0x14200 bored smr 17026 44546 0 0 2 0x14200 zerothread 35472 491083 0 0 3 0x14200 aiodoned aiodoned 72548 271257 0 0 3 0x14200 syncer update 87832 207858 0 0 3 0x14200 cleaner cleaner 60939 134042 0 0 3 0x14200 reaper reaper 80869 115405 0 0 3 0x14200 pgdaemon pagedaemon 61782 334457 0 0 3 0x14200 bored viomb 87362 276240 0 0 3 0x40014200 acpi0 acpi0 88405 192900 0 0 3 0x40014200 idle1 20514 284922 0 0 3 0x14200 bored softnet3 44402 388799 0 0 3 0x14200 bored softnet2 42408 427389 0 0 3 0x14200 bored softnet1 76771 502142 0 0 3 0x14200 bored softnet0 17955 19547 0 0 3 0x14200 bored systqmp 47521 249746 0 0 3 0x14200 bored systq 21701 386213 0 0 3 0x14200 tmoslp softclockmp 84015 364257 0 0 3 0x40014200 tmoslp softclock 339 100357 0 0 3 0x40014200 idle0 1 3502 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 33030 (syz-executor) thread 0xffff8000ffff7240 (209361) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8352f228) #0 witness_lock+0x5b8 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5b8 sys/kern/subr_witness.c:1151 #1 __mp_acquire_count+0x58 #2 mi_switch+0x658 sys/kern/sched_bsd.c:460 #3 sleep_finish+0x219 sys/kern/kern_synch.c:416 #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:676 #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:179 [inline] #17 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #18 Xsyscall+0x128 Process 60348 (syslogd) thread 0xffff8000ffffdbe8 (115951) exclusive rrwlock inode r = 0 (0xfffffd806dfe8c50) #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 sys_fsync+0x152 sys/kern/vfs_syscalls.c:2926 #6 syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] #6 syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 #7 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10190 14116K 14131K 166960K 11853 0 pcb 17 14K 16K 166960K 19 0 rtable 190 5K 7K 166960K 6220 0 pf 27 16K 16K 166960K 429 0 ifaddr 34 7K 9K 166960K 810 0 ifgroup 42 1K 2K 166960K 834 0 sysctl 4 1K 2K 166960K 6 0 counters 60 35K 36K 166960K 450 0 ioctlops 0 0K 2K 166960K 259 0 iov 1 2K 18K 166960K 188 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1457 92K 92K 166960K 4872 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 39 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 122 0 dirhash 15 2K 3K 166960K 99 0 ACPI 1690 195K 286K 166960K 12418 0 file desc 25 90K 157K 166960K 5168 0 sigio 0 0K 0K 166960K 96 0 proc 70 103K 176K 166960K 6012 0 subproc 91 5K 12K 166960K 3263 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 452 0 in_multi 77 5K 7K 166960K 2266 0 ether_multi 1 0K 0K 166960K 14 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 115 519K 519K 166960K 115 0 exec 0 0K 1K 166960K 3319 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 247 66K 132K 166960K 36411 0 UVM aobj 131 8K 8K 166960K 138 0 pinsyscall 46 92K 126K 166960K 11276 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 174 0 NDP 11 0K 2K 166960K 593 0 temp 71 6823K 6890K 166960K 54695 0 kqueue 15 24K 32K 166960K 343 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 807 0 803 6 5 1 3 0 8 0 rtentry 112 2200 0 2112 11 7 4 4 0 8 0 unpcb 144 2375 0 2357 30 29 1 6 0 8 0 syncache 336 47 0 47 17 16 1 1 0 8 1 tcpqe 32 20 0 20 9 9 0 1 0 8 0 tcpcb 808 1697 0 1688 51 49 2 11 0 8 0 arp 120 397 0 383 1 0 1 1 0 8 0 ipq 40 13 0 10 4 3 1 1 0 8 0 ipqe 40 236 0 233 4 3 1 1 0 8 0 inpcb 336 4553 0 4536 87 80 7 13 0 8 5 nd6 136 604 0 586 1 0 1 1 0 8 0 kcovpl 48 251 0 244 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 8934 0 8566 129 100 29 30 0 8 3 art_table 32 8935 0 8566 6 2 4 4 0 8 0 art_node 16 2199 0 2119 1 0 1 1 0 8 0 sysvmsgpl 40 5 0 1 1 0 1 1 0 8 0 semapl 112 119 0 109 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 78 0 57 3 0 3 3 0 8 0 dino2pl 256 4945 0 2946 126 0 126 126 0 8 0 ffsino 272 4945 0 2946 135 1 134 134 0 8 0 nchpl 144 7842 0 5814 76 0 76 76 0 8 0 uvmvnodes 80 8217 0 0 168 0 168 168 0 8 0 vnodes 216 8217 0 0 457 0 457 457 0 8 0 namei 1024 46383 0 46381 20 19 1 2 0 8 0 percpumem 16 239 0 195 1 0 1 1 0 8 0 kstatmem 264 408 0 390 2 0 2 2 0 8 0 scxspl 216 77859 0 77859 26 23 3 8 1 8 3 plimitpl 152 1527 0 1504 2 0 2 2 0 8 0 sigapl 424 4997 0 4941 16 8 8 9 0 8 1 futexpl 64 29234 0 29229 21 20 1 1 0 8 0 knotepl 120 853 0 0 18 1 17 18 0 8 0 kqueuepl 216 811 0 799 14 13 1 5 0 8 0 pipepl 320 1369 0 1341 19 15 4 8 0 8 0 fdescpl 496 4978 0 4941 15 8 7 7 0 8 1 filepl 152 25590 0 25351 47 33 14 18 0 8 1 lockfpl 104 877 0 875 1 0 1 1 0 8 0 lockfspl 48 204 0 202 1 0 1 1 0 8 0 sessionpl 144 249 0 234 1 0 1 1 0 8 0 pgrppl 48 526 0 503 1 0 1 1 0 8 0 ucredpl 104 3585 0 3568 1 0 1 1 0 8 0 zombiepl 144 4941 0 4941 1 0 1 1 0 8 1 processpl 1160 4997 0 4941 14 9 5 6 0 8 0 procpl 648 8169 0 8102 18 11 7 7 0 8 0 srpgc 96 16 0 16 7 7 0 1 0 8 0 sosppl 168 32 0 32 12 12 0 1 0 8 0 sockpl 664 7834 0 7795 127 118 9 20 0 8 5 mcl64k 65536 7 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 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 377 0 0 32 2 30 32 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 3990 0 0 237 1 236 236 0 8 0 bufpl 280 12325 0 3759 612 0 612 612 0 8 0 anonpl 24 731757 0 723371 142 41 101 110 0 185 0 amapchunkpl 152 118888 0 118265 84 46 38 51 0 158 10 amappl16 200 13603 0 13369 82 50 32 38 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 555 0 545 1 0 1 1 0 8 0 amappl13 176 14 0 14 4 4 0 1 0 8 0 amappl12 168 8674 0 8640 16 13 3 3 0 8 0 amappl11 160 50 0 40 1 0 1 1 0 8 0 amappl10 152 13 0 13 1 1 0 1 0 8 0 amappl9 144 143 0 143 1 1 0 1 0 8 0 amappl8 136 21 0 19 1 0 1 1 0 8 0 amappl7 128 510 0 499 1 0 1 1 0 8 0 amappl6 120 2048 0 2045 1 0 1 1 0 8 0 amappl5 112 928 0 918 1 0 1 1 0 8 0 amappl4 104 1004 0 986 1 0 1 1 0 8 0 amappl3 96 21349 0 21234 4 0 4 4 0 8 0 amappl2 88 3736 0 3670 2 0 2 2 0 8 0 amappl1 80 43166 0 42644 22 7 15 15 0 8 1 amappl 88 34327 0 34134 8 2 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 137 0 7 3 0 3 3 0 8 0 uaddrrnd 24 4978 0 4941 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4978 0 4941 1 0 1 1 0 8 0 vmmpekpl 168 46794 0 46733 8 3 5 5 0 8 0 vmmpepl 168 359056 0 356921 223 109 114 143 0 357 8 vmsppl 440 4977 0 4941 8 2 6 6 0 8 1 rwobjpl 56 101197 0 91787 142 7 135 135 0 8 1 pdppl 4096 9963 0 9882 702 617 85 115 0 8 4 pvpl 32 50823 0 0 409 3 406 406 0 265 0 pmappl 248 4977 0 4941 14 10 4 4 0 8 1 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1548 0 887 20 0 20 20 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace unveil_add_vnode(ffff8000ffff7240,fffffd806bfc2950) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff8000ffff7240,ffff8000371bd848,ffff8000371bd903) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff8000ffff7240,ffff8000371bda30,ffff8000371bd980) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff8000371bda30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:179 [inline] syscall(ffff8000371bda30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x92f861bc7c0, 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 end of kernel end trace frame: 0x73a127eb6880, 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: 0x73a127eb6880, count: -3