syzbot


panic: amap_wipeout: corrupt amap

Status: auto-closed as invalid on 2020/07/20 03:17
Reported-by: syzbot+63868e0cc599fc473ef0@syzkaller.appspotmail.com
First crash: 1767d, last: 1678d

Sample crash report:
panic: amap_wipeout: corrupt amap
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*109362  53789      0     0x14000      0x200    0  reaper
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic(ffffffff8220ba77) at panic+0x15c sys/kern/subr_prf.c:207
amap_wipeout(fffffd805702c078) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447
uvm_unmap_detach(ffff80001d726830,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586
uvm_map_teardown(fffffd806bc0abb0) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2759
uvmspace_free(fffffd806bc0abb0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646
uvm_exit(ffff8000ffff8ae0) 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(ffffffff8220ba77) at panic+0x15c sys/kern/subr_prf.c:207
amap_wipeout(fffffd805702c078) at amap_wipeout+0x208 sys/uvm/uvm_amap.c:447
uvm_unmap_detach(ffff80001d726830,1) at uvm_unmap_detach+0x163 sys/uvm/uvm_map.c:1586
uvm_map_teardown(fffffd806bc0abb0) at uvm_map_teardown+0x22c sys/uvm/uvm_map.c:2759
uvmspace_free(fffffd806bc0abb0) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3646
uvm_exit(ffff8000ffff8ae0) 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               0xffff80001d7266b0
rbx               0xffff80001d726760
rdx                              0x2
rcx                                0
rax                                0
r8                0xffff80001d726670
r9                               0x1
r10                                0
r11               0xdb2bbff4c3959f65
r12                     0x3000000008
r13               0xffff80001d7266c0
r14                            0x100
r15                              0x1
rip               0xffffffff813d04a8    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff80001d7266a0
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (reaper) pid=109362 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    pri=4, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff80001d6e1ea0,0xffff80001d6e2870
    process=0xffff8000ffffc3a0 user=0xffff80001d721000, vmspace=0xffffffff825a2d48
    estcpu=0, cpticks=1, pctcpu=0.0
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 10525   79921      0      0  3     0x14200  acct          acct
 36785  521474      1      0  2        0x82                syz-executor.1
 72787  279357  15397      0  3    0x10008a  pause         ksh
 15397  397277  73986      0  2        0x12                sshd
 90562  314332      1      0  3    0x100083  ttyin         getty
 73986  484597      1      0  3        0x80  select        sshd
 14662  441697  24674     73  3    0x100090  kqread        syslogd
 24674  460971      1      0  3    0x100082  netio         syslogd
 82533   68386      1     77  3    0x100090  poll          dhclient
 91589  414790      1      0  3        0x80  poll          dhclient
 50048  305273      0      0  3     0x14200  bored         smr
 90175   72069      0      0  2     0x14200                zerothread
 85367  481500      0      0  3     0x14200  aiodoned      aiodoned
 21870  218050      0      0  3     0x14200  syncer        update
 23745   65341      0      0  3     0x14200  cleaner       cleaner
*53789  109362      0      0  7     0x14200                reaper
 73005  147450      0      0  3     0x14200  pgdaemon      pagedaemon
 54952  496706      0      0  3     0x14200  bored         crynlk
 30633  353457      0      0  3     0x14200  bored         crypto
 31243  516140      0      0  3  0x40014200  acpi0         acpi0
 40154   87310      0      0  2     0x14200                softnet
 67546  456878      0      0  3     0x14200  bored         systqmp
 65912  144295      0      0  3     0x14200  bored         systq
 74316  497047      0      0  3  0x40014200  bored         softclock
 33383  288933      0      0  3  0x40014200                idle0
     1  482684      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  9493   6348K    6661K  78643K     11030        0
            pcb    13      8K       8K  78643K        84        0
         rtable    86      3K       3K  78643K       267        0
         ifaddr    80     16K      17K  78643K       114        0
       counters    22     16K      16K  78643K        28        0
       ioctlops     0      0K       2K  78643K       177        0
            iov     0      0K      16K  78643K        61        0
          mount     1      1K       1K  78643K         1        0
         vnodes  1233     78K      78K  78643K      1574        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       5K  78643K         5        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      0K       0K  78643K        43        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1794    195K     288K  78643K     12646        0
      file desc     3      8K      25K  78643K       352        0
          sigio     0      0K       0K  78643K         2        0
           proc    50     38K      55K  78643K       505        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        37        0
       in_multi    76      3K       3K  78643K       114        0
    ether_multi     1      0K       0K  78643K        13        0
            mrt     0      0K       0K  78643K        10        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       254        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   101     53K      69K  78643K      1641        0
       UVM aobj    20      2K       2K  78643K        20        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K        56        0
            NDP    11      0K       0K  78643K        22        0
           temp   102   3036K    3106K  78643K      7813        0
         kqueue     2      2K       8K  78643K        23        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       33    0       31     1     0     1     1     0     8    0
rtentry    112       53    0       20     2     0     2     2     0     8    0
unpcb      120      137    0      129     1     0     1     1     0     8    0
syncache   264        4    0        4     1     1     0     1     0     8    0
tcpqe       32       83    0       83     1     1     0     1     0     8    0
tcpcb      544      153    0      149     1     0     1     1     0     8    0
ipq         40        1    0        1     1     1     0     1     0     8    0
ipqe        40       45    0       45     1     1     0     1     0     8    0
inpcb      280      861    0      850     3     2     1     2     0     8    0
rttmr       72        2    0        2     2     2     0     1     0     8    0
nd6         48        8    0        4     1     0     1     1     0     8    0
ppxss      1128       1    0        1     1     1     0     1     0     8    0
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      296    0      158    13     1    12    13     0     8    0
art_table   32      298    0      158     2     0     2     2     0     8    0
art_node    16       52    0       24     1     0     1     1     0     8    0
sysvmsgpl   40       20    0       13     1     0     1     1     0     8    0
semupl     112        2    0        2     1     1     0     1     0     8    0
semapl     112       41    0       31     1     0     1     1     0     8    0
shmpl      112       18    0        0     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256     1857    0      461    88     0    88    88     0     8    0
ffsino     240     1857    0      461    83     0    83    83     0     8    0
nchpl      144     2495    0      907    60     0    60    60     0     8    0
uvmvnodes   72     2192    0        0    40     0    40    40     0     8    0
vnodes     208     2192    0        0   116     0   116   116     0     8    0
namei      1024    6879    0     6879     2     1     1     1     0     8    1
vcpupl     1984       4    0        0     1     0     1     1     0     8    0
vmpool     528        4    0        0     1     0     1     1     0     8    0
scsiplug    64        1    0        1     1     1     0     1     0     8    0
scxspl     192     7626    0     7626     4     3     1     1     0     8    1
plimitpl   152       33    0       26     1     0     1     1     0     8    0
sigapl     424      506    0      479     4     0     4     4     0     8    0
futexpl     56     6254    0     6254     2     2     0     1     0     8    0
knotepl    112      212    0      207     1     0     1     1     0     8    0
kqueuepl   144       38    0       37     1     0     1     1     0     8    0
pipelkpl    16      153    0      146     1     0     1     1     0     8    0
pipepl     120      306    0      296     1     0     1     1     0     8    0
fdescpl    432      491    0      479     2     0     2     2     0     8    0
filepl     120     3400    0     3316     4     0     4     4     0     8    0
lockfpl    104      114    0      113     1     0     1     1     0     8    0
lockfspl    48       36    0       35     1     0     1     1     0     8    0
sessionpl  112       28    0       18     1     0     1     1     0     8    0
pgrppl      48       38    0       28     1     0     1     1     0     8    0
ucredpl     96      274    0      267     1     0     1     1     0     8    0
zombiepl   144      480    0      478     1     0     1     1     0     8    0
processpl  920      506    0      478     4     0     4     4     0     8    0
procpl     624      842    0      814     4     0     4     4     0     8    0
sockpl     400     1041    0     1020     4     1     3     4     0     8    0
mcl64k     65536     31    0       31     1     1     0     1     0     8    0
mcl16k     16384      4    0        4     2     2     0     1     0     8    0
mcl12k     12288      9    0        9     1     1     0     1     0     8    0
mcl9k      9216       3    0        3     2     2     0     1     0     8    0
mcl8k      8192      10    0       10     1     1     0     1     0     8    0
mcl4k      4096      25    0       25     3     3     0     1     0     8    0
mcl2k2     2112       1    0        1     1     1     0     1     0     8    0
mcl2k      2048   63792    0    63743    15     8     7    14     0     8    0
mtagpl      80       26    0        2     2     1     1     1     0     8    0
mbufpl     256   102462    0   102302    19     7    12    17     0     8    0
bufpl      280     4858    0      187   334     0   334   334     0     8    0
anonpl      16    57513    0    47799    74    14    60    72     0   107    0
amapchunkpl 152    3124    0     2986    21    14     7    20     0   158    0
amappl16   192     2344    0     1615    49     9    40    49     0     8    0
amappl15   184      124    0      122     1     0     1     1     0     8    0
amappl14   176       22    0       19     1     0     1     1     0     8    0
amappl13   168       38    0       36     1     0     1     1     0     8    0
amappl12   160      148    0      144     1     0     1     1     0     8    0
amappl11   152       49    0       40     1     0     1     1     0     8    0
amappl10   144       31    0       28     1     0     1     1     0     8    0
amappl9    136      363    0      362     1     0     1     1     0     8    0
amappl8    128      323    0      308     1     0     1     1     0     8    0
amappl7    120      128    0      114     1     0     1     1     0     8    0
amappl6    112       38    0       34     1     0     1     1     0     8    0
amappl5    104      447    0      435     1     0     1     1     0     8    0
amappl4     96      451    0      425     1     0     1     1     0     8    0
amappl3     88      120    0      114     1     0     1     1     0     8    0
amappl2     80     3056    0     2993     3     1     2     3     0     8    0
amappl1     72    18642    0    18235    27    18     9    20     0     8    0
amappl      80     1122    0     1079     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       19    0        0     1     0     1     1     0     8    0
uaddrrnd    24      495    0      479     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24      495    0      479     1     0     1     1     0     8    0
vmmpekpl   168     7438    0     7409     2     0     2     2     0     8    0
vmmpepl    168    72754    0    71064   167    52   115   131     0   357   30
vmsppl     272      494    0      478     3     1     2     2     0     8    0
pdppl      4096     996    0      960     8     2     6     6     0     8    1
pvpl        32   186031    0   183096   172    28   144   172     0   265  102
pmappl     200      494    0      478     2     0     2     2     0     8    1
extentpl    40       46    0       29     1     0     1     1     0     8    0
phpool     112      254    0       30     7     0     7     7     0     8    0

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/21 03:16 openbsd 8d4ffaea7cde 347a5dc3 .config console log report ci-openbsd-main
2020/04/05 07:45 openbsd e9f36175dfbf d9ed075d .config console log report ci-openbsd-main
2020/03/24 12:50 openbsd 8cc78d45870f 33e14df3 .config console log report ci-openbsd-main
2020/03/09 17:29 openbsd 7928e20dd0ac 35f53e45 .config console log report ci-openbsd-main
2020/02/28 08:09 openbsd c6faab6d3d04 c88c7b75 .config console log report ci-openbsd-main
2020/01/23 16:28 openbsd c43b2f196494 11ebf937 .config console log report ci-openbsd-main
* Struck through repros no longer work on HEAD.