syzbot


panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR (2)

Status: auto-closed as invalid on 2022/08/11 22:14
Reported-by: syzbot+17740b6b4ce62a7aead3@syzkaller.appspotmail.com
First crash: 923d, last: 923d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
openbsd panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR (3) 3 746d 771d 0/3 auto-obsoleted due to no activity on 2023/02/04 04:28
openbsd panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR (4) 65 89d 263d 0/3 auto-obsoleted due to no activity on 2024/10/13 01:07
openbsd panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR 3 1016d 1066d 0/3 auto-closed as invalid on 2022/05/10 04:49

Sample crash report:
panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x56049216000, opte 0xffffffffffffffff
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
* 52845  82294      0     0x14000      0x200    0  reaper
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82588abf) at panic+0x161 sys/kern/subr_prf.c:202
pmap_remove_ptes(fffffd806ab0a440,fffffd8005ac6680,7f82b0249098,56049213000,56049225000,0,62e5e1d0d86b9e1c) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806ab0a440,56049213000,56049225000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865
uvm_unmap_kill_entry_withlock(fffffd8079091110,fffffd806bfbe168,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771
uvmspace_free(fffffd8079091110) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3684
reaper(ffff8000ffff8fc8) at reaper+0x15d sys/kern/kern_exit.c:454
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
*cpu0: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va 0x56049216000, opte 0xffffffffffffffff
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82588abf) at panic+0x161 sys/kern/subr_prf.c:202
pmap_remove_ptes(fffffd806ab0a440,fffffd8005ac6680,7f82b0249098,56049213000,56049225000,0,62e5e1d0d86b9e1c) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806ab0a440,56049213000,56049225000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865
uvm_unmap_kill_entry_withlock(fffffd8079091110,fffffd806bfbe168,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771
uvmspace_free(fffffd8079091110) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3684
reaper(ffff8000ffff8fc8) at reaper+0x15d sys/kern/kern_exit.c:454
end trace frame: 0x0, count: -8
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff8000215c0420
rbx               0xfffffd8005ac6680
rdx                                0
rcx                                0
rax               0xffff8000ffff8fc8
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xeaeb7e00c024c853
r11               0x7b4e926156389d7e
r12                                0
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff81c36e88    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff8000215c0410
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (reaper) pid=52845 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    pri=4, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff8000fffffce0,0xffff8000ffff8d38
    process=0xffff8000ffffa7d8 user=0xffff8000215bb000, vmspace=0xffffffff829c3978
    estcpu=0, cpticks=1, pctcpu=0.2
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 52920   55572  61533      0  2           0                syz-executor.4
 52920  158094  61533      0  3   0x4000080  fsleep        syz-executor.4
 26744   43707  74341      0  2           0                syz-executor.3
 26744   76178  74341      0  3   0x4000080  fsleep        syz-executor.3
 78396  261236  60487      0  2           0                syz-executor.2
 78396  332921  60487      0  3   0x4000080  fsleep        syz-executor.2
 83176  329581  35073      0  2           0                syz-executor.1
 83176  149997  35073      0  3   0x4000080  fsleep        syz-executor.1
 83176   73007  35073      0  3   0x4000080  fsleep        syz-executor.1
 83176  113589  35073      0  3   0x4000080  fsleep        syz-executor.1
 22425  358404  42989      0  3        0x82  nanoslp       syz-executor.0
 26292  148560      0      0  3     0x14200  acct          acct
 61533  211168  42989      0  3        0x82  nanoslp       syz-executor.4
 71220  177276      0      0  3     0x14280  nfsidl        nfsio
  9722   53265      0      0  3     0x14280  nfsidl        nfsio
 11059  289079      0      0  3     0x14280  nfsidl        nfsio
 15791  410184      0      0  3     0x14280  nfsidl        nfsio
 11345  501080      0      0  3     0x14280  nfsidl        nfsio
 82330  421600      0      0  3     0x14280  nfsidl        nfsio
 55173  112281      0      0  3     0x14280  nfsidl        nfsio
 10706  336109      0      0  3     0x14280  nfsidl        nfsio
 51099  305981      0      0  3     0x14280  nfsidl        nfsio
 39044  275941      0      0  3     0x14280  nfsidl        nfsio
 96487  257552      0      0  3     0x14280  nfsidl        nfsio
 37502  230413      0      0  3     0x14280  nfsidl        nfsio
 81378  489757      0      0  3     0x14280  nfsidl        nfsio
 14724  250344      0      0  3     0x14280  nfsidl        nfsio
 13537  243289      0      0  3     0x14280  nfsidl        nfsio
  8421  130102      0      0  3     0x14280  nfsidl        nfsio
 75638  479325      0      0  3     0x14280  nfsidl        nfsio
 98048  225174      0      0  3     0x14280  nfsidl        nfsio
 40118  182233      0      0  3     0x14280  nfsidl        nfsio
 91899   81315      0      0  3     0x14280  nfsidl        nfsio
  8592  457835  42989      0  3        0x82  nanoslp       syz-executor.7
 52124  403407  42989      0  3        0x82  nanoslp       syz-executor.6
 74341  206269  42989      0  3        0x82  nanoslp       syz-executor.3
 60487  211699  42989      0  3        0x82  nanoslp       syz-executor.2
 94795  288676      0      0  3     0x14200  bored         sosplice
 35073  261902  42989      0  3        0x82  nanoslp       syz-executor.1
 52691  502515  42989      0  3        0x82  nanoslp       syz-executor.5
 42989  145543  89788      0  3        0x82  thrsleep      syz-fuzzer
 42989  111796  89788      0  3   0x4000082  thrsleep      syz-fuzzer
 42989  132789  89788      0  3   0x4000082  thrsleep      syz-fuzzer
 42989   86969  89788      0  3   0x4000082  kqread        syz-fuzzer
 42989   38105  89788      0  3   0x4000082  thrsleep      syz-fuzzer
 42989  232285  89788      0  3   0x4000082  thrsleep      syz-fuzzer
 42989  314342  89788      0  3   0x4000082  thrsleep      syz-fuzzer
 42989  512120  89788      0  3   0x4000082  thrsleep      syz-fuzzer
 42989  294021  89788      0  3   0x4000082  thrsleep      syz-fuzzer
 89788  198143  67094      0  3    0x10008a  sigsusp       ksh
 67094  227472  72736      0  3        0x9a  kqread        sshd
 76411  508851      1      0  3    0x100083  ttyin         getty
 72736  312737      1      0  3        0x88  kqread        sshd
 78628  394060  52769     73  3   0x1100090  kqread        syslogd
 52769  497827      1      0  3    0x100082  netio         syslogd
 42177  337332      1      0  3    0x100080  kqread        resolvd
 40168   48993  26614     77  3    0x100092  kqread        dhcpleased
  9260  291636  26614     77  3    0x100092  kqread        dhcpleased
 26614   78656      1      0  3        0x80  kqread        dhcpleased
 84126  344345      0      0  3     0x14200  bored         smr
 68988  242613      0      0  2     0x14200                zerothread
 76099  198366      0      0  3     0x14200  aiodoned      aiodoned
 80601  124943      0      0  3     0x14200  syncer        update
 81823  237527      0      0  3     0x14200  cleaner       cleaner
*82294   52845      0      0  7     0x14200                reaper
 52099   79134      0      0  3     0x14200  pgdaemon      pagedaemon
 13825   99046      0      0  3     0x14200  bored         viomb
  2685  386846      0      0  3  0x40014200  acpi0         acpi0
 81802  452922      0      0  3     0x14200  bored         softnet
 96054  329965      0      0  3     0x14200  bored         softnet
 11878  154617      0      0  3     0x14200  bored         softnet
 69224  407686      0      0  3     0x14200  bored         softnet
 94129  479012      0      0  3     0x14200  bored         systqmp
 37592  368566      0      0  3     0x14200  bored         systq
 62455  521503      0      0  3  0x40014200  bored         softclock
 47975  261863      0      0  3  0x40014200                idle0
     1    5681      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 10343   6498K    9503K  78643K     29283        0
            pcb    13     16K      18K  78643K      1729        0
         rtable   175     12K      13K  78643K      1013        0
         ifaddr    80     16K      18K  78643K       348        0
         sysctl     2      0K       0K  78643K         2        0
       counters    26     17K      17K  78643K        59        0
       ioctlops     0      0K       4K  78643K     12171        0
            iov     0      0K      16K  78643K       722        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1405     88K      88K  78643K     14941        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       9K  78643K        63        0
         VM map     2      0K       0K  78643K         2        0
            sem    12      0K       0K  78643K       196        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    14     49K      81K  78643K     17938        0
          sigio     0      0K       0K  78643K       668        0
           proc    59     59K      83K  78643K      1229        0
        subproc   104      6K       6K  78643K       299        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K       289        0
       in_multi    63      4K       7K  78643K       415        0
    ether_multi     1      0K       0K  78643K        53        0
            mrt     1      0K       0K  78643K        26        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   247   1102K    1102K  78643K       247        0
           exec     0      0K       2K  78643K      1596        0
     pfkey data     0      0K       1K  78643K         4        0
            tdb     3      0K       0K  78643K         3        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   349    121K     150K  78643K     92972        0
       UVM aobj   131      5K       5K  78643K       145        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       135        0
            NDP    12      0K       2K  78643K        91        0
           temp   134   4738K   21122K  78643K     55115        0
         kqueue    13     20K      28K  78643K      1381        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
rtpcb      120      147    0      144     1     0     1     1     0     8    0
rtentry    112      299    0      230     4     1     3     4     0     8    0
unpcb      136     2433    0     2420    24    23     1     5     0     8    0
syncache   296       73    0       73     7     7     0     1     0     8    0
tcpqe       32       50    0       50     4     4     0     1     0     8    0
tcpcb      736     5700    0     5696   107   106     1    20     0     8    0
arp         88       50    0       37     1     0     1     1     0     8    0
ipq         40        1    0        1     1     1     0     1     0     8    0
ipqe        40       36    0       36     1     1     0     1     0     8    0
inpcb      312    11664    0    11654   142   141     1    16     0     8    0
nd6         48       71    0       55     1     0     1     1     0     8    0
pkpcb       40       25    0       25     4     4     0     1     0     8    0
kcovpl      48       23    0       15     1     0     1     1     0     8    0
ppxss      1152       8    0        8     3     3     0     1     0     8    0
pfosfp      40        4    0        3     1     0     1     1     0     8    0
pfosfpen   112        4    0        0     1     0     1     1     0     8    0
pfrktable  1344      24    0       18     1     0     1     1     0     8    0
pftag       88        5    0        3     2     1     1     1     0     8    0
pfstitem    24        2    0        0     1     0     1     1     0     8    0
pfstkey    112       16    0       14     2     1     1     1     0     8    0
pfstate    336        8    0        7     2     1     1     1     0     8    0
pfrule     1360     100    0       62     5     1     4     4     0     8    0
rttmr       64        6    0        6     1     1     0     1     0     8    0
art_heap8  4096       1    0        0     1     0     1     1     0     8    0
art_heap4  256     1292    0      999    42    23    19    29     0     8    0
art_table   32     1293    0      999     4     0     4     4     0     8    0
art_node    16      298    0      239     1     0     1     1     0     8    0
sysvmsgpl   40       47    0       38     2     1     1     1     0     8    0
semapl     112      194    0      184     1     0     1     1     0     8    0
shmpl      112      142    0       14     4     0     4     4     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    22832    0    21393    92     1    91    91     0     8    0
ffsino     240    22832    0    21393    86     1    85    86     0     8    0
nchpl      144    47113    0    45480    63     1    62    63     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     224     5926    0        0   349     0   349   349     0     8    0
namei      1024  172181    0   172181     9     8     1     2     0     8    1
vcpupl     1984       3    0        1     1     0     1     1     0     8    0
vmpool     528        3    0        1     1     0     1     1     0     8    0
pfiaddrpl  120       22    0        4     1     0     1     1     0     8    0
kstatmem   264       90    0       66     2     0     2     2     0     8    0
scxspl     216   119898    0   119898    24    23     1     8     0     8    1
plimitpl   152      469    0      455     1     0     1     1     0     8    0
sigapl     424    18235    0    18168     8     0     8     8     0     8    0
futexpl     64   144897    0   144891     6     5     1     1     0     8    0
knotepl    120   289518    0   289436    21    17     4    11     0     8    0
kqueuepl   184     5461    0     5451    20    19     1     4     0     8    0
pipepl     304     2792    0     2764    71    68     3     8     0     8    0
fdescpl    432    18183    0    18158     4     0     4     4     0     8    0
filepl     120   117081    0   116841   153   142    11    18     0     8    3
lockfpl    104     4362    0     4357     7     6     1     2     0     8    0
lockfspl    48     1096    0     1091     1     0     1     1     0     8    0
sessionpl  144       38    0       22     1     0     1     1     0     8    0
pgrppl      48      121    0      105     1     0     1     1     0     8    0
ucredpl     96    12327    0    12317     1     0     1     1     0     8    0
zombiepl   144    18172    0    18168     5     4     1     1     0     8    0
processpl  1000   18235    0    18168    13     4     9     9     0     8    0
procpl     672    42128    0    42047    22    14     8     9     0     8    0
sosppl     168       43    0       43     4     4     0     1     0     8    0
sockpl     448    14270    0    14247   248   245     3    25     0     8    0
mcl64k     65536    175    0      175    35    35     0     1     0     8    0
mcl16k     16384     66    0       66    22    22     0     1     0     8    0
mcl12k     12288    227    0      227    29    29     0     1     0     8    0
mcl9k      9216      78    0       78    19    19     0     1     0     8    0
mcl8k      8192     222    0      222    35    35     0     1     0     8    0
mcl4k      4096     732    0      732    28    27     1     1     0     8    1
mcl2k2     2112      95    0       95    34    34     0     1     0     8    0
mcl2k      2048   48542    0    48496   116   108     8    18     0     8    0
mtagpl      96      841    0      523    12     4     8    10     0     8    0
mbufpl     256   154355    0   153854    48    12    36    47     0     8    0
bufpl      288    23128    0    16721   458     0   458   458     0     8    0
anonpl      24  3073379    0  3062523   225   128    97   128     0   188    0
amapchunkpl 152  269511    0   269044    77    56    21    51     0   158    1
amappl16   200    43604    0    43291   165   147    18    52     0     8    0
amappl15   192     3829    0     3828     5     4     1     1     0     8    0
amappl14   184     2366    0     2356     1     0     1     1     0     8    0
amappl13   176     6120    0     6117     1     0     1     1     0     8    0
amappl12   168     4352    0     4345     1     0     1     1     0     8    0
amappl11   160     2612    0     2594     1     0     1     1     0     8    0
amappl10   152       30    0       24     1     0     1     1     0     8    0
amappl9    144      761    0      753     1     0     1     1     0     8    0
amappl8    136     1750    0     1542     8     0     8     8     0     8    0
amappl7    128      260    0      249     1     0     1     1     0     8    0
amappl6    120      597    0      570     2     1     1     2     0     8    0
amappl5    112    11944    0    11932     1     0     1     1     0     8    0
amappl4    104     7794    0     7748     2     0     2     2     0     8    0
amappl3     96    55676    0    55631     2     0     2     2     0     8    0
amappl2     88    24920    0    24846     3     1     2     3     0     8    0
amappl1     80   421898    0   421289    34    20    14    19     0     8    0
amappl      88    91826    0    91680     4     0     4     4     0    92    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      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      72      144    0       14     3     0     3     3     0     8    0
uaddrrnd    24    18186    0    18159     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24    18186    0    18159     1     0     1     1     0     8    0
vmmpekpl   168   108497    0   108438     3     0     3     3     0     8    0
vmmpepl    168  1688727    0  1686368   234   118   116   130     0   357    0
vmsppl     272    18185    0    18158     7     4     3     3     0     8    0
rwobjpl     24   397247    0   389768    48     2    46    47     0     8    0
pdppl      4096   36378    0    36318   700   634    66    72     0     8    6
pvpl        32  6072941    0  6057740   333   174   159   247     0   265    0
pmappl     216    18185    0    18158     2     0     2     2     0     8    0
extentpl    40       58    0       38     1     0     1     1     0     8    0
phpool     112     2189    0     1406    24     0    24    24     0     8    0
ddb> machine ddbcpu 0
No such command
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82588abf) at panic+0x161 sys/kern/subr_prf.c:202
pmap_remove_ptes(fffffd806ab0a440,fffffd8005ac6680,7f82b0249098,56049213000,56049225000,0,62e5e1d0d86b9e1c) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806ab0a440,56049213000,56049225000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865
uvm_unmap_kill_entry_withlock(fffffd8079091110,fffffd806bfbe168,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771
uvmspace_free(fffffd8079091110) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3684
reaper(ffff8000ffff8fc8) at reaper+0x15d sys/kern/kern_exit.c:454
end trace frame: 0x0, count: -8
ddb> machine ddbcpu 1
No such command
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff82588abf) at panic+0x161 sys/kern/subr_prf.c:202
pmap_remove_ptes(fffffd806ab0a440,fffffd8005ac6680,7f82b0249098,56049213000,56049225000,0,62e5e1d0d86b9e1c) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806ab0a440,56049213000,56049225000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1865
uvm_unmap_kill_entry_withlock(fffffd8079091110,fffffd806bfbe168,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:2139
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8079091110) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2771
uvmspace_free(fffffd8079091110) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3684
reaper(ffff8000ffff8fc8) at reaper+0x15d sys/kern/kern_exit.c:454
end trace frame: 0x0, count: -8

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/13 22:14 openbsd 2eec08437320 107f6434 .config console log report ci-openbsd-main panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR
* Struck through repros no longer work on HEAD.