uvm_fault(0xffffffff83574698, 0xffff800010fd9008, 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 *258531 32420 32767 0x102010 0x4080000 0K syz-executor 33091 11183 32767 0x10 0x4000000 1 syz-executor unveil_add_vnode(ffff80003459c028,fffffd80627af6e0) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff80003459c028,ffff8000371ca318,ffff8000371ca3d3) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff80003459c028,ffff8000371ca500,ffff8000371ca450) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff8000371ca500) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371ca500) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaedbddf3980, 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(0xffffffff83574698, 0xffff800010fd9008, 0, 2) -> e ddb{0}> trace unveil_add_vnode(ffff80003459c028,fffffd80627af6e0) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff80003459c028,ffff8000371ca318,ffff8000371ca3d3) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff80003459c028,ffff8000371ca500,ffff8000371ca450) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff8000371ca500) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371ca500) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaedbddf3980, count: -5 ddb{0}> show registers rdi 0xffff80002cf5f000 rsi 0x1135 __ALIGN_SIZE+0x135 rbp 0xffff8000371ca240 rbx 0xffff8000fffec4a8 rdx 0xffff80002cf5f000 rcx 0x1134 __ALIGN_SIZE+0x134 rax 0xffffffffffffffff r8 0x40 r9 0xfffffd807f7d3410 r10 0x10c6b3e56a73c761 r11 0x1c644c6f57640fa5 r12 0xfffffd80627af6e0 r13 0 r14 0xffff800010fd9000 r15 0 rip 0xffffffff8215175a unveil_add_vnode+0xda cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff8000371ca1d0 ss 0x10 unveil_add_vnode+0xda: movq %rax,0x8(%r14,%r13,1) ddb{0}> show proc PROC (syz-executor) tid=258531 pid=32420 tcnt=3 stat=onproc flags process=102010 proc=4080000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003459c7c0 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff7458,0xffff80003459c7d0 process=0xffff8000fffec4a8 user=0xffff8000371c5000, vmspace=0xfffffd806cacac50 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32420 380799 22862 32767 4 0x182010 syz-executor *32420 258531 22862 32767 7 0x4182010 syz-executor 32420 147295 22862 32767 3 0x4102010 suspend syz-executor 75738 120026 61823 0 2 0x2 syz-executor 11183 499123 89829 32767 2 0x10 syz-executor 11183 33091 89829 32767 7 0x4000010 syz-executor 56010 158947 16865 32767 2 0x490 syz-executor 56010 144878 16865 32767 3 0x4000090 fsleep syz-executor 56010 235094 16865 32767 3 0x4000090 kqread syz-executor 53094 505288 83001 32767 2 0x490 syz-executor 53094 423742 83001 32767 3 0x4000090 lockf syz-executor 53094 395545 83001 32767 3 0x4000090 fsleep syz-executor 40256 123257 9355 32767 2 0x490 syz-executor 40256 488208 9355 32767 3 0x4000090 kqsel syz-executor 40256 307579 9355 32767 3 0x4000090 kqsel syz-executor 40256 241876 9355 32767 3 0x4000090 fsleep syz-executor 40256 304606 9355 32767 3 0x4000090 fsleep syz-executor 72081 154313 78290 32767 2 0x490 syz-executor 72081 332729 78290 32767 3 0x4000090 lockf syz-executor 72081 401464 78290 32767 3 0x4000090 fsleep syz-executor 34461 14231 58566 0 3 0x82 netio sshd-session 51401 516785 0 0 3 0x14200 bored sosplice 78290 182104 4572 32767 2 0x490 syz-executor 80158 173191 94539 32767 2 0x490 syz-executor 16865 212244 6044 32767 2 0x490 syz-executor 89829 506864 1331 32767 2 0x490 syz-executor 9355 128460 47456 32767 3 0x90 nanoslp syz-executor 22862 522174 84233 32767 3 0x90 nanoslp syz-executor 83001 114225 86260 32767 2 0x490 syz-executor 4572 379073 61823 0 3 0x82 wait syz-executor 94539 364521 61823 0 3 0x82 wait syz-executor 1331 85005 61823 0 3 0x82 wait syz-executor 6044 21027 61823 0 3 0x82 wait syz-executor 84233 99957 61823 0 3 0x82 wait syz-executor 47456 285709 61823 0 3 0x82 wait syz-executor 86260 161183 61823 0 3 0x82 wait syz-executor 61823 231694 3617 0 3 0x82 kqread syz-executor 3617 94341 8471 0 3 0x10008a sigsusp ksh 8471 375102 38722 0 3 0x98 kqread sshd-session 38722 392383 58566 0 3 0x92 kqread sshd-session 57852 73028 1 0 3 0x100083 ttyin getty 58566 462826 1 0 3 0x88 kqread sshd 97565 498721 89015 73 3 0x1100090 kqread syslogd 89015 43951 1 0 3 0x100082 sbwait syslogd 72096 139663 1 0 3 0x100080 kqread resolvd 30453 327447 7602 77 3 0x100092 kqread dhcpleased 36648 44220 7602 77 3 0x100092 kqread dhcpleased 7602 352196 1 0 3 0x80 kqread dhcpleased 98486 29605 0 0 3 0x14200 bored smr 81004 174205 0 0 2 0x14200 zerothread 3917 250125 0 0 3 0x14200 aiodoned aiodoned 87961 257808 0 0 3 0x14200 syncer update 46074 162884 0 0 3 0x14200 cleaner cleaner 97551 321189 0 0 3 0x14200 reaper reaper 29436 72492 0 0 3 0x14200 pgdaemon pagedaemon 8767 1482 0 0 3 0x14200 bored viomb 9423 211566 0 0 3 0x40014200 acpi0 acpi0 60135 80008 0 0 3 0x40014200 idle1 73004 443381 0 0 3 0x14200 bored softnet3 633 213714 0 0 3 0x14200 bored softnet2 76328 161821 0 0 3 0x14200 bored softnet1 52832 367538 0 0 3 0x14200 bored softnet0 30831 89049 0 0 3 0x14200 bored systqmp 84491 302914 0 0 3 0x14200 bored systq 86980 60217 0 0 2 0x14200 softclockmp 29115 351393 0 0 3 0x40014200 tmoslp softclock 78189 498655 0 0 3 0x40014200 idle0 1 338845 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 32420 (syz-executor) thread 0xffff80003459c028 (258531) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83624568) #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+0x21e 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:673 #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 Process 11183 (syz-executor) thread 0xffff80003459cf58 (33091) shared rwlock vmmaplk r = 0 (0xfffffd8076986f20) #0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5bb sys/kern/subr_witness.c:1155 #1 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1785 #2 uvm_fault_check+0x47 sys/uvm/uvm_fault.c:672 #3 uvm_fault+0x112 sys/uvm/uvm_fault.c:600 #4 kpageflttrap+0x2d0 sys/arch/amd64/amd64/trap.c:279 #5 kerntrap+0x14a sys/arch/amd64/amd64/trap.c:332 #6 alltraps_kern_meltdown+0x7b #7 copyout+0x57 #8 syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] #8 syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 #9 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10185 11045K 11059K 166960K 11266 0 pcb 17 12K 12K 166960K 17 0 rtable 214 6K 7K 166960K 370 0 pf 29 16K 16K 166960K 31 0 ifaddr 38 6K 7K 166960K 44 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 2 1K 1K 166960K 2 0 counters 62 36K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 35 0 iov 0 0K 16K 166960K 59 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1364 86K 86K 166960K 1587 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 69 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 23 82K 125K 166960K 545 0 sigio 0 0K 0K 166960K 9 0 proc 58 79K 115K 166960K 513 0 subproc 91 5K 6K 166960K 104 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 368 0 in_multi 90 6K 7K 166960K 112 0 ether_multi 1 0K 0K 166960K 3 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 383 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 256 66K 88K 166960K 6638 0 UVM aobj 21 5K 6K 166960K 23 0 pinsyscall 46 92K 111K 166960K 1570 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 39 0 NDP 10 0K 2K 166960K 27 0 temp 48 6817K 6882K 166960K 5407 0 kqueue 14 22K 26K 166960K 128 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 93 0 90 1 0 1 1 0 8 0 rtentry 112 116 0 16 4 0 4 4 0 8 0 unpcb 144 764 0 749 6 0 6 6 0 8 5 syncache 336 11 0 11 2 1 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 808 412 0 396 9 0 9 9 0 8 7 arp 120 19 0 2 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 0 1 0 1 1 0 8 0 inpcb 336 956 0 933 8 0 8 8 0 8 5 nd6 136 28 0 7 1 0 1 1 0 8 0 kcovpl 48 8 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 467 0 58 30 0 30 30 0 8 2 art_table 32 468 0 58 4 0 4 4 0 8 0 art_node 16 115 0 24 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 1 0 1 1 0 8 0 semapl 112 67 0 57 1 0 1 1 0 8 0 shmpl 112 20 0 2 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 2307 0 802 95 0 95 95 0 8 0 ffsino 272 2307 0 802 101 0 101 101 0 8 0 nchpl 144 3055 0 1381 63 0 63 63 0 8 0 uvmvnodes 80 2420 0 0 50 0 50 50 0 8 0 vnodes 216 2420 0 0 135 0 135 135 0 8 0 namei 1024 10526 0 10524 2 1 1 2 0 8 0 percpumem 16 46 0 1 1 0 1 1 0 8 0 kstatmem 264 22 0 2 2 0 2 2 0 8 0 scxspl 216 8826 0 8826 9 3 6 8 1 8 6 plimitpl 152 297 0 272 2 0 2 2 0 8 0 sigapl 424 824 0 768 8 0 8 8 0 8 0 futexpl 64 6450 0 6445 1 0 1 1 0 8 0 knotepl 120 571 0 0 18 0 18 18 0 8 0 kqueuepl 216 189 0 173 2 0 2 2 0 8 1 pipepl 320 224 0 196 3 0 3 3 0 8 0 fdescpl 496 805 0 769 7 1 6 6 0 8 0 filepl 152 5908 0 5656 21 2 19 20 0 8 8 lockfpl 104 131 0 124 1 0 1 1 0 8 0 lockfspl 48 58 0 55 1 0 1 1 0 8 0 sessionpl 144 29 0 13 1 0 1 1 0 8 0 pgrppl 48 48 0 24 1 0 1 1 0 8 0 ucredpl 104 1245 0 1227 1 0 1 1 0 8 0 zombiepl 144 769 0 768 1 0 1 1 0 8 0 processpl 1160 824 0 768 5 0 5 5 0 8 0 procpl 648 1525 0 1456 7 0 7 7 0 8 0 sosppl 168 4 0 4 1 0 1 1 0 8 1 sockpl 664 1840 0 1800 21 9 12 18 0 8 8 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 149 0 0 19 0 19 19 0 8 0 mcl2k 2048 20 0 0 3 0 3 3 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 245 0 0 15 0 15 15 0 8 0 bufpl 280 2759 0 95 191 0 191 191 0 8 0 anonpl 24 193886 0 190154 71 1 70 70 0 185 42 amapchunkpl 152 21890 0 21327 32 0 32 32 0 158 6 amappl16 200 5174 0 5147 32 22 10 26 0 8 8 amappl15 192 7 0 7 2 1 1 1 0 8 1 amappl14 184 121 0 110 1 0 1 1 0 8 0 amappl13 176 14 0 14 1 1 0 1 0 8 0 amappl12 168 1409 0 1374 3 1 2 3 0 8 0 amappl11 160 48 0 38 1 0 1 1 0 8 0 amappl10 152 25 0 25 1 1 0 1 0 8 0 amappl9 144 150 0 150 1 1 0 1 0 8 0 amappl8 136 35 0 32 1 0 1 1 0 8 0 amappl7 128 98 0 87 1 0 1 1 0 8 0 amappl6 120 168 0 166 1 0 1 1 0 8 0 amappl5 112 137 0 127 1 0 1 1 0 8 0 amappl4 104 300 0 286 1 0 1 1 0 8 0 amappl3 96 3971 0 3865 4 0 4 4 0 8 0 amappl2 88 1143 0 1052 3 0 3 3 0 8 0 amappl1 80 10339 0 9727 15 0 15 15 0 8 0 amappl 88 6205 0 6008 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 22 0 2 1 0 1 1 0 8 0 uaddrrnd 24 805 0 769 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 805 0 769 1 0 1 1 0 8 0 vmmpekpl 168 8551 0 8494 3 0 3 3 0 8 0 vmmpepl 168 59609 0 57560 109 0 109 109 0 357 13 vmsppl 448 804 0 769 6 0 6 6 0 8 0 rwobjpl 56 23583 0 20192 48 0 48 48 0 8 0 pdppl 4096 1617 0 1538 121 36 85 99 0 8 6 pvpl 32 18979 0 0 155 1 154 154 0 265 0 pmappl 248 804 0 769 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 421 0 40 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace unveil_add_vnode(ffff80003459c028,fffffd80627af6e0) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff80003459c028,ffff8000371ca318,ffff8000371ca3d3) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff80003459c028,ffff8000371ca500,ffff8000371ca450) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff8000371ca500) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff8000371ca500) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xaedbddf3980, 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 copy_fault() at copy_fault syscall(ffff80002a10aa30) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a10aa30) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb84d2856d0, 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 copy_fault() at copy_fault syscall(ffff80002a10aa30) at syscall+0xbb6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a10aa30) at syscall+0xbb6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb84d2856d0, count: -6