uvm_fault(0xfffff6006ce8c030, 0xa00000074, 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 *517018 18451 32767 0x10 0 1 syz-executor 87115 73 32767 0x10 0 0 syz-executor amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 amap_chunk_get sys/uvm/uvm_amap.c:118 [inline] amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 sys/uvm/uvm_amap.c:1168 uvm_fault_check(ffff80003b7ac170,ffff80003b7ac1a8,ffff80003b7ac1e0,0) at uvm_fault_check+0x8d2 sys/uvm/uvm_fault.c:840 uvm_fault(fffff6006ce8c030,6b18d2e9000,0,1) at uvm_fault+0x106 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80003b7ac310,6b18d2e91d0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003b7ac310) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x784364926830, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xfffff6006ce8c030, 0xa00000074, 0, 1) -> e ddb{1}> show kasan No such command ddb{1}> trace amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 amap_chunk_get sys/uvm/uvm_amap.c:118 [inline] amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 sys/uvm/uvm_amap.c:1168 uvm_fault_check(ffff80003b7ac170,ffff80003b7ac1a8,ffff80003b7ac1e0,0) at uvm_fault_check+0x8d2 sys/uvm/uvm_fault.c:840 uvm_fault(fffff6006ce8c030,6b18d2e9000,0,1) at uvm_fault+0x106 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80003b7ac310,6b18d2e91d0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003b7ac310) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x784364926830, count: -6 ddb{1}> show registers rdi 0x11 rsi 0x20 rbp 0xffff80003b7abfc0 rbx 0 rdx 0 rcx 0 rax 0xffff800000c43cb0 r8 0xffffffff812eaee0 uvm_map_inentry_sp r9 0 r10 0 r11 0x47f902400ab84744 r12 0x14 r13 0 r14 0x20 r15 0xa00000064 rip 0xffffffff82852670 amap_lookups+0x1e0 cs 0x8 rflags 0x10202 __ALIGN_SIZE+0xf202 rsp 0xffff80003b7abf30 ss 0 amap_lookups+0x1e0: movl 0x10(%r15),%r14d ddb{1}> show proc PROC (syz-executor) tid=517018 pid=18451 tcnt=2 stat=onproc flags process=10 proc=0 runpri=74, usrpri=74, slppri=17, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c3d6558,0xffff800045fe67f8 process=0xffff80003c3cc9c0 user=0xffff80003b7a7000, vmspace=0xfffff6006ce8c030 estcpu=24, cpticks=5, pctcpu=0.3, user=3, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 85835 25002 46561 32767 2 0x10 0 syz-executor 32802 28231 61434 32767 2 0x10 0 syz-executor 32802 237691 61434 32767 3 0x10 0x4000080 ttyin syz-executor 32802 151468 61434 32767 3 0x10 0x4000080 ttyin syz-executor 13394 36875 16331 32767 2 0x10 0 syz-executor 13394 357833 16331 32767 3 0x10 0x4000080 fsleep syz-executor 13394 341966 16331 32767 3 0x10 0x4000080 fsleep syz-executor 13394 374915 16331 32767 3 0x10 0x4000080 fsleep syz-executor 31125 70382 74598 32767 2 0x10 0 syz-executor 31125 289055 74598 32767 3 0x10 0x4000080 fsleep syz-executor *18451 517018 75021 32767 7 0x10 0 syz-executor 18451 516756 75021 32767 3 0x10 0x4000080 fsleep syz-executor 65265 252375 69359 32767 3 0x10 0x80 nanoslp syz-executor 65265 374675 69359 32767 3 0x10 0x4000080 ttyin syz-executor 65265 219802 69359 32767 3 0x10 0x4000080 fsleep syz-executor 73 87115 53466 32767 7 0x10 0 syz-executor 46561 345095 28083 32767 2 0x10 0xc80 syz-executor 74598 441657 77425 32767 2 0x10 0xc80 syz-executor 61434 82706 90545 32767 2 0x10 0xc80 syz-executor 75021 506293 99818 32767 2 0x10 0xc80 syz-executor 69359 227392 14619 32767 2 0x10 0xc80 syz-executor 16331 250277 54957 32767 3 0x10 0x80 nanoslp syz-executor 28083 195636 27446 0 3 0x2 0x80 wait syz-executor 90545 143846 27446 0 3 0x2 0x80 wait syz-executor 99818 484408 27446 0 3 0x2 0x80 wait syz-executor 77425 372441 27446 0 3 0x2 0x80 wait syz-executor 14619 136597 27446 0 3 0x2 0x80 wait syz-executor 54957 229332 27446 0 3 0x2 0x80 wait syz-executor 53466 303766 27446 0 3 0x2 0x80 wait syz-executor 27446 328921 78873 0 3 0x2 0x80 nanoslp syz-executor 78873 488293 95356 0 3 0x100002 0x88 sigsusp ksh 95356 467096 81148 0 3 0x10 0x88 kqread sshd-session 81148 220507 75961 0 3 0x12 0x80 kqread sshd-session 52770 111955 1 0 3 0x100003 0x80 ttyin getty 75961 6514 1 0 3 0 0x88 kqread sshd 42445 17262 7401 73 3 0x1100010 0x80 kqread syslogd 7401 193820 1 0 3 0x100002 0x80 sbwait syslogd 59787 111732 1 0 3 0x100000 0x80 kqread resolvd 82562 461143 90420 77 3 0x100012 0x80 kqread dhcpleased 18951 191664 90420 77 3 0x100012 0x80 kqread dhcpleased 90420 374107 1 0 3 0 0x80 kqread dhcpleased 92705 26368 0 0 3 0x14000 0x200 bored smr 40415 481637 0 0 2 0x14000 0x200 zerothread 91074 284240 0 0 3 0x14000 0x200 aiodoned aiodoned 69215 368517 0 0 3 0x14000 0x200 syncer update 61050 15208 0 0 3 0x14000 0x200 cleaner cleaner 89005 241038 0 0 3 0x14000 0x200 reaper reaper 19046 37132 0 0 3 0x14000 0x200 pgdaemon pagedaemon 40876 63319 0 0 3 0x14000 0x200 bored viomb 28203 166402 0 0 3 0x14000 0x40000200 acpi0 acpi0 64614 437993 0 0 3 0x14000 0x40000200 idle1 2132 60670 0 0 3 0x14000 0x200 bored softnet1 93687 456053 0 0 3 0x14000 0x200 bored softnet0 55858 22585 0 0 3 0x14000 0x200 bored systqmp 69205 12310 0 0 3 0x14000 0x200 bored systq 69097 46508 0 0 3 0x14000 0x200 tmoslp softclockmp 53261 390764 0 0 3 0x14000 0x40000200 tmoslp softclock 20255 380782 0 0 3 0x14000 0x40000200 idle0 1 508307 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 18451 (syz-executor) thread 0xffff800045fe62b8 (517018) shared rwlock amaplk r = 0 (0xfffff6006e3e4a30) #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 (0xfffff6006ce8c130) #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 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11051 12016K 12034K 166960K 12145 0 pcb 17 12K 12K 166960K 17 0 rtable 215 6K 7K 166960K 363 0 pf 29 16K 16K 166960K 31 0 ifaddr 38 6K 7K 166960K 44 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 37K 166960K 70 0 ioctlops 0 0K 2K 166960K 30 0 iov 0 0K 8K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1392 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 16 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 23 85K 125K 166960K 236 0 sigio 0 0K 0K 166960K 2 0 proc 58 99K 163K 166960K 508 0 subproc 63 3K 4K 166960K 108 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 15 0 in_multi 88 5K 6K 166960K 104 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 8 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 386 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 229 143K 162K 166960K 3702 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 44 88K 110K 166960K 1349 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 10 0K 2K 166960K 27 0 temp 30 9114K 9120K 166960K 4011 0 kqueue 14 22K 25K 166960K 45 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 28 0 0 1 0 1 1 0 8 0 rtpcb 120 81 0 78 2 0 2 2 0 8 1 rtentry 176 111 0 12 5 0 5 5 0 8 0 unpcb 144 81 0 62 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 40 0 35 1 0 1 1 0 8 0 arp 136 18 0 2 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 144 0 132 2 0 2 2 0 8 1 nd6 152 24 0 3 1 0 1 1 0 8 0 kcovpl 48 12 0 5 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 44 29 0 29 29 0 8 0 art_table 40 453 0 44 5 0 5 5 0 8 0 art_node 32 111 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semapl 72 12 0 4 1 0 1 1 0 8 0 shmpl 112 2 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1665 0 197 92 0 92 92 0 8 0 ffsino 296 1665 0 197 114 0 114 114 0 8 0 nchpl 144 1964 0 269 63 0 63 63 0 8 0 vnodes 216 1782 0 0 99 0 99 99 0 8 0 namei 1024 6079 0 6079 2 0 2 2 0 8 2 percpumem 16 51 0 1 1 0 1 1 0 8 0 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scxspl 216 7096 0 7096 10 2 8 8 1 8 8 plimitpl 152 59 0 37 2 0 2 2 0 8 1 sigapl 424 530 0 479 7 0 7 7 0 8 0 knotepl 120 117 0 0 4 0 4 4 0 8 0 kqueuepl 224 43 0 33 1 0 1 1 0 8 0 pipepl 344 144 0 115 3 0 3 3 0 8 0 fdescpl 528 514 0 479 4 0 4 4 0 8 0 filepl 160 1989 0 1771 11 0 11 11 0 8 1 lockfpl 104 29 0 25 1 0 1 1 0 8 0 lockfspl 48 12 0 8 1 0 1 1 0 8 0 sessionpl 144 38 0 22 1 0 1 1 0 8 0 pgrppl 48 55 0 32 1 0 1 1 0 8 0 ucredpl 104 257 0 239 1 0 1 1 0 8 0 zombiepl 144 480 0 479 1 0 1 1 0 8 0 processpl 1232 530 0 479 5 0 5 5 0 8 0 procpl 664 667 0 607 6 0 6 6 0 8 0 sockpl 752 308 0 273 7 0 7 7 0 8 3 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 118 0 0 15 0 15 15 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mextrefs 64 19 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 238 0 0 15 0 15 15 0 8 0 bufpl 272 2457 0 102 157 0 157 157 0 8 0 anonpl 32 5356 0 0 45 1 44 44 0 247 0 amapchunkpl 152 10467 0 9963 28 0 28 28 0 158 7 amappl16 200 1558 0 1539 5 1 4 5 0 8 2 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 432 0 431 1 0 1 1 0 8 0 amappl13 176 168 0 158 1 0 1 1 0 8 0 amappl12 168 750 0 717 2 0 2 2 0 8 0 amappl11 160 12 0 12 1 1 0 1 0 8 0 amappl10 152 91 0 81 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 1 0 1 0 8 0 amappl8 136 98 0 97 1 0 1 1 0 8 0 amappl7 128 143 0 132 1 0 1 1 0 8 0 amappl6 120 146 0 145 1 0 1 1 0 8 0 amappl5 112 98 0 91 1 0 1 1 0 8 0 amappl4 104 264 0 249 1 0 1 1 0 8 0 amappl3 96 1937 0 1818 5 1 4 4 0 8 0 amappl2 88 538 0 487 2 0 2 2 0 8 0 amappl1 80 10630 0 10067 14 0 14 14 0 8 0 amappl 88 2995 0 2827 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 514 0 479 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 514 0 479 1 0 1 1 0 8 0 vmmpekpl 168 5994 0 5945 3 0 3 3 0 8 0 vmmpepl 168 41587 0 39627 93 0 93 93 0 357 4 vmsppl 488 513 0 479 7 1 6 6 0 8 0 rwobjpl 80 14683 0 13777 22 0 22 22 0 8 1 pdppl 4096 1035 0 958 115 34 81 97 0 8 4 pvpl 32 11541 0 0 94 0 94 94 0 265 0 pmappl 256 513 0 479 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 443 0 37 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83941ff0) 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(ffffffff83a1ec80) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a1ec80) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff80003c3e7f30) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c3e7f30) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x705cccfdb3a0, count: 9 ddb{0}> trace x86_ipi_db(ffffffff83941ff0) 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(ffffffff83a1ec80) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a1ec80) at __mp_lock+0x192 sys/kern/kern_lock.c:173 syscall(ffff80003c3e7f30) at syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] syscall(ffff80003c3e7f30) at syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x705cccfdb3a0, count: -6 ddb{0}> machine ddbcpu 1 Stopped at amap_lookups+0x1e0: movl 0x10(%r15),%r14d amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 amap_chunk_get sys/uvm/uvm_amap.c:118 [inline] amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 sys/uvm/uvm_amap.c:1168 uvm_fault_check(ffff80003b7ac170,ffff80003b7ac1a8,ffff80003b7ac1e0,0) at uvm_fault_check+0x8d2 sys/uvm/uvm_fault.c:840 uvm_fault(fffff6006ce8c030,6b18d2e9000,0,1) at uvm_fault+0x106 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80003b7ac310,6b18d2e91d0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003b7ac310) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x784364926830, count: 9 ddb{1}> trace amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 amap_chunk_get sys/uvm/uvm_amap.c:118 [inline] amap_lookups(fffff6006ce75090,c000,ffff80003b7ac070,8) at amap_lookups+0x1e0 sys/uvm/uvm_amap.c:1168 uvm_fault_check(ffff80003b7ac170,ffff80003b7ac1a8,ffff80003b7ac1e0,0) at uvm_fault_check+0x8d2 sys/uvm/uvm_fault.c:840 uvm_fault(fffff6006ce8c030,6b18d2e9000,0,1) at uvm_fault+0x106 sys/uvm/uvm_fault.c:627 upageflttrap(ffff80003b7ac310,6b18d2e91d0) at upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 usertrap(ffff80003b7ac310) at usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x784364926830, count: -6