|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Is this a racing bug in page_make_sharable()?
Hi all,
Last time I reported this bug. And I now see some changes in your Xen
git master branch.
However, I think the problem still remains for ref-checking in page
migration to dom_cow.
I think I can construct a bug by interleaving the two code paths:
in guest_remove_page() | in page_make_sharable()
------------------------------------------------------------------------------------------------------------------------------
if ( p2m_is_shared(p2mt) ) .....
... .....
page = mfn_to_page(mfn); .....
.....
if ( !get_page_and_type(page,
d, PGT_shared_page) ) // success
.........
if ( page->count_info !=
(PGC_allocated | (2 + expected_refcnt)) ) // also pass
if ( unlikely(!get_page(page, d)) )
/* go on to remove page */ /* go on to add page to cow
domain */
-------------------------------------------------------------------------------------------------------------------------------------
is there anything that can already prevent such racing or is this really can
happen?
Thanks,
Nai Xia
On 2012å01æ17æ 18:53, Tim Deegan wrote:
At 22:43 +0800 on 16 Jan (1326753834), Nai Xia wrote: _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |