panic: amap_wipeout: corrupt amap Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *523071 19746 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82206813) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd805e93b6f0) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d326d20,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586 uvm_map_teardown(fffffd806bc09220) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2762 uvmspace_free(fffffd806bc09220) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3649 uvm_exit(ffff8000ffff8e78) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2e19c0) 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(ffffffff82206813) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd805e93b6f0) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d326d20,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586 uvm_map_teardown(fffffd806bc09220) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2762 uvmspace_free(fffffd806bc09220) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3649 uvm_exit(ffff8000ffff8e78) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2e19c0) at reaper+0x15c sys/kern/kern_exit.c:456 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d326ba0 rbx 0xffff80001d326c50 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d326b60 r9 0x1 r10 0 r11 0x68432888ce8a2dde r12 0x3000000008 r13 0xffff80001d326bb0 r14 0x100 r15 0x1 rip 0xffffffff81772058 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d326b90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=523071 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e1270,0xffff80001d2e2870 process=0xffff8000ffffc008 user=0xffff80001d321000, vmspace=0xffffffff825ba400 estcpu=1, cpticks=3, pctcpu=0.0 user=0, sys=3, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 35199 261892 1 0 2 0x82 syz-executor.0 44046 277815 0 0 3 0x14200 acct acct 89621 275000 1 0 3 0x100083 ttyin getty 85306 247034 0 0 3 0x14200 bored sosplice 3203 185446 96769 0 3 0x10008a pause ksh 96769 95752 61460 0 2 0x12 sshd 61460 227880 1 0 3 0x80 select sshd 40127 487865 9107 73 3 0x100090 kqread syslogd 9107 499113 1 0 3 0x100082 netio syslogd 85638 159890 1 77 3 0x100090 poll dhclient 34755 288038 1 0 3 0x80 poll dhclient 94793 360458 0 0 3 0x14200 bored smr 61621 175149 0 0 2 0x14200 zerothread 11141 399396 0 0 3 0x14200 aiodoned aiodoned 54120 217986 0 0 3 0x14200 syncer update 75792 233562 0 0 3 0x14200 cleaner cleaner *19746 523071 0 0 7 0x14200 reaper 78413 3425 0 0 3 0x14200 pgdaemon pagedaemon 21629 140412 0 0 3 0x14200 bored crynlk 73597 478398 0 0 3 0x14200 bored crypto 1965 278531 0 0 3 0x40014200 acpi0 acpi0 93014 192049 0 0 2 0x14200 softnet 30034 362125 0 0 3 0x14200 bored systqmp 52685 164385 0 0 3 0x14200 bored systq 19065 25195 0 0 3 0x40014200 bored softclock 76016 394148 0 0 3 0x40014200 idle0 1 380510 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 9509 6342K 7107K 78643K 12221 0 pcb 13 8K 8K 78643K 159 0 rtable 108 3K 4K 78643K 340 0 ifaddr 84 16K 16K 78643K 153 0 counters 21 16K 16K 78643K 34 0 ioctlops 0 0K 2K 78643K 40 0 iov 0 0K 32K 78643K 103 0 mount 1 1K 1K 78643K 1 0 vnodes 1235 78K 78K 78643K 1958 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 13 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 1K 78643K 44 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 3 8K 25K 78643K 640 0 sigio 0 0K 0K 78643K 11 0 proc 50 38K 63K 78643K 556 0 subproc 31 1K 3K 78643K 240 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 66 0 in_multi 70 3K 3K 78643K 155 0 ether_multi 1 0K 0K 78643K 27 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 49 228K 228K 78643K 49 0 exec 0 0K 1K 78643K 269 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 69K 78643K 2293 0 UVM aobj 29 2K 2K 78643K 32 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 123 0 NDP 13 0K 0K 78643K 32 0 temp 102 3030K 3095K 78643K 22707 0 kqueue 2 2K 20K 78643K 45 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 43 0 41 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 unpcb 120 349 0 341 1 0 1 1 0 8 0 syncache 264 9 0 9 4 4 0 1 0 8 0 tcpqe 32 197 0 197 2 2 0 1 0 8 0 tcpcb 544 235 0 231 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 280 680 0 673 3 2 1 2 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 236 0 44 14 2 12 12 0 8 0 art_table 32 237 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 1 1 0 1 1 0 8 0 semapl 112 34 0 24 1 0 1 1 0 8 0 shmpl 112 30 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2483 0 1087 46 0 46 46 0 8 0 ffsino 240 2483 0 1087 83 0 83 83 0 8 0 nchpl 144 3639 0 2051 60 0 60 60 0 8 0 uvmvnodes 72 3160 0 0 58 0 58 58 0 8 0 vnodes 208 3160 0 0 167 0 167 167 0 8 0 namei 1024 10460 0 10460 2 1 1 1 0 8 1 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 528 6 0 3 2 1 1 1 0 8 0 scxspl 192 10608 0 10608 4 3 1 1 0 8 1 plimitpl 152 64 0 56 1 0 1 1 0 8 0 sigapl 424 793 0 765 4 0 4 4 0 8 0 futexpl 56 12069 0 12069 2 2 0 1 0 8 0 knotepl 112 249 0 244 1 0 1 1 0 8 0 kqueuepl 144 98 0 97 1 0 1 1 0 8 0 pipelkpl 16 209 0 202 1 0 1 1 0 8 0 pipepl 120 418 0 408 1 0 1 1 0 8 0 fdescpl 432 777 0 765 2 0 2 2 0 8 0 filepl 120 5225 0 5143 4 0 4 4 0 8 0 lockfpl 104 144 0 143 1 0 1 1 0 8 0 lockfspl 48 53 0 52 1 0 1 1 0 8 0 sessionpl 112 30 0 20 1 0 1 1 0 8 0 pgrppl 48 32 0 22 1 0 1 1 0 8 0 ucredpl 96 560 0 553 1 0 1 1 0 8 0 zombiepl 144 766 0 764 1 0 1 1 0 8 0 processpl 920 793 0 764 6 1 5 5 0 8 1 procpl 624 1446 0 1417 4 0 4 4 0 8 0 sosppl 128 4 0 4 2 2 0 1 0 8 0 sockpl 400 1072 0 1055 6 4 2 4 0 8 0 mcl64k 65536 47 0 47 2 2 0 1 0 8 0 mcl16k 16384 3 0 3 2 2 0 1 0 8 0 mcl12k 12288 11 0 11 2 2 0 1 0 8 0 mcl9k 9216 8 0 8 2 2 0 1 0 8 0 mcl8k 8192 9 0 9 2 2 0 1 0 8 0 mcl4k 4096 59 0 59 3 3 0 1 0 8 0 mcl2k2 2112 2 0 2 2 2 0 1 0 8 0 mcl2k 2048 61097 0 61039 19 11 8 18 0 8 0 mtagpl 80 4 0 2 2 1 1 1 0 8 0 mbufpl 256 100371 0 100253 16 8 8 10 0 8 0 bufpl 280 5396 0 172 374 0 374 374 0 8 0 anonpl 16 78510 0 74230 73 14 59 69 0 107 0 amapchunkpl 152 5224 0 5132 27 20 7 20 0 158 0 amappl16 192 3535 0 3195 55 15 40 52 0 8 4 amappl15 184 5 0 4 1 0 1 1 0 8 0 amappl14 176 5 0 5 2 1 1 1 0 8 1 amappl13 168 311 0 309 1 0 1 1 0 8 0 amappl12 160 8 0 8 1 0 1 1 0 8 1 amappl11 152 67 0 55 1 0 1 1 0 8 0 amappl10 144 299 0 292 1 0 1 1 0 8 0 amappl9 136 394 0 391 1 0 1 1 0 8 0 amappl8 128 338 0 324 1 0 1 1 0 8 0 amappl7 120 380 0 365 1 0 1 1 0 8 0 amappl6 112 23 0 21 1 0 1 1 0 8 0 amappl5 104 666 0 653 1 0 1 1 0 8 0 amappl4 96 732 0 703 1 0 1 1 0 8 0 amappl3 88 124 0 118 1 0 1 1 0 8 0 amappl2 80 4981 0 4921 3 1 2 3 0 8 0 amappl1 72 23088 0 22679 27 18 9 20 0 8 0 amappl 80 1741 0 1702 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 31 0 3 1 0 1 1 0 8 0 uaddrrnd 24 783 0 768 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 783 0 768 1 0 1 1 0 8 0 vmmpekpl 168 8867 0 8839 2 0 2 2 0 8 0 vmmpepl 168 105218 0 103924 164 50 114 114 0 357 34 vmsppl 272 782 0 767 3 1 2 2 0 8 0 pdppl 4096 1572 0 1537 8 2 6 6 0 8 1 pvpl 32 241697 0 238669 170 29 141 166 0 265 82 pmappl 200 782 0 767 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 171 0 40 5 0 5 5 0 8 0