syzbot


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

Status: auto-obsoleted due to no activity on 2023/02/04 04:28
Reported-by: syzbot+7d383f5708f6fcc9e8d8@syzkaller.appspotmail.com
First crash: 771d, last: 746d
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 (2) 1 923d 923d 0/3 auto-closed as invalid on 2022/08/11 22:14
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 0x7f7fffe16000, opte 0xffffffffffffffff
Stopped at      db_enter+0x18:  addq    $0x8,%rsp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
*199304  97061      0     0x14000      0x200    0  reaper
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8259516e) at panic+0x161 sys/kern/subr_prf.c:198
pmap_remove_ptes(fffffd806a039d88,fffffd8005e34000,7fbfbffff000,7f7fffe00000,7f7fffef4000,0,4f7641876f0d6f63) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806a039d88,7f7fff7f4000,7f7fffef4000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1864
uvm_unmap_kill_entry_withlock(fffffd8066f25ee8,fffffd806b865310,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:1928
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2578
uvmspace_free(fffffd8066f25ee8) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3504
reaper(ffff8000ffff9ce8) at reaper+0x15d sys/kern/kern_exit.c:448
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 0x7f7fffe16000, opte 0xffffffffffffffff
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437
panic(ffffffff8259516e) at panic+0x161 sys/kern/subr_prf.c:198
pmap_remove_ptes(fffffd806a039d88,fffffd8005e34000,7fbfbffff000,7f7fffe00000,7f7fffef4000,0,4f7641876f0d6f63) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806a039d88,7f7fff7f4000,7f7fffef4000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1864
uvm_unmap_kill_entry_withlock(fffffd8066f25ee8,fffffd806b865310,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:1928
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2578
uvmspace_free(fffffd8066f25ee8) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3504
reaper(ffff8000ffff9ce8) at reaper+0x15d sys/kern/kern_exit.c:448
end trace frame: 0x0, count: -8
ddb> show registers
rdi                                0
rsi                              0x1
rbp               0xffff8000216c0a70
rbx               0xfffffd8005e34000
rdx                                0
rcx                                0
rax               0xffff8000ffff9ce8
r8                 0x101010101010101
r9                0x8080808080808080
r10               0xf47f948474e03b88
r11               0x81f80ff462b23cbc
r12                                0
r13                                0
r14                                0
r15                              0x1
rip               0xffffffff815e9608    db_enter+0x18
cs                               0x8
rflags                         0x246
rsp               0xffff8000216c0a60
ss                              0x10
db_enter+0x18:  addq    $0x8,%rsp
ddb> show proc
PROC (reaper) pid=199304 stat=onproc
    flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
    pri=4, usrpri=50, nice=20
    forw=0xffffffffffffffff, list=0xffff8000fffffce0,0xffff8000ffff9a58
    process=0xffff8000ffffa7d8 user=0xffff8000216bb000, vmspace=0xffffffff82ad2438
    estcpu=0, cpticks=1, pctcpu=0.2
    user=0, sys=1, intr=0
ddb> ps
   PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 39692  475115  24392      0  3        0x82  nanoslp       syz-executor.3
 76142  173968  24392      0  2         0x2                syz-executor.6
 59384  329600  24392      0  2         0x2                syz-executor.1
 16318  106954  24392      0  3        0x82  piperd        syz-executor.0
 58686  228726  24392      0  3        0x82  nanoslp       syz-executor.5
 95984   13794  24392      0  3        0x82  piperd        syz-executor.7
 88735    9827  24392      0  3        0x82  piperd        syz-executor.2
 93784  136466      1      0  3    0x100083  ttyopn        getty
 31760  408575      0      0  3     0x14200  bored         sosplice
 24392  154915  20339      0  3        0x82  wait          syz-fuzzer
 24392  162304  20339      0  2   0x4000002                syz-fuzzer
 24392  151123  20339      0  3   0x4000082  thrsleep      syz-fuzzer
 24392  522130  20339      0  3   0x4000082  thrsleep      syz-fuzzer
 24392  230898  20339      0  3   0x4000082  thrsleep      syz-fuzzer
 24392  165660  20339      0  2   0x4000082                syz-fuzzer
 24392  412120  20339      0  3   0x4000082  wait          syz-fuzzer
 24392  407097  20339      0  3   0x4000082  thrsleep      syz-fuzzer
 24392  134283  20339      0  3   0x4000082  wait          syz-fuzzer
 24392  311968  20339      0  3   0x4000082  wait          syz-fuzzer
 24392  251746  20339      0  3   0x4000082  wait          syz-fuzzer
 24392   71635  20339      0  3   0x4000082  wait          syz-fuzzer
 24392  159517  20339      0  3   0x4000082  wait          syz-fuzzer
 24392  105606  20339      0  3   0x4000082  wait          syz-fuzzer
 24392  502777  20339      0  3   0x4000082  thrsleep      syz-fuzzer
 20339   56156  33148      0  3    0x10008a  sigsusp       ksh
 33148  201406  57176      0  3        0x9a  kqread        sshd
 57176   64652      1      0  3        0x88  kqread        sshd
 16574  372424  14467     73  3   0x1100090  kqread        syslogd
 14467   17259      1      0  3    0x100082  netio         syslogd
 21824  404987      1      0  3    0x100080  kqread        resolvd
 92931  165227  15662     77  3    0x100092  kqread        dhcpleased
  1740  263405  15662     77  3    0x100092  kqread        dhcpleased
 15662  163562      1      0  3        0x80  kqread        dhcpleased
 61542   39774      0      0  3     0x14200  bored         smr
 12697  413296      0      0  2     0x14200                zerothread
 88676  416895      0      0  3     0x14200  aiodoned      aiodoned
 53595   47558      0      0  3     0x14200  syncer        update
 91699   70589      0      0  3     0x14200  cleaner       cleaner
*97061  199304      0      0  7     0x14200                reaper
  7494  232454      0      0  3     0x14200  pgdaemon      pagedaemon
 42940  247765      0      0  3     0x14200  bored         viomb
 62051  208442      0      0  3  0x40014200  acpi0         acpi0
 84665  328655      0      0  3     0x14200  bored         softnet
 37957  137723      0      0  3     0x14200  bored         softnet
 96528  126783      0      0  3     0x14200  bored         softnet
 28135  315995      0      0  3     0x14200  bored         softnet
 16050  375321      0      0  3     0x14200  bored         systqmp
 85858  221633      0      0  3     0x14200  bored         systq
 60991  427325      0      0  3  0x40014200  bored         softclock
  8880  140515      0      0  3  0x40014200                idle0
     1  226492      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 10232   6621K    7340K  78643K     47363        0
            pcb    13     16K      18K  78643K      2315        0
         rtable   206     17K      18K  78643K      7004        0
         ifaddr   303     75K      77K  78643K      3547        0
         sysctl     3      1K       1K  78643K         3        0
       counters    25     17K      17K  78643K       222        0
       ioctlops     0      0K       4K  78643K     22074        0
            iov     0      0K      24K  78643K       791        0
          mount     1      1K       1K  78643K         1        0
            log     0      0K       0K  78643K         4        0
         vnodes  1434     90K      90K  78643K     13117        0
      UFS quota     1     32K      32K  78643K         1        0
      UFS mount     5     36K      36K  78643K         5        0
            shm     2      1K       9K  78643K        78        0
         VM map     2      0K       0K  78643K         2        0
            sem    14      2K       3K  78643K        39        0
        dirhash    12      2K       2K  78643K        12        0
           ACPI  1697    195K     286K  78643K     12548        0
      file desc    10     33K      69K  78643K     25934        0
          sigio     0      0K       0K  78643K       151        0
           proc    61     59K      83K  78643K      1711        0
        subproc    91      5K       6K  78643K       455        0
    NFS srvsock     1      0K       0K  78643K         1        0
     NFS daemon     1     16K      16K  78643K         1        0
    ip_moptions     0      0K       0K  78643K     11684        0
       in_multi    77      5K       6K  78643K      4469        0
    ether_multi     1      0K       0K  78643K        73        0
            mrt     1      0K       0K  78643K       531        0
    ISOFS mount     1     32K      32K  78643K         1        0
  MSDOSFS mount     1     16K      16K  78643K         1        0
           ttys   241   1076K    1076K  78643K       241        0
           exec     0      0K       1K  78643K      1520        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     8     62K      64K  78643K        10        0
       UVM amap   423    386K     388K  78643K    158460        0
       UVM aobj    27      2K       2K  78643K        28        0
        memdesc     1      4K       4K  78643K         1        0
    crypto data     1      1K       1K  78643K         1        0
    ip6_options     0      0K       0K  78643K       369        0
            NDP    11      0K       2K  78643K       806        0
           temp   125   4730K    5754K  78643K    130193        0
         kqueue    12     18K      24K  78643K      1000        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      398    0      395     4     3     1     2     0     8    0
rtentry    112     3099    0     3016     4     1     3     4     0     8    0
unpcb      144    11082    0    11069   107   106     1    10     0     8    0
syncache   296      118    0      118    11    11     0     1     0     8    0
tcpqe       32       59    0       59     8     8     0     1     0     8    0
tcpcb      768    25967    0    25958   648   640     8    38     0     8    7
arp         88       77    0       63     1     0     1     1     0     8    0
ipq         40       10    0        9     4     3     1     1     0     8    0
ipqe        40       31    0       30     4     3     1     1     0     8    0
inpcb      336    42858    0    42851   303   296     7    23     0     8    6
ip6q        72        5    0        5     2     2     0     1     0     8    0
ip6af       40        9    0        9     2     2     0     1     0     8    0
nd6         48      673    0      654     1     0     1     1     0     8    0
pkpcb       40       28    0       28     7     7     0     1     0     8    0
kcovpl      48       35    0       28     1     0     1     1     0     8    0
mppekey    1024       4    0        4     2     2     0     1     0     8    0
ppxss      1160     105    0      105    14    14     0     1     0     8    0
pppxif     1608      32    0       32     9     9     0     1     0     8    0
pfstscr     40       61    0       56     1     0     1     1     0     8    0
pfosfp      40       19    0       18     4     3     1     1     0     8    0
pfosfpen   112       19    0       18     4     3     1     1     0     8    0
pfrktable  1344     126    0      124     3     2     1     2     0     8    0
pfanchor   1280    1007  292      495    43     0    43    43     0     8    0
pftag       88       32    0       18     1     0     1     1     0     8    0
pfqueue    264       13    0       13     6     6     0     1     0     8    0
pfstitem    24       31    0       21     1     0     1     1     0     8    0
pfstkey    120      158    0      155     1     0     1     1     0     8    0
pfstate    336      118    0      113     1     0     1     1     0     8    0
pfrule     1360    6038    0     4457   136     4   132   132     0     8    0
rttmr      136      227    0      227     9     9     0     1     0     8    0
art_heap8  4096       9    0        8     7     6     1     3     0     8    0
art_heap4  256    25739    0    25360    48    20    28    30     0     8    0
art_table   32    25748    0    25368     4     0     4     4     0     8    0
art_node    16     3086    0     3015     1     0     1     1     0     8    0
sysvmsgpl   40       42    0       21     1     0     1     1     0     8    0
semapl     112       33    0       21     1     0     1     1     0     8    0
shmpl      112       25    0        1     1     0     1     1     0     8    0
dirhash    1024      17    0        0     3     0     3     3     0     8    0
dino2pl    256    31754    0    30292    92     0    92    92     0     8    0
ffsino     240    31754    0    30292    88     1    87    87     0     8    0
nchpl      144    61010    0    59377    63     1    62    63     0     8    0
rtmask      32       11    0       11     3     3     0     1     0     8    0
uvmvnodes   80     5926    0        0   121     0   121   121     0     8    0
vnodes     216     5926    0        0   330     0   330   330     0     8    0
namei      1024  200713    0   200713     6     5     1     3     0     8    1
vcpupl     2048      55    0        2     7     0     7     7     0     8    0
vmpool     536       80    0       27     5     1     4     4     0     8    0
pfiaddrpl  120      256    0      256    15    14     1     1     0     8    1
kstatmem   264      328    0      306     2     0     2     2     0     8    0
scsiplug    72        5    0        5     2     2     0     1     0     8    0
scxspl     216   196072    0   196072    19    18     1     8     0     8    1
plimitpl   152      616    0      601     1     0     1     1     0     8    0
sigapl     424    26297    0    26257     8     2     6     8     0     8    0
futexpl     64   251483    0   251483     2     1     1     1     0     8    1
knotepl    120   241908    0   241828    44    40     4    11     0     8    0
kqueuepl   184     6692    0     6684    60    59     1     7     0     8    0
pipepl     288     2923    0     2895    78    75     3    12     0     8    0
fdescpl    432    26159    0    26138     5     1     4     4     0     8    0
filepl     120   166974    0   166754   202   191    11    19     0     8    3
lockfpl    104     4288    0     4286     6     5     1     2     0     8    0
lockfspl    48     1539    0     1537     1     0     1     1     0     8    0
sessionpl  144       53    0       37     1     0     1     1     0     8    0
pgrppl      48       95    0       79     1     0     1     1     0     8    0
ucredpl    104    14315    0    14305     1     0     1     1     0     8    0
zombiepl   144    26260    0    26257     1     0     1     1     0     8    0
processpl  1000   26297    0    26257    10     4     6     9     0     8    0
procpl     672    61441    0    61387    12     5     7     8     0     8    0
sosppl     168      146    0      146    13    13     0     1     0     8    0
sockpl     456    54385    0    54362   920   909    11    37     0     8    8
mcl64k     65536    344    0      344    53    52     1     1     0     8    1
mcl16k     16384    132    0      132    36    35     1     1     0     8    1
mcl12k     12288    354    0      354    50    49     1     1     0     8    1
mcl9k      9216     131    0      131    40    40     0     1     0     8    0
mcl8k      8192     619    0      619    58    57     1     1     0     8    1
mcl4k      4096    1711    0     1711    38    37     1     1     0     8    1
mcl2k2     2112     601    0      601    57    57     0     1     0     8    0
mcl2k      2048   96650    0    96582   145   132    13    35     0     8    2
mtagpl      96     5322    0     4491    49    22    27    30     0     8    2
mbufpl     256   375133    0   374070   384   298    86   113     0     8    3
bufpl      288    35293    0    28888   458     0   458   458     0     8    0
anonpl      24  4819193    0  4805727   269   175    94   116     0   188    0
amapchunkpl 152  436001    0   435428   105    78    27    38     0   158    1
amappl16   200    62048    0    61561   155   128    27    38     0     8    1
amappl14   184      269    0      254     2     1     1     2     0     8    0
amappl12   168      721    0      715     1     0     1     1     0     8    0
amappl11   160       40    0       30     1     0     1     1     0     8    0
amappl10   152       53    0       44     1     0     1     1     0     8    0
amappl9    144     1014    0     1011     1     0     1     1     0     8    0
amappl8    136      689    0      502     8     1     7     7     0     8    0
amappl7    128       73    0       54     1     0     1     1     0     8    0
amappl6    120      587    0      563     2     1     1     2     0     8    0
amappl5    112      242    0      234     1     0     1     1     0     8    0
amappl4    104     2441    0     2406     1     0     1     1     0     8    0
amappl3     96    71597    0    71555     2     0     2     2     0     8    0
amappl2     88    27054    0    26980     3     1     2     3     0     8    0
amappl1     80   566622    0   566014    25     9    16    21     0     8    0
amappl      88   157332    0   157150    10     4     6     6     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       27    0        1     1     0     1     1     0     8    0
uaddrrnd    24    26239    0    26165     1     0     1     1     0     8    0
uaddrbest   32        2    0        0     1     0     1     1     0     8    0
uaddr       24    26239    0    26165     1     0     1     1     0     8    0
vmmpekpl   168   161001    0   160941     3     0     3     3     0     8    0
vmmpepl    168  2315598    0  2313212   340   210   130   156     0   357    1
vmsppl     272    26238    0    26164     9     3     6     6     0     8    0
rwobjpl     24   584488    0   576877    52     5    47    48     0     8    0
pdppl      4096   52484    0    52381  1057   940   117   117     0     8   14
pvpl        32  9980714    0  9962373   541   368   173   253     0   265    0
pmappl     216    26238    0    26164     5     0     5     5     0     8    0
extentpl    40       56    0       38     1     0     1     1     0     8    0
phpool     112     3012    0     1965    30     0    30    30     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(ffffffff8259516e) at panic+0x161 sys/kern/subr_prf.c:198
pmap_remove_ptes(fffffd806a039d88,fffffd8005e34000,7fbfbffff000,7f7fffe00000,7f7fffef4000,0,4f7641876f0d6f63) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806a039d88,7f7fff7f4000,7f7fffef4000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1864
uvm_unmap_kill_entry_withlock(fffffd8066f25ee8,fffffd806b865310,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:1928
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2578
uvmspace_free(fffffd8066f25ee8) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3504
reaper(ffff8000ffff9ce8) at reaper+0x15d sys/kern/kern_exit.c:448
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(ffffffff8259516e) at panic+0x161 sys/kern/subr_prf.c:198
pmap_remove_ptes(fffffd806a039d88,fffffd8005e34000,7fbfbffff000,7f7fffe00000,7f7fffef4000,0,4f7641876f0d6f63) at pmap_remove_ptes+0x32e
pmap_do_remove(fffffd806a039d88,7f7fff7f4000,7f7fffef4000,0) at pmap_do_remove+0x438 sys/arch/amd64/amd64/pmap.c:1864
uvm_unmap_kill_entry_withlock(fffffd8066f25ee8,fffffd806b865310,0) at uvm_unmap_kill_entry_withlock+0x1a2 sys/uvm/uvm_map.c:1928
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline]
uvm_map_teardown(fffffd8066f25ee8) at uvm_map_teardown+0x167 sys/uvm/uvm_map.c:2578
uvmspace_free(fffffd8066f25ee8) at uvmspace_free+0x86 sys/uvm/uvm_map.c:3504
reaper(ffff8000ffff9ce8) at reaper+0x15d sys/kern/kern_exit.c:448
end trace frame: 0x0, count: -8

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/06 04:28 openbsd 547fa5084745 6d752409 .config console log report ci-openbsd-main panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR
2022/11/03 15:17 openbsd d32eaf928f1e 7a2ebf95 .config console log report ci-openbsd-multicore panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR
2022/10/12 17:18 openbsd ddd5e87dd012 89b5a509 .config console log report [disk image] [bsd.gdb] [kernel image] ci-openbsd-multicore panic: pmap_remove_ptes: unmanaged page marked PG_PVLIST: va ADDR, opte ADDR
* Struck through repros no longer work on HEAD.