panic: amap_wipeout: corrupt amap Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *353618 22263 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82205b00) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd8058115000) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d726c80,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586 uvm_map_teardown(fffffd806bc0a000) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2759 uvmspace_free(fffffd806bc0a000) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff8000ffff9210) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d6e25f0) at reaper+0x15c sys/kern/kern_exit.c:456 end trace frame: 0x0, count: 7 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_wipeout: corrupt amap ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82205b00) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd8058115000) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d726c80,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586 uvm_map_teardown(fffffd806bc0a000) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2759 uvmspace_free(fffffd806bc0a000) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646 uvm_exit(ffff8000ffff9210) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d6e25f0) at reaper+0x15c sys/kern/kern_exit.c:456 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d726b00 rbx 0xffff80001d726bb0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d726ac0 r9 0x1 r10 0 r11 0x124ab952aac249bb r12 0x3000000008 r13 0xffff80001d726b10 r14 0x100 r15 0x1 rip 0xffffffff818fb568 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d726af0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=353618 stat=onproc flags process=14000 proc=200 pri=4, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d6e2110,0xffff80001d6e2870 process=0xffff8000ffffc738 user=0xffff80001d721000, vmspace=0xffffffff8259f718 estcpu=0, cpticks=4, pctcpu=0.0 user=0, sys=3, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20082 208759 1 0 2 0x82 syz-executor.0 3709 122951 74241 0 3 0x10008a pause ksh 74241 24394 72631 0 2 0x12 sshd 54912 94115 1 0 3 0x100083 ttyin getty 72631 331599 1 0 3 0x80 select sshd 26315 268117 84988 73 3 0x100090 kqread syslogd 84988 226246 1 0 3 0x100082 netio syslogd 61631 7402 1 77 3 0x100090 poll dhclient 45137 95070 1 0 3 0x80 poll dhclient 64773 375916 0 0 3 0x14200 bored smr 13960 397925 0 0 2 0x14200 zerothread 51449 469059 0 0 3 0x14200 aiodoned aiodoned 57318 417879 0 0 3 0x14200 syncer update 76214 7166 0 0 3 0x14200 cleaner cleaner *22263 353618 0 0 7 0x14200 reaper 39951 372155 0 0 3 0x14200 pgdaemon pagedaemon 3493 130808 0 0 3 0x14200 bored crynlk 11484 124739 0 0 3 0x14200 bored crypto 5911 346621 0 0 3 0x40014200 acpi0 acpi0 78255 368361 0 0 2 0x14200 softnet 11370 175601 0 0 3 0x14200 bored systqmp 71523 213207 0 0 3 0x14200 bored systq 82640 6872 0 0 2 0x40014200 softclock 82582 290465 0 0 3 0x40014200 idle0 1 226255 0 0 2 0x82 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 9473 6333K 6846K 78643K 10708 0 pcb 15 8K 8K 78643K 90 0 rtable 105 3K 3K 78643K 201 0 ifaddr 54 12K 12K 78643K 61 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 2K 78643K 15 0 iov 0 0K 16K 78643K 18 0 mount 1 1K 1K 78643K 1 0 vnodes 1236 78K 78K 78643K 1455 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 0K 0K 78643K 2 0 sem 10 0K 0K 78643K 12 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 3 8K 25K 78643K 157 0 proc 48 38K 54K 78643K 471 0 subproc 31 1K 3K 78643K 221 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 9 0 in_multi 40 2K 2K 78643K 45 0 ether_multi 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 222 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 83 20K 29K 78643K 1181 0 UVM aobj 2 2K 2K 78643K 2 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 4 0 NDP 8 0K 0K 78643K 13 0 temp 78 3029K 3093K 78643K 2598 0 kqueue 2 2K 10K 78643K 15 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 6 0 0 1 0 1 1 0 8 0 rtpcb 80 23 0 21 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 47 0 39 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 101 0 101 1 1 0 1 0 8 0 tcpcb 544 22 0 18 1 0 1 1 0 8 0 inpcb 280 154 0 145 2 0 2 2 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 4 0 4 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 189 0 0 12 0 12 12 0 8 0 art_table 32 190 0 0 2 0 2 2 0 8 0 art_node 16 44 0 4 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 4 1 1 0 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 10 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1532 0 135 46 0 46 46 0 8 0 ffsino 240 1532 0 135 83 0 83 83 0 8 0 nchpl 144 1913 0 325 60 0 60 60 0 8 0 uvmvnodes 72 1792 0 0 33 0 33 33 0 8 0 vnodes 208 1792 0 0 95 0 95 95 0 8 0 namei 1024 5099 0 5099 2 1 1 1 0 8 1 scxspl 192 5902 0 5902 3 2 1 1 0 8 1 plimitpl 152 27 0 20 1 0 1 1 0 8 0 sigapl 424 310 0 284 4 0 4 4 0 8 0 futexpl 56 1377 0 1377 2 2 0 1 0 8 0 knotepl 112 197 0 192 1 0 1 1 0 8 0 kqueuepl 144 36 0 35 1 0 1 1 0 8 0 pipelkpl 16 171 0 163 1 0 1 1 0 8 0 pipepl 120 342 0 331 1 0 1 1 0 8 0 fdescpl 432 296 0 284 2 0 2 2 0 8 0 filepl 120 1901 0 1810 4 0 4 4 0 8 0 lockfpl 104 19 0 18 1 0 1 1 0 8 0 lockfspl 48 9 0 8 1 0 1 1 0 8 0 sessionpl 112 28 0 18 1 0 1 1 0 8 0 pgrppl 48 30 0 20 1 0 1 1 0 8 0 ucredpl 96 120 0 113 1 0 1 1 0 8 0 zombiepl 144 285 0 283 1 0 1 1 0 8 0 processpl 920 310 0 283 4 0 4 4 0 8 0 procpl 624 417 0 390 4 1 3 4 0 8 0 sockpl 400 229 0 210 4 1 3 3 0 8 1 mcl64k 65536 9 0 7 2 1 1 1 0 8 0 mcl9k 9216 2 0 2 1 1 0 1 0 8 0 mcl4k 4096 13 0 13 2 2 0 1 0 8 0 mcl2k 2048 60356 0 60309 17 10 7 14 0 8 0 mtagpl 80 10 0 2 2 1 1 1 0 8 0 mbufpl 256 96424 0 96098 25 4 21 21 0 8 0 bufpl 280 4311 0 160 297 0 297 297 0 8 0 anonpl 16 42456 0 36860 62 3 59 60 0 107 0 amapchunkpl 152 1604 0 1492 8 1 7 7 0 158 1 amappl16 192 1306 0 853 43 1 42 43 0 8 2 amappl15 184 3 0 1 1 0 1 1 0 8 0 amappl14 176 66 0 63 2 1 1 1 0 8 0 amappl13 168 35 0 34 1 0 1 1 0 8 0 amappl12 160 11 0 11 2 1 1 1 0 8 1 amappl11 152 67 0 54 1 0 1 1 0 8 0 amappl10 144 13 0 11 1 0 1 1 0 8 0 amappl9 136 401 0 397 1 0 1 1 0 8 0 amappl8 128 321 0 312 1 0 1 1 0 8 0 amappl7 120 121 0 110 1 0 1 1 0 8 0 amappl6 112 37 0 34 1 0 1 1 0 8 0 amappl5 104 207 0 197 1 0 1 1 0 8 0 amappl4 96 456 0 430 1 0 1 1 0 8 0 amappl3 88 139 0 132 1 0 1 1 0 8 0 amappl2 80 1359 0 1297 3 1 2 3 0 8 0 amappl1 72 15466 0 15048 26 16 10 20 0 8 0 amappl 80 682 0 645 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 1 0 0 1 0 1 1 0 8 0 uaddrrnd 24 296 0 284 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 296 0 284 1 0 1 1 0 8 0 vmmpekpl 168 6807 0 6781 2 0 2 2 0 8 0 vmmpepl 168 51150 0 49749 143 25 118 118 0 357 33 vmsppl 272 295 0 283 3 1 2 2 0 8 1 pdppl 4096 598 0 566 6 1 5 6 0 8 0 pvpl 32 149090 0 146161 147 4 143 147 0 265 105 pmappl 200 295 0 283 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 167 0 24 5 0 5 5 0 8 0