uvm_fault(0xffffffff83514ce8, 0xffff800010fd8008, 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 136654 54697 0 0x2 0 0 syz-executor *388634 12790 32767 0x502010 0x4080000 1K syz-executor unveil_add_vnode(ffff80003239ccc8,fffffd8072fe71d8) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff80003239ccc8,ffff80002a19aa48,ffff80002a19ab03) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff80003239ccc8,ffff80002a19ac30,ffff80002a19ab80) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80002a19ac30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a19ac30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb34ef56810, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xffffffff83514ce8, 0xffff800010fd8008, 0, 2) -> e ddb{1}> trace unveil_add_vnode(ffff80003239ccc8,fffffd8072fe71d8) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff80003239ccc8,ffff80002a19aa48,ffff80002a19ab03) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff80003239ccc8,ffff80002a19ac30,ffff80002a19ab80) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80002a19ac30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a19ac30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb34ef56810, count: -5 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80002a19a970 rbx 0xffff8000361d16c8 rdx 0 rcx 0xffff80003239ccc8 rax 0xffffffffffffffff r8 0x40 r9 0xfffffd807f7d3138 r10 0 r11 0xaad6f9ad8f4ca7b5 r12 0xfffffd8072fe71d8 r13 0 r14 0xffff800010fd8000 r15 0 rip 0xffffffff81944f9a unveil_add_vnode+0xda cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a19a900 ss 0 unveil_add_vnode+0xda: movq %rax,0x8(%r14,%r13,1) ddb{1}> show proc PROC (syz-executor) tid=388634 pid=12790 tcnt=4 stat=onproc flags process=502010 proc=4080000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff6528 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000361ce028,0xffff8000ffff6538 process=0xffff8000361d16c8 user=0xffff80002a195000, vmspace=0xfffffd806cb49710 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 54697 136654 53023 0 7 0x2 syz-executor 12790 274397 33922 32767 4 0x582010 syz-executor *12790 388634 33922 32767 7 0x4582010 syz-executor 12790 512265 33922 32767 3 0x4502010 suspend syz-executor 12790 494987 33922 32767 4 0x4582010 syz-executor 33479 427094 76987 32767 2 0x10 syz-executor 33479 67597 76987 32767 3 0x4000090 kqsel syz-executor 33479 119522 76987 32767 3 0x4000090 kqsel syz-executor 33479 249640 76987 32767 3 0x4000090 fsleep syz-executor 76436 353181 41768 32767 3 0x90 nanoslp syz-executor 76436 34947 41768 32767 3 0x4000090 fsleep syz-executor 76436 4558 41768 32767 3 0x4000090 fifow syz-executor 76436 95954 41768 32767 3 0x4000090 fsleep syz-executor 39655 314875 19928 32767 3 0x90 nanoslp syz-executor 39655 51588 19928 32767 3 0x4000090 msgwait syz-executor 39655 225925 19928 32767 3 0x4000090 fsleep syz-executor 23773 323030 0 0 3 0x14200 bored sosplice 33922 122698 78915 32767 3 0x90 nanoslp syz-executor 41768 237869 82565 32767 3 0x90 nanoslp syz-executor 89945 2431 89812 32767 3 0x90 piperd syz-executor 19928 386266 70934 32767 3 0x90 nanoslp syz-executor 76987 82017 42692 32767 3 0x90 nanoslp syz-executor 58787 274754 29603 32767 3 0x90 piperd syz-executor 70934 439022 53023 0 3 0x82 wait syz-executor 82565 139799 53023 0 3 0x82 wait syz-executor 29603 257670 53023 0 3 0x82 wait syz-executor 78915 263535 53023 0 3 0x82 wait syz-executor 89812 171207 53023 0 3 0x82 wait syz-executor 42692 184174 53023 0 3 0x82 wait syz-executor 53023 310501 38198 0 3 0x82 nanoslp syz-executor 38198 10907 77935 0 3 0x10008a sigsusp ksh 77935 477539 6861 0 3 0x98 kqread sshd-session 6861 306213 83034 0 3 0x92 kqread sshd-session 49357 171113 1 0 3 0x100083 ttyin getty 83034 19698 1 0 3 0x88 kqread sshd 27171 283225 96614 73 3 0x1100090 kqread syslogd 96614 129580 1 0 3 0x100082 sbwait syslogd 3323 358795 1 0 3 0x100080 kqread resolvd 15399 339565 48717 77 3 0x100092 kqread dhcpleased 10519 456521 48717 77 3 0x100092 kqread dhcpleased 48717 512288 1 0 3 0x80 kqread dhcpleased 67160 494487 0 0 3 0x14200 bored smr 76037 150139 0 0 3 0x14200 pgzero zerothread 92896 217374 0 0 3 0x14200 aiodoned aiodoned 19836 403044 0 0 3 0x14200 syncer update 45050 413419 0 0 3 0x14200 cleaner cleaner 40469 449263 0 0 3 0x14200 reaper reaper 75573 236590 0 0 3 0x14200 pgdaemon pagedaemon 92499 12350 0 0 3 0x14200 bored viomb 95077 503136 0 0 3 0x40014200 acpi0 acpi0 12664 89870 0 0 3 0x40014200 idle1 28890 142801 0 0 3 0x14200 bored softnet3 83171 455529 0 0 3 0x14200 bored softnet2 3668 428420 0 0 3 0x14200 bored softnet1 40507 338743 0 0 3 0x14200 bored softnet0 32319 485564 0 0 3 0x14200 bored systqmp 89297 17989 0 0 3 0x14200 bored systq 59052 2529 0 0 3 0x14200 tmoslp softclockmp 45723 357719 0 0 3 0x40014200 tmoslp softclock 39279 510146 0 0 3 0x40014200 idle0 1 369389 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 12790 (syz-executor) thread 0xffff80003239ccc8 (388634) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8352c480) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10179 11043K 11059K 166960K 11263 0 pcb 17 12K 12K 166960K 17 0 rtable 194 5K 6K 166960K 354 0 pf 27 16K 16K 166960K 31 0 ifaddr 34 6K 7K 166960K 44 0 ifgroup 42 1K 2K 166960K 50 0 counters 60 35K 36K 166960K 64 0 ioctlops 0 0K 2K 166960K 31 0 iov 0 0K 12K 166960K 10 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1365 86K 86K 166960K 1739 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 6 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1690 195K 286K 166960K 12468 0 file desc 19 66K 121K 166960K 360 0 sigio 2 0K 0K 166960K 5 0 proc 58 79K 115K 166960K 483 0 subproc 78 4K 6K 166960K 390 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 29 0 in_multi 77 5K 7K 166960K 103 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 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 379 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 226 56K 75K 166960K 4281 0 UVM aobj 9 2K 2K 166960K 10 0 pinsyscall 40 80K 108K 166960K 1368 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 13 0 NDP 9 0K 2K 166960K 27 0 temp 33 6818K 6883K 166960K 4794 0 kqueue 14 22K 26K 166960K 47 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 48 0 44 1 0 1 1 0 8 0 rtentry 112 114 0 24 4 0 4 4 0 8 0 unpcb 144 226 0 208 4 0 4 4 0 8 3 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 808 138 0 131 8 0 8 8 0 8 7 arp 120 19 0 5 1 0 1 1 0 8 0 ipq 40 4 0 1 1 0 1 1 0 8 0 ipqe 40 50 0 47 1 0 1 1 0 8 0 inpcb 336 410 0 396 13 3 10 13 0 8 8 nd6 136 26 0 6 1 0 1 1 0 8 0 kcovpl 48 30 0 24 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 457 0 89 29 0 29 29 0 8 3 art_table 32 458 0 89 4 0 4 4 0 8 0 art_node 16 113 0 31 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 1 1 0 1 1 0 8 0 semapl 112 3 0 0 1 0 1 1 0 8 0 shmpl 112 7 0 1 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1827 0 299 96 0 96 96 0 8 0 ffsino 272 1827 0 299 102 0 102 102 0 8 0 nchpl 144 2193 0 496 63 0 63 63 0 8 0 uvmvnodes 80 2226 0 0 46 0 46 46 0 8 0 vnodes 216 2226 0 0 124 0 124 124 0 8 0 namei 1024 6979 0 6977 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 6641 0 6641 5 1 4 4 1 8 4 plimitpl 152 96 0 75 2 0 2 2 0 8 1 sigapl 424 592 0 542 7 0 7 7 0 8 0 futexpl 64 2047 0 2043 1 0 1 1 0 8 0 knotepl 120 552 0 0 17 0 17 17 0 8 0 kqueuepl 216 68 0 55 1 0 1 1 0 8 0 pipepl 320 184 0 157 3 0 3 3 0 8 0 fdescpl 496 573 0 542 7 1 6 6 0 8 0 filepl 152 3027 0 2811 16 0 16 16 0 8 5 lockfpl 104 49 0 47 1 0 1 1 0 8 0 lockfspl 48 22 0 20 1 0 1 1 0 8 0 sessionpl 144 47 0 33 1 0 1 1 0 8 0 pgrppl 48 80 0 59 1 0 1 1 0 8 0 ucredpl 104 423 0 406 1 0 1 1 0 8 0 zombiepl 144 542 0 542 1 0 1 1 0 8 1 processpl 1160 592 0 542 5 0 5 5 0 8 0 procpl 648 820 0 759 6 0 6 6 0 8 0 sosppl 168 2 0 2 1 0 1 1 0 8 1 sockpl 664 687 0 650 14 3 11 14 0 8 7 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 142 0 0 18 0 18 18 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 361 0 0 23 0 23 23 0 8 0 bufpl 280 2469 0 94 170 0 170 170 0 8 0 anonpl 24 195809 0 192763 56 0 56 56 0 185 27 amapchunkpl 152 14231 0 13730 26 0 26 26 0 158 2 amappl16 200 5980 0 5969 14 0 14 14 0 8 12 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 111 0 101 1 0 1 1 0 8 0 amappl13 176 12 0 12 1 1 0 1 0 8 0 amappl12 168 1177 0 1147 2 0 2 2 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 8 0 8 1 1 0 1 0 8 0 amappl9 144 134 0 134 1 1 0 1 0 8 0 amappl8 136 28 0 26 1 0 1 1 0 8 0 amappl7 128 100 0 89 1 0 1 1 0 8 0 amappl6 120 158 0 157 1 0 1 1 0 8 0 amappl5 112 137 0 128 1 0 1 1 0 8 0 amappl4 104 285 0 270 1 0 1 1 0 8 0 amappl3 96 2507 0 2410 3 0 3 3 0 8 0 amappl2 88 865 0 788 3 0 3 3 0 8 0 amappl1 80 8801 0 8291 14 0 14 14 0 8 0 amappl 88 3894 0 3720 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 9 0 1 1 0 1 1 0 8 0 uaddrrnd 24 573 0 542 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 573 0 542 1 0 1 1 0 8 0 vmmpekpl 168 6841 0 6795 3 0 3 3 0 8 0 vmmpepl 168 46710 0 44980 100 0 100 100 0 357 13 vmsppl 448 572 0 542 5 0 5 5 0 8 0 rwobjpl 56 21040 0 18001 44 0 44 44 0 8 0 pdppl 4096 1153 0 1084 113 38 75 95 0 8 6 pvpl 32 15544 0 0 128 2 126 127 0 265 0 pmappl 248 572 0 542 4 1 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 421 0 43 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83416ff0) 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(ffffffff8352c278) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8352c278) at __mp_lock+0x199 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff8352c278) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8352c278) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff80002a1a0190) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a1a0190) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x709c46ed88c0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff83416ff0) 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(ffffffff8352c278) at __mp_lock+0x199 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8352c278) at __mp_lock+0x199 sys/kern/kern_lock.c:144 softintr_dispatch(0) at softintr_dispatch+0x5b sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff8352c278) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:113 [inline] __mp_lock(ffffffff8352c278) at __mp_lock+0x192 sys/kern/kern_lock.c:144 syscall(ffff80002a1a0190) at syscall+0xad6 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a1a0190) at syscall+0xad6 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x709c46ed88c0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at unveil_add_vnode+0xda: movq %rax,0x8(%r14,%r13,1) unveil_add_vnode(ffff80003239ccc8,fffffd8072fe71d8) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff80003239ccc8,ffff80002a19aa48,ffff80002a19ab03) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff80003239ccc8,ffff80002a19ac30,ffff80002a19ab80) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80002a19ac30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a19ac30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb34ef56810, count: 10 ddb{1}> trace unveil_add_vnode(ffff80003239ccc8,fffffd8072fe71d8) at unveil_add_vnode+0xda sys/kern/kern_unveil.c:391 unveil_add(ffff80003239ccc8,ffff80002a19aa48,ffff80002a19ab03) at unveil_add+0x448 sys/kern/kern_unveil.c:494 sys_unveil(ffff80003239ccc8,ffff80002a19ac30,ffff80002a19ab80) at sys_unveil+0x60c sys/kern/vfs_syscalls.c:1020 syscall(ffff80002a19ac30) at syscall+0xaf8 mi_syscall sys/sys/syscall_mi.h:178 [inline] syscall(ffff80002a19ac30) at syscall+0xaf8 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb34ef56810, count: -5