syzbot


panic: amap_wipeout: corrupt amap (2)

Status: upstream: reported on 2025/12/19 03:24
Reported-by: syzbot+e6dc4c1c2feae6efc26f@syzkaller.appspotmail.com
First crash: 3d09h, last: 3d09h
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd panic: amap_wipeout: corrupt amap 2 6 2071d 2159d 0/3 auto-closed as invalid on 2020/07/20 03:17

Sample crash report:
panic: amap_wipeout: corrupt amap
Stopped at      db_enter+0x25:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
 304853  67231      0           0          0    0  syz-executor
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff8344d893) at panic+0x1e5 sys/kern/subr_prf.c:198
amap_wipeout(fffffd806c737ee0) at amap_wipeout+0x366 sys/uvm/uvm_amap.c:470
uvm_unmap_detach(ffff80002efc2150,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353
uvm_map_teardown(fffffd800f37f7d0) at uvm_map_teardown+0x360 sys/uvm/uvm_map.c:2525
exit1(ffff80003c44e7f8,0,0,1) at exit1+0x6fc sys/kern/kern_exit.c:260
sys_exit(ffff80003c44e7f8,ffff80002efc2320,ffff80002efc2270) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002efc2320) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002efc2320) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7da1b3572b40, count: 6
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{1}> 
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
*cpu1: amap_wipeout: corrupt amap
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff8344d893) at panic+0x1e5 sys/kern/subr_prf.c:198
amap_wipeout(fffffd806c737ee0) at amap_wipeout+0x366 sys/uvm/uvm_amap.c:470
uvm_unmap_detach(ffff80002efc2150,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353
uvm_map_teardown(fffffd800f37f7d0) at uvm_map_teardown+0x360 sys/uvm/uvm_map.c:2525
exit1(ffff80003c44e7f8,0,0,1) at exit1+0x6fc sys/kern/kern_exit.c:260
sys_exit(ffff80003c44e7f8,ffff80002efc2320,ffff80002efc2270) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002efc2320) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002efc2320) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7da1b3572b40, count: -9
ddb{1}> show registers
rdi                                0
rsi                              0x1
rbp               0xffff80002efc1ff0
rbx               0xffff8000299dee07
rdx                                0
rcx               0xffff80003c44e7f8
rax               0xffff8000299ddff0
r8                 0x101010101010101
r9                0x8080808080808080
r10               0x40a38bf5281e09b5
r11               0xf377509939cc729a
r12               0xffff8000299dec08
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff8174fac5    db_enter+0x25
cs                               0x8
rflags                         0x246
rsp               0xffff80002efc1fe0
ss                              0x10
db_enter+0x25:  addq    $0x8,%rsp
ddb{1}> show proc
PROC (syz-executor) tid=42612 pid=97899 tcnt=0 stat=onproc
    flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
    runpri=32, usrpri=86, slppri=32, nice=20
    wchan=0x0, wmesg=, ps_single=0xffff80003c44e7f8 scnt=-1 ecnt=1
    forw=0xffffffffffffffff, list=0xffff80003c44e2c8,0xffff80003c414800
    process=0xffff8000fffe5370 user=0xffff80002efbd000, vmspace=0xfffffd800f37f7d0
    estcpu=36, cpticks=4, pctcpu=0.0, user=0, sys=1, intr=0
ddb{1}> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 67231  304853  11980      0  7           0                syz-executor
 67231  488495  11980      0  2   0x4000000                syz-executor
  7760   94813  13971      0  2           0                syz-executor
 47582  197044  24728      0  2           0                syz-executor
 47582  267556  24728      0  3   0x4000080  fsleep        syz-executor
 75899   93137  89458  60928  2        0x10                syz-executor
 75899  409348  89458  60928  3   0x4000090  fsleep        syz-executor
 70214  354978  45698      0  2           0                syz-executor
 70214   57370  45698      0  3   0x4000080  fsleep        syz-executor
 70214  343475  45698      0  2   0x4000000                syz-executor
 45698  398083  69613      0  3        0x82  nanoslp       syz-executor
 35195  159868      1      0  3    0x100083  ttyin         getty
 40861  139446      0      0  3     0x14280  nfsidl        nfsio
 90638  380281      0      0  3     0x14280  nfsidl        nfsio
  9207  504802      0      0  3     0x14280  nfsidl        nfsio
  1297  162324      0      0  3     0x14280  nfsidl        nfsio
 81611  399016      0      0  3     0x14280  nfsidl        nfsio
 47191  263463      0      0  3     0x14280  nfsidl        nfsio
  2483  246036      0      0  3     0x14280  nfsidl        nfsio
 95281  483523      0      0  3     0x14280  nfsidl        nfsio
 19700  289101      0      0  3     0x14280  nfsidl        nfsio
 15383  113100      0      0  3     0x14280  nfsidl        nfsio
 18897  186100      0      0  3     0x14280  nfsidl        nfsio
 35411  496030      0      0  3     0x14280  nfsidl        nfsio
 69137  143707      0      0  3     0x14280  nfsidl        nfsio
 89586  261122      0      0  3     0x14280  nfsidl        nfsio
 47520  170494      0      0  3     0x14280  nfsidl        nfsio
 18805  222540      0      0  3     0x14280  nfsidl        nfsio
 77609   65183      0      0  3     0x14280  nfsidl        nfsio
 39171   10087      0      0  3     0x14280  nfsidl        nfsio
 77304  158387      0      0  3     0x14280  nfsidl        nfsio
 33046  511462      0      0  3     0x14280  nfsidl        nfsio
 13971   52763  69613      0  3        0x82  nanoslp       syz-executor
  4320  459665  69613      0  3        0x82  nanoslp       syz-executor
 24728  433050  69613      0  3        0x82  nanoslp       syz-executor
 11980  516357  69613      0  3        0x82  nanoslp       syz-executor
 92619  465116  69613      0  3        0x82  wait          syz-executor
 36581  390416  69613      0  3        0x82  wait          syz-executor
 89458  370030  69613      0  3        0x82  nanoslp       syz-executor
 69613  121953  76271      0  2         0x2                syz-executor
 76271  417119  81779      0  3    0x10008a  sigsusp       ksh
 81779  144026  28925      0  3        0x98  kqread        sshd-session
 28925  181798  11278      0  3        0x92  kqread        sshd-session
 11278  463211      1      0  3        0x88  kqread        sshd
 72850  413435    431     74  3   0x1100092  bpf           pflogd
   431  116086      1      0  3        0x80  sbwait        pflogd
 62261  338050  18701     73  3   0x1100090  kqread        syslogd
 18701  227836      1      0  3    0x100082  sbwait        syslogd
 95681  277389      1      0  3    0x100080  kqread        resolvd
 42436  470317   6362     77  3    0x100092  kqread        dhcpleased
 92225  302273   6362     77  3    0x100092  kqread        dhcpleased
  6362  297181      1      0  3        0x80  kqread        dhcpleased
 79974  197312      0      0  3     0x14200  bored         smr
 93904  484847      0      0  2     0x14200                zerothread
 95687  194142      0      0  3     0x14200  aiodoned      aiodoned
 21816   61891      0      0  3     0x14200  syncer        update
 83103  498913      0      0  3     0x14200  cleaner       cleaner
 19361   94310      0      0  3     0x14200  reaper        reaper
 93888  395633      0      0  3     0x14200  pgdaemon      pagedaemon
 23010  402911      0      0  3     0x14200  bored         viomb
 22080  496486      0      0  3  0x40014200  acpi0         acpi0
 10389  170019      0      0  3  0x40014200                idle1
  4507  193709      0      0  3     0x14200  bored         softnet1
 90613  265511      0      0  3     0x14200  bored         softnet0
 13891  170275      0      0  3     0x14200  bored         systqmp
 59745  441880      0      0  3     0x14200  bored         systq
 81186  505259      0      0  3     0x14200  tmoslp        softclockmp
 28072   29305      0      0  3  0x40014200  tmoslp        softclock
 37446  371282      0      0  3  0x40014200                idle0
     1  510856      0      0  3     0x80082  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper
ddb{1}> show all locks
Process 67231 (syz-executor) thread 0xffff80002a261240 (488495)
ddb{1}> show malloc
           Type InUse  MemUse  HighUse   Limit  Requests Type Lim
         devbuf 10207  11032K   11549K 166960K     13310        0
            pcb    17     13K      14K 166960K       180        0
         rtable   210     13K      13K 166960K       536        0
             pf    34     17K      21K 166960K       109        0
         ifaddr    38      6K       7K 166960K        89        0
        ifgroup    55      2K       2K 166960K       125        0
         sysctl     4      1K       9K 166960K        54        0
       counters    70     37K      37K 166960K       154        0
       ioctlops     0      0K       4K 166960K      1717        0
            iov     0      0K      24K 166960K        52        0
          mount     1      1K       1K 166960K         1        0
            log     0      0K       0K 166960K         4        0
         vnodes  1524     96K      96K 166960K      2344        0
      UFS quota     1     32K      32K 166960K         1        0
      UFS mount     5     36K      36K 166960K         5        0
            shm     2      2K       6K 166960K        15        0
         VM map     2      1K       1K 166960K         2        0
            sem    12      0K       0K 166960K        23        0
        dirhash    12      2K       2K 166960K        24        0
           ACPI  1692    195K     286K 166960K     12470        0
      file desc    17     61K     106K 166960K      1003        0
          sigio     0      0K       0K 166960K        19        0
           proc    73    115K     163K 166960K       678        0
        subproc    72      4K       4K 166960K        90        0
    NFS srvsock     1      0K       0K 166960K         1        0
     NFS daemon     1     16K      16K 166960K         1        0
    ip_moptions     0      0K       0K 166960K        96        0
       in_multi    77      5K       7K 166960K       157        0
    ether_multi     1      0K       0K 166960K         8        0
            mrt     1      0K       0K 166960K         1        0
    ISOFS mount     1     32K      32K 166960K         1        0
  MSDOSFS mount     1     16K      16K 166960K         1        0
           ttys   103    466K     466K 166960K       103        0
           exec     0      0K       1K 166960K       605        0
   fusefs mount     1     32K      32K 166960K         1        0
            tdb     3      0K       0K 166960K         3        0
        VM swap     8     62K      64K 166960K        10        0
       UVM amap   239    167K     191K 166960K     10585        0
       UVM aobj    15      6K       6K 166960K        16        0
     pinsyscall    42     84K     106K 166960K      2181        0
        memdesc     1      4K       4K 166960K         1        0
    crypto data     1      1K       1K 166960K         1        0
    ip6_options     0      0K       0K 166960K        44        0
            NDP    12      0K       2K 166960K        60        0
           temp    60   8675K    8755K 166960K     39153        0
         kqueue    13     20K      30K 166960K       167        0
      SYN cache     2     16K      16K 166960K         2        0
ddb{1}> show all pools
Name      Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache    128       26    0        0     1     0     1     1     0     8    0
rtpcb      120       82    0       79     1     0     1     1     0     8    0
rtentry    176      158    0       76     6     1     5     6     0     8    0
unpcb      144      525    0      506     4     2     2     3     0     8    1
syncache   336        6    0        6     2     2     0     1     0     8    0
tcpqe       32        2    0        2     1     1     0     1     0     8    0
tcpcb      736      296    0      290     7     5     2     4     0     8    1
arp        136       26    0       12     1     0     1     1     0     8    0
inpcb      328      906    0      897    15     8     7     7     0     8    6
nd6        152       32    0       12     1     0     1     1     0     8    0
pkpcb       40        4    0        4     2     1     1     1     0     8    1
kcovpl      48       10    0        2     1     0     1     1     0     8    0
ppxss      1192      35    0       35     1     0     1     1     0     8    1
pppxif     1504       4    0        4     2     1     1     1     0     8    1
pffrag     232        7    0        1     1     0     1     1     0   482    0
pffrnode    88        6    0        1     1     0     1     1     0     8    0
pffrent     40       19    0       13     1     0     1     1     0     8    0
pfosfp      40     1428    0     1005     5     0     5     5     0     8    0
pfosfpen   112     1428    0      714    21     0    21    21     0     8    0
pfstitem    24       59    0       20     1     0     1     1     0     8    0
pfstkey    128       59    0       20     2     0     2     2     0     8    0
pfstate    448       59    0       20     6     0     6     6     0     8    0
pfrule     1344      21    0       16     2     1     1     2     0     8    0
art_heap8  4096       2    0        0     2     0     2     2     0     8    0
art_heap4  256      649    0      281    30     5    25    29     0     8    1
art_table   40      651    0      281     5     0     5     5     0     8    0
art_node    32      156    0       85     1     0     1     1     0     8    0
sysvmsgpl   40        8    0        5     1     0     1     1     0     8    0
semupl     112        1    0        1     1     1     0     1     0     8    0
semapl     112       19    0        9     1     0     1     1     0     8    0
shmpl      112       10    0        0     1     0     1     1     0     8    0
dirhash    1024      26    0        9     3     0     3     3     0     8    0
dino2pl    256     3068    0     1559    95     0    95    95     0     8    0
ffsino     296     3068    0     1559   117     0   117   117     0     8    0
nchpl      144     4388    0     2685    64     0    64    64     0     8    0
rtmask      32        7    0        7     3     2     1     1     0     8    1
vnodes     216     3872    0        0   216     0   216   216     0     8    0
namei      1024   14735    0    14734     3     2     1     2     0     8    0
percpumem   16       92    0       42     1     0     1     1     0     8    0
vcpupl     3968       3    0        1     1     0     1     1     0     8    0
vmpool     848        3    0        1     1     0     1     1     0     8    0
kstatmem   264       80    0       52     4     1     3     3     0     8    1
acpiwqpl    32        1    0        1     1     0     1     1     1     8    1
scsiplug    72        2    0        2     2     2     0     1     0     8    0
scxspl     216    21322    0    21322    10     6     4     8     1     8    4
plimitpl   152      293    0      275     1     0     1     1     0     8    0
sigapl     424     1322    0     1254     9     1     8     8     0     8    0
knotepl    120      554    0        0    17     0    17    17     0     8    0
kqueuepl   224      313    0      304     4     2     2     3     0     8    1
pipepl     344      180    0      153     3     0     3     3     0     8    0
fdescpl    528     1286    0     1255     3     0     3     3     0     8    0
filepl     160     6917    0     6696    18     5    13    15     0     8    2
lockfpl    104      692    0      690     3     1     2     2     0     8    1
lockfspl    48      271    0      269     1     0     1     1     0     8    0
sessionpl  144       26    0       17     1     0     1     1     0     8    0
pgrppl      48      108    0       91     1     0     1     1     0     8    0
ucredpl    104      794    0      780     1     0     1     1     0     8    0
zombiepl   144     1257    0     1254     2     1     1     1     0     8    0
processpl  1232    1322    0     1254     7     1     6     6     0     8    0
procpl     664     2642    0     2569     9     1     8     8     0     8    0
sosppl     176        8    0        8     2     1     1     1     0     8    1
sockpl     752     1539    0     1508    19     9    10    11     0     8    6
mcl64k     65536      4    0        0     1     0     1     1     0     8    0
mcl16k     16384      4    0        0     1     0     1     1     0     8    0
mcl12k     12288      1    0        0     1     0     1     1     0     8    0
mcl9k      9216       2    0        0     1     0     1     1     0     8    0
mcl8k      8192       5    0        0     1     0     1     1     0     8    0
mcl4k      4096     132    0        0    17     0    17    17     0     8    0
mcl2k2     2112       1    0        0     1     0     1     1     0     8    0
mcl2k      2048      31    0        0     4     0     4     4     0     8    0
mtagpl      96       38    0        0     1     0     1     1     0     8    0
mbufpl     256      320    0        0    20     0    20    20     0     8    0
bufpl      280     9951    0     3815   439     0   439   439     0     8    0
anonpl      32     9902    0        0    80     0    80    80     0   246    0
anonpl: pool(0xffffffff83a06d98:anonpl): page inconsistency: page 0x0; at page head addr 0xfffffd806cacef90 (p 0xfffffd806cace000)
amapchunkpl 152   35733    0    35264    46    13    33    33     0   158    9
amappl16   200     4024    0     3986    35    23    12    17     0     8    4
amappl15   192        3    0        3     1     1     0     1     0     8    0
amappl14   184        8    0        8     1     1     0     1     0     8    0
amappl13   176      448    0      447     1     0     1     1     0     8    0
amappl12   168     1660    0     1619     3     0     3     3     0     8    0
amappl11   160       35    0       35     1     1     0     1     0     8    0
amappl10   152       55    0       40     1     0     1     1     0     8    0
amappl9    144      253    0      253     1     1     0     1     0     8    0
amappl8    136       28    0       25     1     0     1     1     0     8    0
amappl7    128       83    0       82     1     0     1     1     0     8    0
amappl6    120      316    0      302     1     0     1     1     0     8    0
amappl5    112       78    0       67     1     0     1     1     0     8    0
amappl4    104      430    0      399     1     0     1     1     0     8    0
amappl3     96     6957    0     6857     6     2     4     4     0     8    1
amappl2     88      556    0      497     2     0     2     2     0     8    0
amappl1     80    12937    0    12344    16     2    14    15     0     8    0
amappl      88     9674    0     9514     5     0     5     5     0    92    0
uvmvnodes   80      131    0        0     3     0     3     3     0     8    0
dma4096    4096       1    0        1     1     1     0     1     0     8    0
dma1024    1024       1    0        0     1     0     1     1     0     8    0
dma256     256        6    0        6     1     1     0     1     0     8    0
dma128     128      254    0      254     2     2     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      72       15    0        1     1     0     1     1     0     8    0
uaddrrnd    24     1287    0     1256     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24     1287    0     1256     1     0     1     1     0     8    0
vmmpekpl   168    11412    0    11371     3     0     3     3     0     8    0
vmmpepl    168    86264    0    84332   112    16    96   100     0   357    1
vmsppl     488     1286    0     1255     7     2     5     5     0     8    0
rwobjpl     80    24559    0    23492    30     2    28    28     0     8    1
pdppl      4096    2587    0     2514   109    35    74    85     0     8    1
pvpl        32    19030    0        0   154     0   154   154     0   265    0
pmappl     256     1289    0     1256     3     0     3     3     0     8    0
extentpl    40       45    0       27     1     0     1     1     0     8    0
phpool     112      307    0       51     8     0     8     8     0     8    0
ddb{1}> machine ddbcpu 0
Stopped at      x86_ipi_db+0x27:        addq    $0x8,%rsp
x86_ipi_db(ffffffff8389eff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
end of kernel
end trace frame: 0x77ee170f6d00, count: 12
ddb{0}> trace
x86_ipi_db(ffffffff8389eff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
end of kernel
end trace frame: 0x77ee170f6d00, count: -3
ddb{0}> machine ddbcpu 1
Stopped at      db_enter+0x25:  addq    $0x8,%rsp
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff8344d893) at panic+0x1e5 sys/kern/subr_prf.c:198
amap_wipeout(fffffd806c737ee0) at amap_wipeout+0x366 sys/uvm/uvm_amap.c:470
uvm_unmap_detach(ffff80002efc2150,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353
uvm_map_teardown(fffffd800f37f7d0) at uvm_map_teardown+0x360 sys/uvm/uvm_map.c:2525
exit1(ffff80003c44e7f8,0,0,1) at exit1+0x6fc sys/kern/kern_exit.c:260
sys_exit(ffff80003c44e7f8,ffff80002efc2320,ffff80002efc2270) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002efc2320) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002efc2320) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7da1b3572b40, count: 6
ddb{1}> trace
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff8344d893) at panic+0x1e5 sys/kern/subr_prf.c:198
amap_wipeout(fffffd806c737ee0) at amap_wipeout+0x366 sys/uvm/uvm_amap.c:470
uvm_unmap_detach(ffff80002efc2150,0) at uvm_unmap_detach+0x8a sys/uvm/uvm_map.c:1353
uvm_map_teardown(fffffd800f37f7d0) at uvm_map_teardown+0x360 sys/uvm/uvm_map.c:2525
exit1(ffff80003c44e7f8,0,0,1) at exit1+0x6fc sys/kern/kern_exit.c:260
sys_exit(ffff80003c44e7f8,ffff80002efc2320,ffff80002efc2270) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002efc2320) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002efc2320) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:775
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7da1b3572b40, count: -9

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/19 03:24 openbsd 3f23c8878a83 e14dbeb9 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: amap_wipeout: corrupt amap
* Struck through repros no longer work on HEAD.