panic: amap_wipeout: corrupt amap Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *173284 47609 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821fbc42) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd8057f1f250) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d3269b0,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1582 uvm_map_teardown(fffffd806bc09110) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2757 uvmspace_free(fffffd806bc09110) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3611 uvm_exit(ffff80001d38e700) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2e1270) at reaper+0x15c sys/kern/kern_exit.c:443 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(ffffffff821fbc42) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd8057f1f250) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d3269b0,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1582 uvm_map_teardown(fffffd806bc09110) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2757 uvmspace_free(fffffd806bc09110) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3611 uvm_exit(ffff80001d38e700) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2e1270) at reaper+0x15c sys/kern/kern_exit.c:443 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d326830 rbx 0xffff80001d3268e0 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d3267f0 r9 0x1 r10 0 r11 0xb6a737e2f45f1156 r12 0x3000000008 r13 0xffff80001d326840 r14 0x100 r15 0x1 rip 0xffffffff81129e08 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d326820 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=173284 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e14e0,0xffff80001d2e1010 process=0xffff8000ffffd888 user=0xffff80001d321000, vmspace=0xffffffff8257e3d0 estcpu=1, cpticks=5, pctcpu=0.1 user=0, sys=5, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 46252 504260 0 0 3 0x14200 acct acct 66531 138781 0 0 3 0x14200 bored sosplice 92182 491165 1 0 2 0x82 syz-executor.0 47633 383293 1 0 2 0x82 syz-executor.1 68421 433852 25750 0 3 0x10008a pause ksh 25750 119813 71957 0 2 0x12 sshd 36034 215094 1 0 3 0x100083 ttyin getty 71957 277652 1 0 2 0x80 sshd 84495 100200 62650 73 3 0x100090 kqread syslogd 62650 340262 1 0 3 0x100082 netio syslogd 98590 464257 1 77 2 0x100090 dhclient 9370 44348 1 0 2 0x80 dhclient 54341 355510 0 0 3 0x14200 bored smr 56593 229230 0 0 2 0x14200 zerothread 47826 217745 0 0 3 0x14200 aiodoned aiodoned 95979 441037 0 0 3 0x14200 syncer update 69349 255307 0 0 3 0x14200 cleaner cleaner *47609 173284 0 0 7 0x14200 reaper 45540 251990 0 0 3 0x14200 pgdaemon pagedaemon 94942 212787 0 0 3 0x14200 bored crynlk 74703 184092 0 0 3 0x14200 bored crypto 79318 175788 0 0 3 0x40014200 acpi0 acpi0 25918 467788 0 0 2 0x14200 softnet 16050 168133 0 0 2 0x14200 systqmp 63156 80888 0 0 3 0x14200 bored systq 33136 376544 0 0 2 0x40014200 softclock 70891 87142 0 0 3 0x40014200 idle0 1 501623 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 9496 6341K 7107K 78643K 11433 0 pcb 13 8K 8K 78643K 100 0 rtable 84 2K 3K 78643K 643 0 ifaddr 72 14K 14K 78643K 111 0 counters 21 16K 16K 78643K 26 0 ioctlops 0 0K 2K 78643K 53 0 iov 0 0K 14K 78643K 83 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1506 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 0K 0K 78643K 2 0 sem 11 1K 1K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 3 8K 25K 78643K 403 0 sigio 0 0K 0K 78643K 8 0 proc 50 38K 63K 78643K 382 0 subproc 32 2K 2K 78643K 38 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 42 0 in_multi 58 3K 3K 78643K 106 0 ether_multi 1 0K 0K 78643K 16 0 mrt 0 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 235 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 90 53K 71K 78643K 1830 0 UVM aobj 33 4K 4K 78643K 33 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 96 0 NDP 11 0K 0K 78643K 21 0 temp 129 3022K 3086K 78643K 14743 0 kqueue 2 2K 12K 78643K 39 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 1 1 0 1 1 0 8 0 rtpcb 80 811 0 809 1 0 1 1 0 8 0 rtentry 112 55 0 23 2 0 2 2 0 8 0 unpcb 120 525 0 517 2 0 2 2 0 8 1 syncache 264 13 0 13 3 2 1 1 0 8 1 tcpqe 32 99 0 99 2 2 0 1 0 8 0 tcpcb 544 203 0 199 3 1 2 2 0 8 1 ipq 40 7 0 7 1 0 1 1 0 8 1 ipqe 40 315 0 315 1 0 1 1 0 8 1 inpcb 280 776 0 767 4 0 4 4 0 8 3 nd6 48 7 0 3 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 251 0 114 12 1 11 12 0 8 0 art_table 32 253 0 114 2 0 2 2 0 8 0 art_node 16 54 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 15 0 10 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 10 0 1 1 0 1 1 0 8 0 shmpl 112 31 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1999 0 601 46 0 46 46 0 8 0 ffsino 240 1999 0 601 83 0 83 83 0 8 0 nchpl 144 2756 0 1149 60 0 60 60 0 8 0 uvmvnodes 72 2240 0 0 41 0 41 41 0 8 0 vnodes 208 2240 0 0 118 0 118 118 0 8 0 namei 1024 7931 0 7931 1 0 1 1 0 8 1 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 2 1 0 1 1 0 8 0 scxspl 192 9104 0 9104 1 0 1 1 0 8 1 plimitpl 152 61 0 54 1 0 1 1 0 8 0 sigapl 424 591 0 563 4 0 4 4 0 8 0 futexpl 56 16439 0 16439 1 0 1 1 0 8 1 knotepl 112 93 0 88 1 0 1 1 0 8 0 kqueuepl 144 140 0 139 2 0 2 2 0 8 1 pipelkpl 16 207 0 197 1 0 1 1 0 8 0 pipepl 120 414 0 401 2 0 2 2 0 8 1 fdescpl 432 575 0 563 2 0 2 2 0 8 0 filepl 120 5425 0 5342 9 0 9 9 0 8 6 lockfpl 104 143 0 142 1 0 1 1 0 8 0 lockfspl 48 45 0 44 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 21 0 11 1 0 1 1 0 8 0 ucredpl 96 500 0 493 1 0 1 1 0 8 0 zombiepl 144 563 0 562 1 0 1 1 0 8 0 processpl 896 591 0 562 4 0 4 4 0 8 0 procpl 624 1090 0 1061 4 0 4 4 0 8 1 sosppl 128 3 0 3 1 1 0 1 0 8 0 sockpl 400 2165 0 2148 10 2 8 10 0 8 6 mcl64k 65536 108 0 108 5 3 2 4 0 8 2 mcl16k 16384 12 0 12 1 1 0 1 0 8 0 mcl12k 12288 15 0 15 1 0 1 1 0 8 1 mcl9k 9216 10 0 10 1 0 1 1 0 8 1 mcl8k 8192 35 0 35 1 0 1 1 0 8 1 mcl4k 4096 70 0 70 2 1 1 1 0 8 1 mcl2k2 2112 2 0 2 1 0 1 1 0 8 1 mcl2k 2048 66525 0 66473 21 13 8 17 0 8 0 mtagpl 80 48 0 4 2 1 1 1 0 8 0 mbufpl 256 118516 0 118332 40 4 36 36 0 8 21 bufpl 280 5294 0 166 367 0 367 367 0 8 0 anonpl 16 75961 0 69487 86 1 85 85 0 107 17 amapchunkpl 152 3458 0 3366 21 1 20 20 0 158 13 amappl16 192 3402 0 3076 65 17 48 58 0 8 12 amappl15 184 188 0 186 1 0 1 1 0 8 0 amappl14 176 2 0 2 2 1 1 1 0 8 1 amappl13 168 206 0 204 1 0 1 1 0 8 0 amappl12 160 7 0 7 2 1 1 1 0 8 1 amappl11 152 65 0 53 1 0 1 1 0 8 0 amappl10 144 16 0 14 1 0 1 1 0 8 0 amappl9 136 378 0 374 1 0 1 1 0 8 0 amappl8 128 291 0 273 1 0 1 1 0 8 0 amappl7 120 105 0 96 1 0 1 1 0 8 0 amappl6 112 22 0 22 1 0 1 1 0 8 1 amappl5 104 339 0 329 1 0 1 1 0 8 0 amappl4 96 632 0 605 1 0 1 1 0 8 0 amappl3 88 329 0 322 1 0 1 1 0 8 0 amappl2 80 3990 0 3935 3 1 2 3 0 8 0 amappl1 72 19645 0 19253 25 16 9 20 0 8 0 amappl 80 1346 0 1314 2 0 2 2 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 32 0 0 1 0 1 1 0 8 0 uaddrrnd 24 581 0 565 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 581 0 565 1 0 1 1 0 8 0 vmmpekpl 168 7772 0 7740 2 0 2 2 0 8 0 vmmpepl 168 75785 0 74549 117 14 103 112 0 357 21 vmsppl 272 580 0 564 2 0 2 2 0 8 0 pdppl 4096 1168 0 1132 7 1 6 6 0 8 1 pvpl 32 217115 0 214212 199 0 199 199 0 265 156 pmappl 200 580 0 564 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 199 0 29 5 0 5 5 0 8 0