panic: amap_wipeout: corrupt amap Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *280790 80392 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821e0bad) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd805615aa38) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d33c630,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1582 uvm_map_teardown(fffffd806bc0a550) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2757 uvmspace_free(fffffd806bc0a550) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3611 uvm_exit(ffff80001d39e380) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2f25f0) 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(ffffffff821e0bad) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd805615aa38) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d33c630,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1582 uvm_map_teardown(fffffd806bc0a550) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2757 uvmspace_free(fffffd806bc0a550) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3611 uvm_exit(ffff80001d39e380) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2f25f0) at reaper+0x15c sys/kern/kern_exit.c:443 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d33c4b0 rbx 0xffff80001d33c560 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d33c470 r9 0x1 r10 0 r11 0x6a4a4d753f761bbf r12 0x3000000008 r13 0xffff80001d33c4c0 r14 0x100 r15 0x1 rip 0xffffffff8156f0e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d33c4a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=280790 stat=onproc flags process=14000 proc=200 pri=4, usrpri=51, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2f2380,0xffff80001d2f2d50 process=0xffff8000ffffc008 user=0xffff80001d337000, vmspace=0xffffffff8258bdb8 estcpu=1, cpticks=4, pctcpu=0.0 user=0, sys=4, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 18095 128361 0 0 3 0x14200 bored sosplice 98793 391112 1 0 2 0x82 syz-executor.1 72856 314210 1 0 2 0x82 syz-executor.0 69312 97707 24102 0 3 0x10008a pause ksh 24102 38468 12369 0 2 0x12 sshd 24415 432291 1 0 3 0x100083 ttyin getty 12369 333991 1 0 3 0x80 select sshd 11845 125140 81803 73 3 0x100090 kqread syslogd 81803 54513 1 0 3 0x100082 netio syslogd 23124 80834 1 77 3 0x100090 poll dhclient 68165 270934 1 0 3 0x80 poll dhclient 8562 481680 0 0 2 0x14200 zerothread 59647 39090 0 0 3 0x14200 aiodoned aiodoned 86604 427597 0 0 3 0x14200 syncer update 46033 35515 0 0 3 0x14200 cleaner cleaner *80392 280790 0 0 7 0x14200 reaper 45855 438267 0 0 3 0x14200 pgdaemon pagedaemon 20233 52397 0 0 3 0x14200 bored crynlk 44421 439652 0 0 3 0x14200 bored crypto 4095 385254 0 0 3 0x40014200 acpi0 acpi0 56888 259556 0 0 2 0x14200 softnet 80267 458187 0 0 3 0x14200 bored systqmp 8450 222704 0 0 3 0x14200 bored systq 12787 442614 0 0 3 0x40014200 bored softclock 90082 40911 0 0 3 0x40014200 idle0 44951 77271 0 0 3 0x14200 bored smr 1 353684 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 9481 6343K 6859K 78643K 10963 0 pcb 13 8K 8K 78643K 57 0 rtable 105 3K 3K 78643K 242 0 ifaddr 61 13K 13K 78643K 85 0 counters 19 16K 16K 78643K 19 0 ioctlops 0 0K 2K 78643K 21 0 iov 0 0K 12K 78643K 18 0 mount 1 1K 1K 78643K 1 0 vnodes 1221 77K 77K 78643K 1346 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 12 0K 0K 78643K 76 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 3 8K 25K 78643K 216 0 sigio 0 0K 0K 78643K 24 0 proc 48 38K 63K 78643K 378 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 12 0 in_multi 46 2K 2K 78643K 66 0 ether_multi 1 0K 0K 78643K 8 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 203 0 pfkey data 0 0K 1K 78643K 2 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 92 20K 23K 78643K 1394 0 UVM aobj 6 2K 2K 78643K 6 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 50 0 NDP 9 0K 0K 78643K 16 0 temp 106 3010K 3074K 78643K 10613 0 kqueue 2 2K 32K 78643K 79 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 37 0 35 1 0 1 1 0 8 0 rtentry 112 50 0 6 2 0 2 2 0 8 0 unpcb 120 112 0 104 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 107 0 107 1 1 0 1 0 8 0 tcpcb 544 173 0 169 2 0 2 2 0 8 1 inpcb 280 341 0 334 4 1 3 3 0 8 2 nd6 48 4 0 0 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 220 0 3 14 0 14 14 0 8 0 art_table 32 222 0 3 2 0 2 2 0 8 0 art_node 16 49 0 10 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 13 1 0 1 1 0 8 0 semupl 112 4 0 4 2 1 1 1 0 8 1 semapl 112 74 0 64 1 0 1 1 0 8 0 shmpl 112 4 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1684 0 285 46 0 46 46 0 8 0 ffsino 240 1684 0 285 83 0 83 83 0 8 0 nchpl 144 2240 0 631 60 0 60 60 0 8 0 uvmvnodes 72 1818 0 0 34 0 34 34 0 8 0 vnodes 208 1818 0 0 96 0 96 96 0 8 0 namei 1024 5879 0 5879 1 0 1 1 0 8 1 scxspl 192 6215 0 6215 1 0 1 1 0 8 1 plimitpl 152 34 0 27 1 0 1 1 0 8 0 sigapl 432 387 0 376 2 0 2 2 0 8 0 futexpl 56 4970 0 4970 1 0 1 1 0 8 1 knotepl 112 187 0 182 2 0 2 2 0 8 1 kqueuepl 104 169 0 168 1 0 1 1 0 8 0 pipelkpl 16 123 0 113 1 0 1 1 0 8 0 pipepl 120 246 0 233 1 0 1 1 0 8 0 fdescpl 432 388 0 376 2 0 2 2 0 8 0 filepl 120 2657 0 2574 5 0 5 5 0 8 2 lockfpl 104 59 0 58 1 0 1 1 0 8 0 lockfspl 48 20 0 19 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 278 0 271 1 0 1 1 0 8 0 zombiepl 144 376 0 375 1 0 1 1 0 8 0 processpl 896 403 0 375 4 0 4 4 0 8 0 procpl 624 701 0 673 5 1 4 4 0 8 0 sosppl 128 2 0 2 1 0 1 1 0 8 1 sockpl 400 494 0 477 5 0 5 5 0 8 3 mcl64k 65536 6 0 6 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 2 1 1 1 0 8 1 mcl12k 12288 6 0 6 2 1 1 1 0 8 1 mcl9k 9216 3 0 3 2 1 1 1 0 8 1 mcl8k 8192 8 0 8 2 1 1 1 0 8 1 mcl4k 4096 29 0 29 2 1 1 1 0 8 1 mcl2k 2048 64655 0 64609 16 9 7 15 0 8 0 mtagpl 80 12 0 2 2 1 1 1 0 8 0 mbufpl 256 103554 0 103442 11 3 8 9 0 8 0 bufpl 280 6760 0 1327 389 0 389 389 0 8 0 anonpl 16 51696 0 43949 80 1 79 79 0 107 14 amapchunkpl 152 1967 0 1867 13 6 7 13 0 158 1 amappl16 192 1900 0 1525 55 9 46 55 0 8 8 amappl15 184 50 0 46 1 0 1 1 0 8 0 amappl14 176 117 0 115 1 0 1 1 0 8 0 amappl13 168 1 0 0 1 0 1 1 0 8 0 amappl12 160 101 0 100 2 1 1 1 0 8 0 amappl11 152 45 0 34 1 0 1 1 0 8 0 amappl10 144 21 0 18 1 0 1 1 0 8 0 amappl9 136 557 0 554 1 0 1 1 0 8 0 amappl8 128 115 0 95 1 0 1 1 0 8 0 amappl7 120 92 0 81 1 0 1 1 0 8 0 amappl6 112 54 0 48 1 0 1 1 0 8 0 amappl5 104 230 0 220 1 0 1 1 0 8 0 amappl4 96 604 0 579 1 0 1 1 0 8 0 amappl3 88 213 0 205 1 0 1 1 0 8 0 amappl2 80 2307 0 2249 3 1 2 3 0 8 0 amappl1 72 16755 0 16352 26 16 10 20 0 8 0 amappl 80 922 0 887 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 5 0 0 1 0 1 1 0 8 0 uaddrrnd 24 388 0 376 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 388 0 376 1 0 1 1 0 8 0 vmmpekpl 168 6679 0 6651 2 0 2 2 0 8 0 vmmpepl 168 53836 0 52516 117 21 96 109 0 357 13 vmsppl 272 387 0 375 2 1 1 2 0 8 0 pdppl 4096 782 0 750 6 1 5 6 0 8 0 pvpl 32 164666 0 161721 186 0 186 186 0 265 148 pmappl 200 387 0 375 1 0 1 1 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 160 0 21 5 0 5 5 0 8 0