uvm_fault(0xfffff2000f90d5e8, 0x798e2645, 0, 1) -> e kernel: page fault trap, code=0 Stopped at amap_lookups+0x1e0: movl 0x10(%r15),%r14d TID PID UID PRFLAGS PFLAGS CPU COMMAND *193441 45423 32767 0x10 0 0 syz-executor 325542 22017 32767 0x10 0 1 syz-executor amap_lookups(fffff2006c751320,1000,ffff80003c3cfdf0,8) at amap_lookups+0x1e0 amap_chunk_get sys/uvm/uvm_amap.c:118 [inline] amap_lookups(fffff2006c751320,1000,ffff80003c3cfdf0,8) at amap_lookups+0x1e0 sys/uvm/uvm_amap.c:1168 uvm_fault_check(ffff80003c3cfef0,ffff80003c3cff28,ffff80003c3cff60,0) at uvm_fault_check+0x8d2 sys/uvm/uvm_fault.c:840 uvm_fault(fffff2000f90d5e8,cc7b8135000,0,1) at uvm_fault+0x106 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80003c3d0090,cc7b8135f50) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c3d0090) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f21869fd690, count: 9 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(0xfffff2000f90d5e8, 0x798e2645, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace amap_lookups(fffff2006c751320,1000,ffff80003c3cfdf0,8) at amap_lookups+0x1e0 amap_chunk_get sys/uvm/uvm_amap.c:118 [inline] amap_lookups(fffff2006c751320,1000,ffff80003c3cfdf0,8) at amap_lookups+0x1e0 sys/uvm/uvm_amap.c:1168 uvm_fault_check(ffff80003c3cfef0,ffff80003c3cff28,ffff80003c3cff60,0) at uvm_fault_check+0x8d2 sys/uvm/uvm_fault.c:840 uvm_fault(fffff2000f90d5e8,cc7b8135000,0,1) at uvm_fault+0x106 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80003c3d0090,cc7b8135f50) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c3d0090) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f21869fd690, count: -6 ddb{0}> show registers rdi 0x11 rsi 0x20 rbp 0xffff80003c3cfd40 rbx 0 rdx 0 rcx 0 rax 0xffff800000c433b0 r8 0xffffffff82af1fb0 uvm_map_inentry_sp r9 0 r10 0 r11 0x88efeb37ee9f91e0 r12 0x9 r13 0 r14 0x20 r15 0x798e2635 rip 0xffffffff8172e060 amap_lookups+0x1e0 cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80003c3cfcb0 ss 0 amap_lookups+0x1e0: movl 0x10(%r15),%r14d ddb{0}> show proc PROC (syz-executor) tid=193441 pid=45423 tcnt=1 stat=onproc flags process=10 proc=0 runpri=50, usrpri=50, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045fe62b8,0xffffffff839ea500 process=0xffff800045fe26a0 user=0xffff80003c3cb000, vmspace=0xfffff2000f90d5e8 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND *45423 193441 22251 32767 7 0x10 0 syz-executor 62068 283062 22017 32767 2 0x10 0 syz-executor 62068 26246 22017 32767 3 0x10 0x4000080 ttyout syz-executor 62068 140887 22017 32767 3 0x10 0x4000080 fsleep syz-executor 62068 318614 22017 32767 3 0x10 0x4000080 fsleep syz-executor 54461 346164 89346 32767 2 0x4000010 0xc80 syz-executor 54461 412208 89346 32767 3 0x4000010 0x4000080 ttyin syz-executor 54461 210600 89346 32767 3 0x4000010 0x4000080 fsleep syz-executor 43449 206515 39048 32767 2 0x10 0 syz-executor 43449 400382 39048 32767 3 0x10 0x4000080 fsleep syz-executor 23731 278435 46842 32767 2 0x10 0 syz-executor 23731 264608 46842 32767 3 0x10 0x4000080 fsleep syz-executor 97892 174829 1540 32767 2 0x10 0xc80 syz-executor 97892 523154 1540 32767 3 0x10 0x4000080 piperd syz-executor 97892 35508 1540 32767 3 0x10 0x4000080 fsleep syz-executor 44167 63398 78740 32767 2 0x10 0 syz-executor 22251 370230 46299 32767 2 0x10 0 syz-executor 64781 63423 3050 32767 2 0x10 0xc80 syz-executor 46842 476487 84831 32767 2 0x10 0xc80 syz-executor 22017 325542 37008 32767 7 0x10 0 syz-executor 39048 134134 62091 32767 2 0x10 0xc80 syz-executor 1540 193014 42785 32767 2 0x10 0xc80 syz-executor 89346 123289 56457 32767 2 0x10 0xc80 syz-executor 78740 96469 86209 0 3 0x2 0x80 wait syz-executor 46299 415968 86209 0 3 0x2 0x80 wait syz-executor 3050 66739 86209 0 3 0x2 0x80 wait syz-executor 62091 481908 86209 0 3 0x2 0x80 wait syz-executor 56457 315346 86209 0 3 0x2 0x80 wait syz-executor 42785 166398 86209 0 3 0x2 0x80 wait syz-executor 84831 383585 86209 0 3 0x2 0x80 wait syz-executor 37008 159697 86209 0 3 0x2 0x80 wait syz-executor 86209 279819 86293 0 2 0x2 0x80 syz-executor 86293 92560 15448 0 3 0x100002 0x88 sigsusp ksh 15448 482600 49901 0 3 0x10 0x88 kqread sshd-session 49901 208839 77316 0 3 0x12 0x80 kqread sshd-session 8967 187911 1 0 3 0x100003 0x80 ttyin getty 77316 329551 1 0 3 0 0x88 kqread sshd 83315 24706 2814 73 3 0x1100010 0x80 kqread syslogd 2814 193270 1 0 3 0x100002 0x80 sbwait syslogd 23899 157697 1 0 3 0x100000 0x80 kqread resolvd 77395 25451 26711 77 3 0x100012 0x80 kqread dhcpleased 22310 180858 26711 77 3 0x100012 0x80 kqread dhcpleased 26711 324367 1 0 3 0 0x80 kqread dhcpleased 50012 499453 0 0 3 0x14000 0x200 bored smr 55624 32108 0 0 2 0x14000 0x200 zerothread 50453 123742 0 0 3 0x14000 0x200 aiodoned aiodoned 41846 139960 0 0 3 0x14000 0x200 syncer update 11417 356388 0 0 3 0x14000 0x200 cleaner cleaner 56469 197582 0 0 3 0x14000 0x200 reaper reaper 94963 55615 0 0 3 0x14000 0x200 pgdaemon pagedaemon 43970 74121 0 0 3 0x14000 0x200 bored viomb 56012 233399 0 0 3 0x14000 0x40000200 acpi0 acpi0 46994 65070 0 0 3 0x14000 0x40000200 idle1 12584 163824 0 0 3 0x14000 0x200 bored softnet1 11740 78478 0 0 3 0x14000 0x200 bored softnet0 68462 91370 0 0 3 0x14000 0x200 bored systqmp 28436 450691 0 0 3 0x14000 0x200 bored systq 86159 436596 0 0 3 0x14000 0x200 tmoslp softclockmp 69847 15393 0 0 3 0x14000 0x40000200 tmoslp softclock 3008 408923 0 0 3 0x14000 0x40000200 idle0 1 500309 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks Process 45423 (syz-executor) thread 0xffff800045fe7a10 (193441) shared rwlock amaplk r = 0 (0xfffff2006e20e810) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 uvm_fault_check+0x8a9 sys/uvm/uvm_fault.c:834 #3 uvm_fault+0x106 sys/uvm/uvm_fault.c:627 #4 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #5 usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 #6 recall_trap+0x8 shared rwlock vmmaplk r = 0 (0xfffff2000f90d6e8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1880 #3 uvm_fault_check+0x4f sys/uvm/uvm_fault.c:693 #4 uvm_fault+0x106 sys/uvm/uvm_fault.c:627 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #6 usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 #7 recall_trap+0x8 Process 44167 (syz-executor) thread 0xffff800045fe67e8 (63398) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83add8c0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] #1 syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11077 12022K 12034K 166960K 12170 0 pcb 17 12K 12K 166960K 17 0 rtable 239 6K 7K 166960K 352 0 pf 31 16K 16K 166960K 31 0 ifaddr 42 7K 7K 166960K 44 0 ifgroup 50 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 70 37K 37K 166960K 70 0 ioctlops 0 0K 2K 166960K 34 0 iov 1 1K 12K 166960K 9 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1356 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 68 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 25 93K 125K 166960K 202 0 sigio 0 0K 0K 166960K 1 0 proc 58 99K 147K 166960K 516 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 16 0 in_multi 99 7K 7K 166960K 103 0 ether_multi 1 0K 0K 166960K 2 0 mrt 1 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 223 996K 996K 166960K 223 0 exec 0 0K 1K 166960K 366 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 241 159K 183K 166960K 3496 0 UVM aobj 5 2K 2K 166960K 7 0 pinsyscall 46 92K 116K 166960K 1302 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 4 0 NDP 11 0K 2K 166960K 27 0 temp 36 9114K 9130K 166960K 3821 0 kqueue 16 22K 26K 166960K 39 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 28 0 0 1 0 1 1 0 8 0 rtpcb 120 36 0 33 1 0 1 1 0 8 0 rtentry 176 112 0 1 6 0 6 6 0 8 0 unpcb 144 86 0 70 1 0 1 1 0 8 0 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 34 0 27 1 0 1 1 0 8 0 arp 136 18 0 0 1 0 1 1 0 8 0 ipq 40 2 0 0 1 0 1 1 0 8 0 ipqe 40 3 0 1 1 0 1 1 0 8 0 inpcb 328 120 0 107 2 0 2 2 0 8 0 nd6 152 25 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 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 0 30 0 30 30 0 8 0 art_table 40 468 0 0 5 0 5 5 0 8 0 art_node 32 112 0 11 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 72 1 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 2 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1632 0 173 92 0 92 92 0 8 0 ffsino 296 1632 0 173 113 0 113 113 0 8 0 nchpl 144 1899 0 215 63 0 63 63 0 8 0 vnodes 216 1713 0 0 96 0 96 96 0 8 0 namei 1024 5996 0 5996 1 0 1 1 0 8 1 percpumem 16 51 0 0 1 0 1 1 0 8 0 kstatmem 264 25 0 0 2 0 2 2 0 8 0 scxspl 216 6541 0 6541 4 3 1 3 1 8 1 plimitpl 152 122 0 95 2 0 2 2 0 8 0 sigapl 424 497 0 444 7 0 7 7 0 8 0 knotepl 120 314 0 0 10 0 10 10 0 8 0 kqueuepl 224 41 0 31 1 0 1 1 0 8 0 pipepl 344 134 0 105 3 0 3 3 0 8 0 fdescpl 528 481 0 444 4 0 4 4 0 8 0 filepl 160 2127 0 1901 12 0 12 12 0 8 2 lockfpl 104 20 0 18 1 0 1 1 0 8 0 lockfspl 48 9 0 7 1 0 1 1 0 8 0 sessionpl 144 32 0 16 1 0 1 1 0 8 0 pgrppl 48 42 0 18 1 0 1 1 0 8 0 ucredpl 104 362 0 343 1 0 1 1 0 8 0 zombiepl 144 445 0 444 1 0 1 1 0 8 0 processpl 1232 497 0 444 5 0 5 5 0 8 0 procpl 664 608 0 546 6 0 6 6 0 8 0 sockpl 752 242 0 210 5 0 5 5 0 8 1 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 112 0 0 14 0 14 14 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mextrefs 64 15 0 0 1 0 1 1 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 266 0 0 17 0 17 17 0 8 0 bufpl 272 2357 0 102 151 0 151 151 0 8 0 anonpl 32 5585 0 0 46 0 46 46 0 247 0 amapchunkpl 152 9917 0 9385 28 0 28 28 0 158 5 amappl16 200 1750 0 1729 5 1 4 5 0 8 2 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 409 0 408 1 0 1 1 0 8 0 amappl13 176 120 0 110 1 0 1 1 0 8 0 amappl12 168 725 0 690 2 0 2 2 0 8 0 amappl11 160 5 0 5 2 2 0 1 0 8 0 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 269 0 269 1 1 0 1 0 8 0 amappl8 136 184 0 182 1 0 1 1 0 8 0 amappl7 128 157 0 146 1 0 1 1 0 8 0 amappl6 120 148 0 147 1 0 1 1 0 8 0 amappl5 112 98 0 91 1 0 1 1 0 8 0 amappl4 104 279 0 263 1 0 1 1 0 8 0 amappl3 96 1774 0 1650 5 1 4 4 0 8 0 amappl2 88 543 0 491 2 0 2 2 0 8 0 amappl1 80 11752 0 11166 17 0 17 17 0 8 2 amappl 88 2786 0 2608 5 0 5 5 0 92 0 uvmvnodes 80 95 0 0 2 0 2 2 0 8 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 2 1 0 1 1 0 8 0 uaddrrnd 24 481 0 444 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 481 0 444 1 0 1 1 0 8 0 vmmpekpl 168 6352 0 6318 2 0 2 2 0 8 0 vmmpepl 168 42101 0 40058 105 0 105 105 0 357 9 vmsppl 488 480 0 444 7 1 6 6 0 8 0 rwobjpl 80 15862 0 14920 25 0 25 25 0 8 1 pdppl 4096 969 0 888 107 20 87 97 0 8 6 pvpl 32 13151 0 0 107 0 107 107 0 265 0 pmappl 256 480 0 444 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 430 0 23 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace amap_lookups(fffff2006c751320,1000,ffff80003c3cfdf0,8) at amap_lookups+0x1e0 amap_chunk_get sys/uvm/uvm_amap.c:118 [inline] amap_lookups(fffff2006c751320,1000,ffff80003c3cfdf0,8) at amap_lookups+0x1e0 sys/uvm/uvm_amap.c:1168 uvm_fault_check(ffff80003c3cfef0,ffff80003c3cff28,ffff80003c3cff60,0) at uvm_fault_check+0x8d2 sys/uvm/uvm_fault.c:840 uvm_fault(fffff2000f90d5e8,cc7b8135000,0,1) at uvm_fault+0x106 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80003c3d0090,cc7b8135f50) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003c3d0090) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f21869fd690, count: -6 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 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(ffffffff83add0c0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83add0c0) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff800033f882f0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff800033f882f0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x769605e06520, count: 9 ddb{1}> trace x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 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(ffffffff83add0c0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83add0c0) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff800033f882f0) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff800033f882f0) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x769605e06520, count: -6