Patch
0502e0adae2 "x86: correct instances of PGC_allocated clearing" introduced
grabbing extra references for pages that drop references tied to PGC_allocated.
However, these pages are actually owned by dom_cow, resulting both sharing and
unsharing breaking.
Signed-off-by: Tamas K Lengyel <tamas@tklengyel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
}
/* Acquire an extra reference, for the freeing below to be safe. */
- if ( !get_page(cpage, cd) )
+ if ( !get_page(cpage, dom_cow) )
{
ret = -EOVERFLOW;
mem_sharing_page_unlock(secondpg);
mem_sharing_page_unlock(page);
if ( last_gfn )
{
- if ( !get_page(page, d) )
+ if ( !get_page(page, dom_cow) )
{
put_gfn(d, gfn);
domain_crash(d);