panic: amap_wipeout: corrupt amap Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *346575 44833 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821ff39b) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd8063ff7ea0) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d325ff0,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586 uvm_map_teardown(fffffd8056af7bc0) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2762 uvmspace_free(fffffd8056af7bc0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3649 uvm_exit(ffff8000ffffb510) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2e2860) 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(ffffffff821ff39b) at panic+0x15c sys/kern/subr_prf.c:207 amap_wipeout(fffffd8063ff7ea0) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447 uvm_unmap_detach(ffff80001d325ff0,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586 uvm_map_teardown(fffffd8056af7bc0) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2762 uvmspace_free(fffffd8056af7bc0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3649 uvm_exit(ffff8000ffffb510) at uvm_exit+0x29 sys/uvm/uvm_glue.c:297 reaper(ffff80001d2e2860) at reaper+0x15c sys/kern/kern_exit.c:443 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d325e70 rbx 0xffff80001d325f20 rdx 0x2 rcx 0 rax 0 r8 0xffff80001d325e30 r9 0x1 r10 0 r11 0xe9e4aea0eecd8fd3 r12 0x3000000008 r13 0xffff80001d325e80 r14 0x100 r15 0x1 rip 0xffffffff81797978 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d325e60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (reaper) pid=346575 stat=onproc flags process=14000 proc=200 pri=4, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d2e1ea0,0xffff80001d2e2ae0 process=0xffff8000ffffd508 user=0xffff80001d321000, vmspace=0xffffffff8259ef10 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 86519 316993 89459 0 3 0x82 nanosleep syz-executor.1 92875 327479 0 0 3 0x14200 bored sosplice 34212 478978 89459 0 3 0x82 nanosleep syz-executor.0 89459 342675 52204 0 3 0x82 thrsleep syz-fuzzer 89459 100500 52204 0 3 0x4000082 thrsleep syz-fuzzer 89459 287895 52204 0 3 0x4000082 thrsleep syz-fuzzer 89459 78213 52204 0 3 0x4000082 thrsleep syz-fuzzer 89459 497688 52204 0 3 0x4000082 thrsleep syz-fuzzer 89459 57826 52204 0 3 0x4000082 thrsleep syz-fuzzer 89459 138095 52204 0 3 0x4000082 thrsleep syz-fuzzer 89459 357435 52204 0 3 0x4000082 kqread syz-fuzzer 52204 519611 64408 0 3 0x10008a pause ksh 64408 149290 51490 0 3 0x92 select sshd 87923 167003 1 0 3 0x100083 ttyin getty 51490 158105 1 0 3 0x80 select sshd 47331 208589 62523 73 3 0x100090 kqread syslogd 62523 128687 1 0 3 0x100082 netio syslogd 89164 453929 1 77 3 0x100090 poll dhclient 70727 252852 1 0 3 0x80 poll dhclient 14991 437845 0 0 3 0x14200 bored smr 77465 347442 0 0 2 0x14200 zerothread 26384 117550 0 0 3 0x14200 aiodoned aiodoned 41909 458398 0 0 3 0x14200 syncer update 75662 80358 0 0 3 0x14200 cleaner cleaner *44833 346575 0 0 7 0x14200 reaper 33465 428646 0 0 3 0x14200 pgdaemon pagedaemon 58065 459876 0 0 3 0x14200 bored crynlk 2011 294608 0 0 3 0x14200 bored crypto 3550 107217 0 0 3 0x40014200 acpi0 acpi0 94464 392157 0 0 3 0x14200 bored softnet 97648 61869 0 0 3 0x14200 bored systqmp 34665 183997 0 0 3 0x14200 bored systq 99569 14976 0 0 3 0x40014200 bored softclock 38066 323162 0 0 3 0x40014200 idle0 1 63851 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 9526 6353K 6461K 78643K 10797 0 pcb 13 10K 12K 78643K 191 0 rtable 109 4K 4K 78643K 429 0 ifaddr 97 18K 19K 78643K 206 0 counters 21 16K 16K 78643K 35 0 ioctlops 0 0K 2K 78643K 70 0 iov 0 0K 24K 78643K 134 0 mount 1 1K 1K 78643K 1 0 vnodes 1217 77K 77K 78643K 1503 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 12 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 297 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1794 195K 288K 78643K 12646 0 file desc 4 9K 25K 78643K 737 0 sigio 0 0K 0K 78643K 15 0 proc 49 38K 63K 78643K 506 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 93 0 in_multi 85 3K 4K 78643K 196 0 ether_multi 1 0K 0K 78643K 34 0 mrt 0 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 261 0 pfkey data 0 0K 0K 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 116 86K 87K 78643K 3446 0 UVM aobj 59 2K 2K 78643K 66 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 152 0 NDP 15 0K 0K 78643K 36 0 temp 142 3022K 3088K 78643K 28026 0 kqueue 3 4K 18K 78643K 153 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 13 0 7 1 0 1 1 0 8 0 rtpcb 80 68 0 66 1 0 1 1 0 8 0 rtentry 112 77 0 34 2 0 2 2 0 8 0 unpcb 120 460 0 451 1 0 1 1 0 8 0 syncache 264 16 0 16 6 5 1 1 0 8 1 tcpqe 32 292 0 292 2 2 0 1 0 8 0 tcpcb 544 556 0 552 12 11 1 12 0 8 0 ipq 40 8 0 8 4 4 0 1 0 8 0 ipqe 40 189 0 189 4 4 0 1 0 8 0 inpcb 280 1262 0 1255 10 9 1 9 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 ppxss 1128 2 0 2 2 2 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 285 0 97 14 0 14 14 0 8 0 art_table 32 287 0 97 2 0 2 2 0 8 0 art_node 16 76 0 38 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 20 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 295 0 285 1 0 1 1 0 8 0 shmpl 112 64 0 7 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2587 0 1193 46 0 46 46 0 8 0 ffsino 240 2587 0 1193 83 0 83 83 0 8 0 nchpl 144 4129 0 2538 60 0 60 60 0 8 0 uvmvnodes 72 2664 0 0 49 0 49 49 0 8 0 vnodes 208 2664 0 0 141 0 141 141 0 8 0 namei 1024 13232 0 13232 1 0 1 1 0 8 1 vcpupl 1984 9 0 0 2 0 2 2 0 8 0 vmpool 528 13 0 4 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 13440 0 13440 1 0 1 1 0 8 1 plimitpl 152 72 0 65 1 0 1 1 0 8 0 sigapl 424 921 0 893 4 0 4 4 0 8 0 futexpl 56 22106 0 22106 1 0 1 1 0 8 1 knotepl 112 262 0 243 1 0 1 1 0 8 0 kqueuepl 144 944 0 942 5 4 1 5 0 8 0 pipelkpl 16 223 0 213 1 0 1 1 0 8 0 pipepl 120 446 0 427 2 1 1 2 0 8 0 fdescpl 432 906 0 893 2 0 2 2 0 8 0 filepl 120 8744 0 8649 14 10 4 11 0 8 1 lockfpl 104 3102 0 3101 1 0 1 1 0 8 0 lockfspl 48 537 0 536 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 22 0 12 1 0 1 1 0 8 0 ucredpl 96 2179 0 2172 1 0 1 1 0 8 0 zombiepl 144 893 0 891 1 0 1 1 0 8 0 processpl 896 921 0 891 4 0 4 4 0 8 0 procpl 624 2665 0 2628 13 8 5 5 0 8 1 sosppl 128 19 0 19 6 5 1 1 0 8 1 sockpl 400 1807 0 1789 18 14 4 14 0 8 1 mcl64k 65536 377 0 377 34 33 1 33 0 8 1 mcl16k 16384 5 0 5 5 4 1 1 0 8 1 mcl12k 12288 19 0 19 7 6 1 1 0 8 1 mcl9k 9216 12 0 12 6 6 0 1 0 8 0 mcl8k 8192 20 0 20 5 5 0 1 0 8 0 mcl4k 4096 107 0 107 2 1 1 1 0 8 1 mcl2k2 2112 8 0 8 4 3 1 1 0 8 1 mcl2k 2048 65947 0 65890 22 14 8 18 0 8 0 mtagpl 80 2 0 2 1 1 0 1 0 8 0 mbufpl 256 110745 0 110604 62 50 12 30 0 8 1 bufpl 280 6312 0 928 385 0 385 385 0 8 0 anonpl 16 129046 0 112455 133 49 84 84 0 107 16 amapchunkpl 152 7159 0 7024 36 29 7 19 0 158 0 amappl16 192 6089 0 5173 105 50 55 59 0 8 8 amappl15 184 1 0 0 1 0 1 1 0 8 0 amappl14 176 1 0 1 1 1 0 1 0 8 0 amappl13 168 29 0 28 1 0 1 1 0 8 0 amappl12 160 142 0 139 1 0 1 1 0 8 0 amappl11 152 639 0 625 1 0 1 1 0 8 0 amappl10 144 14 0 9 1 0 1 1 0 8 0 amappl9 136 379 0 375 1 0 1 1 0 8 0 amappl8 128 298 0 273 1 0 1 1 0 8 0 amappl7 120 114 0 103 1 0 1 1 0 8 0 amappl6 112 589 0 583 1 0 1 1 0 8 0 amappl5 104 955 0 945 1 0 1 1 0 8 0 amappl4 96 461 0 432 1 0 1 1 0 8 0 amappl3 88 130 0 125 1 0 1 1 0 8 0 amappl2 80 6406 0 6347 3 1 2 3 0 8 0 amappl1 72 26760 0 26351 26 17 9 20 0 8 0 amappl 80 2924 0 2876 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 65 0 7 1 0 1 1 0 8 0 uaddrrnd 24 919 0 897 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 919 0 897 1 0 1 1 0 8 0 vmmpekpl 168 11111 0 11085 2 0 2 2 0 8 0 vmmpepl 168 119643 0 117731 158 54 104 120 0 357 10 vmsppl 272 918 0 896 3 1 2 2 0 8 0 pdppl 4096 1844 0 1801 7 1 6 6 0 8 0 pvpl 32 338400 0 318924 263 62 201 201 0 265 40 pmappl 200 918 0 896 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 288 0 144 6 0 6 6 0 8 0