panic: amap_lookups: offset out of range Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *389437 5792 0 0x2 0x4000000 0 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224bb71) at panic+0x15c sys/kern/subr_prf.c:207 amap_lookups(fffffd805e972720,1000,ffff80001d7e2600,8) at amap_lookups+0x2bd sys/uvm/uvm_amap.c:1053 uvm_fault(fffffd806bc09770,2b54e4000,1,2) at uvm_fault+0x332 sys/uvm/uvm_fault.c:628 pageflttrap(ffff80001d7e2910,1) at pageflttrap+0x156 sys/arch/amd64/amd64/trap.c:221 usertrap(ffff80001d7e2910) at usertrap+0x1fb sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc0026fd898, count: 8 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic amap_lookups: offset out of range ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224bb71) at panic+0x15c sys/kern/subr_prf.c:207 amap_lookups(fffffd805e972720,1000,ffff80001d7e2600,8) at amap_lookups+0x2bd sys/uvm/uvm_amap.c:1053 uvm_fault(fffffd806bc09770,2b54e4000,1,2) at uvm_fault+0x332 sys/uvm/uvm_fault.c:628 pageflttrap(ffff80001d7e2910,1) at pageflttrap+0x156 sys/arch/amd64/amd64/trap.c:221 usertrap(ffff80001d7e2910) at usertrap+0x1fb sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc0026fd898, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d7e24b0 rbx 0xffff80001d7e2560 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d7e2470 r9 0x1 r10 0 r11 0xd7a28c5dc7ecd595 r12 0x3000000008 r13 0xffff80001d7e24c0 r14 0x100 r15 0x1 rip 0xffffffff814f4a08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d7e24a0 ss 0 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-fuzzer) pid=389437 stat=onproc flags process=2 proc=4000000 pri=71, usrpri=71, nice=20 forw=0xffffffffffffffff, list=0xffff80001d73a5f8,0xffff80001d7394f8 process=0xffff8000ffff8018 user=0xffff80001d7dd000, vmspace=0xfffffd806bc09770 estcpu=21, cpticks=0, pctcpu=0.8 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 3387 153435 5792 0 2 0x2 syz-executor.0 91918 319007 65536 0 3 0x80 nanosleep syz-executor.1 91918 340892 65536 0 3 0x4000080 netcon syz-executor.1 99275 363882 0 0 3 0x14200 bored sosplice 65536 166428 5792 0 3 0x82 nanosleep syz-executor.1 5792 284099 72576 0 3 0x82 thrsleep syz-fuzzer 5792 471643 72576 0 2 0x4000002 syz-fuzzer 5792 223661 72576 0 3 0x4000082 thrsleep syz-fuzzer 5792 145078 72576 0 3 0x4000082 thrsleep syz-fuzzer 5792 330422 72576 0 3 0x4000082 thrsleep syz-fuzzer 5792 291188 72576 0 3 0x4000082 thrsleep syz-fuzzer 5792 91195 72576 0 3 0x4000082 thrsleep syz-fuzzer * 5792 389437 72576 0 7 0x4000002 syz-fuzzer 72576 372760 7998 0 3 0x10008a pause ksh 7998 252830 35744 0 3 0x92 select sshd 12929 56120 1 0 3 0x100083 ttyin getty 35744 59548 1 0 3 0x80 select sshd 99592 369862 57070 73 3 0x100090 kqread syslogd 57070 400047 1 0 3 0x100082 netio syslogd 82146 106714 1 77 3 0x100090 poll dhclient 44200 45135 1 0 3 0x80 poll dhclient 35684 155484 0 0 3 0x14200 bored smr 18059 462290 0 0 2 0x14200 zerothread 23996 106421 0 0 3 0x14200 aiodoned aiodoned 40246 233297 0 0 3 0x14200 syncer update 63784 491809 0 0 3 0x14200 cleaner cleaner 56948 47521 0 0 3 0x14200 reaper reaper 35700 468075 0 0 3 0x14200 pgdaemon pagedaemon 51520 319222 0 0 3 0x14200 bored crynlk 13769 503332 0 0 3 0x14200 bored crypto 67903 197521 0 0 3 0x40014200 acpi0 acpi0 62939 243871 0 0 3 0x14200 bored softnet 87144 481338 0 0 3 0x14200 bored systqmp 67081 239055 0 0 3 0x14200 bored systq 16636 4917 0 0 3 0x40014200 bored softclock 62625 170974 0 0 3 0x40014200 idle0 1 381606 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9485 6338K 6520K 78643K 10693 0 pcb 13 8K 8K 78643K 34 0 rtable 99 2K 3K 78643K 272 0 ifaddr 61 12K 12K 78643K 93 0 counters 21 16K 16K 78643K 25 0 ioctlops 0 0K 2K 78643K 30 0 iov 0 0K 12K 78643K 36 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1293 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 24 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1808 195K 288K 78643K 12860 0 file desc 5 13K 25K 78643K 162 0 proc 49 38K 63K 78643K 424 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 11 0 in_multi 36 2K 2K 78643K 62 0 ether_multi 1 0K 0K 78643K 3 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 204 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 111 22K 24K 78643K 1239 0 UVM aobj 5 2K 2K 78643K 7 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 9 0 NDP 12 0K 0K 78643K 21 0 temp 88 3033K 3097K 78643K 6264 0 kqueue 3 4K 8K 78643K 5 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 60 0 19 2 0 2 2 0 8 0 unpcb 120 129 0 121 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 605 0 605 1 1 0 1 0 8 0 tcpcb 544 54 0 49 1 0 1 1 0 8 0 inpcb 280 141 0 133 1 0 1 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 257 0 84 12 0 12 12 0 8 1 art_table 32 258 0 84 2 0 2 2 0 8 0 art_node 16 59 0 21 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 0 1 0 1 1 0 8 0 semupl 112 5 0 5 1 0 1 1 0 8 1 semapl 112 22 0 12 1 0 1 1 0 8 0 shmpl 112 5 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1649 0 251 88 0 88 88 0 8 0 ffsino 240 1649 0 251 83 0 83 83 0 8 0 nchpl 144 2055 0 468 60 0 60 60 0 8 0 uvmvnodes 72 1734 0 0 32 0 32 32 0 8 0 vnodes 208 1734 0 0 92 0 92 92 0 8 0 namei 1024 5446 0 5446 1 0 1 1 0 8 1 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 528 5 0 4 1 0 1 1 0 8 0 scxspl 192 5724 0 5724 1 0 1 1 0 8 1 plimitpl 152 21 0 14 1 0 1 1 0 8 0 sigapl 424 346 0 317 4 0 4 4 0 8 0 futexpl 56 2672 0 2672 1 0 1 1 0 8 1 knotepl 112 75 0 56 1 0 1 1 0 8 0 kqueuepl 144 34 0 32 1 0 1 1 0 8 0 pipelkpl 16 92 0 82 1 0 1 1 0 8 0 pipepl 120 184 0 165 1 0 1 1 0 8 0 fdescpl 432 331 0 317 2 0 2 2 0 8 0 filepl 120 1947 0 1850 4 0 4 4 0 8 1 lockfpl 104 26 0 25 1 0 1 1 0 8 0 lockfspl 48 11 0 10 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 20 0 10 1 0 1 1 0 8 0 ucredpl 96 125 0 118 1 0 1 1 0 8 0 zombiepl 144 317 0 317 1 0 1 1 0 8 1 processpl 920 346 0 317 4 0 4 4 0 8 0 procpl 624 495 0 458 4 0 4 4 0 8 0 sosppl 128 1 0 1 1 0 1 1 0 8 1 sockpl 400 302 0 284 5 0 5 5 0 8 3 mcl64k 65536 13 0 13 1 0 1 1 0 8 1 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 5 0 5 1 0 1 1 0 8 1 mcl8k 8192 1 0 1 1 0 1 1 0 8 1 mcl4k 4096 13 0 13 2 1 1 1 0 8 1 mcl2k2 2112 1 0 1 1 0 1 1 0 8 1 mcl2k 2048 61684 0 61629 18 6 12 16 0 8 4 mtagpl 80 7 0 6 2 1 1 1 0 8 0 mbufpl 256 99099 0 98958 10 0 10 10 0 8 0 bufpl 280 3762 0 125 260 0 260 260 0 8 0 anonpl 16 46205 0 35758 72 2 70 70 0 107 13 amapchunkpl 152 1553 0 1429 9 2 7 8 0 158 2 amappl16 192 1597 0 851 48 1 47 48 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 27 0 20 1 0 1 1 0 8 0 amappl13 168 30 0 28 1 0 1 1 0 8 0 amappl12 160 17 0 14 1 0 1 1 0 8 0 amappl11 152 109 0 98 1 0 1 1 0 8 0 amappl10 144 63 0 58 1 0 1 1 0 8 0 amappl9 136 344 0 343 1 0 1 1 0 8 0 amappl8 128 336 0 296 2 0 2 2 0 8 0 amappl7 120 162 0 149 1 0 1 1 0 8 0 amappl6 112 87 0 82 1 0 1 1 0 8 0 amappl5 104 259 0 248 1 0 1 1 0 8 0 amappl4 96 498 0 469 1 0 1 1 0 8 0 amappl3 88 108 0 102 1 0 1 1 0 8 0 amappl2 80 1740 0 1675 2 0 2 2 0 8 0 amappl1 72 15860 0 15437 23 13 10 17 0 8 0 amappl 80 737 0 698 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 6 0 2 1 0 1 1 0 8 0 uaddrrnd 24 336 0 321 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 336 0 321 1 0 1 1 0 8 0 vmmpekpl 168 6348 0 6318 2 0 2 2 0 8 0 vmmpepl 168 47415 0 45573 120 7 113 113 0 357 31 vmsppl 272 335 0 321 2 0 2 2 0 8 1 pdppl 4096 678 0 643 6 1 5 6 0 8 0 pvpl 32 151985 0 139088 168 0 168 168 0 265 36 pmappl 200 335 0 321 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 241 0 10 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224bb71) at panic+0x15c sys/kern/subr_prf.c:207 amap_lookups(fffffd805e972720,1000,ffff80001d7e2600,8) at amap_lookups+0x2bd sys/uvm/uvm_amap.c:1053 uvm_fault(fffffd806bc09770,2b54e4000,1,2) at uvm_fault+0x332 sys/uvm/uvm_fault.c:628 pageflttrap(ffff80001d7e2910,1) at pageflttrap+0x156 sys/arch/amd64/amd64/trap.c:221 usertrap(ffff80001d7e2910) at usertrap+0x1fb sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc0026fd898, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224bb71) at panic+0x15c sys/kern/subr_prf.c:207 amap_lookups(fffffd805e972720,1000,ffff80001d7e2600,8) at amap_lookups+0x2bd sys/uvm/uvm_amap.c:1053 uvm_fault(fffffd806bc09770,2b54e4000,1,2) at uvm_fault+0x332 sys/uvm/uvm_fault.c:628 pageflttrap(ffff80001d7e2910,1) at pageflttrap+0x156 sys/arch/amd64/amd64/trap.c:221 usertrap(ffff80001d7e2910) at usertrap+0x1fb sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0xc0026fd898, count: -7