summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorWei Liu <wei.liu2@citrix.com>2014-03-15 20:11:47 +0400
committerDavid Vrabel <david.vrabel@citrix.com>2014-03-25 14:38:30 +0400
commit09ed3d5ba06137913960f9c9385f71fc384193ab (patch)
tree582150ce743efb10051e0bc13747e3e1a24005b9 /arch
parentb098d6726bbfb94c06d6e1097466187afddae61f (diff)
downloadlinux-09ed3d5ba06137913960f9c9385f71fc384193ab.tar.xz
xen/balloon: flush persistent kmaps in correct position
Xen balloon driver will update ballooned out pages' P2M entries to point to scratch page for PV guests. In 24f69373e2 ("xen/balloon: don't alloc page while non-preemptible", kmap_flush_unused was moved after updating P2M table. In that case for 32 bit PV guest we might end up with P2M X -----> S (S is mfn of balloon scratch page) M2P Y -----> X (Y is mfn in persistent kmap entry) kmap_flush_unused() iterates through all the PTEs in the kmap address space, using pte_to_page() to obtain the page. If the p2m and the m2p are inconsistent the incorrect page is returned. This will clear page->address on the wrong page which may cause subsequent oopses if that page is currently kmap'ed. Move the flush back between get_page and __set_phys_to_machine to fix this. Signed-off-by: Wei Liu <wei.liu2@citrix.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com> Cc: stable@vger.kernel.org # 3.12+
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions