From: Tim Deegan Subject: Re: shadow2 corrupting PV guest state Date: Tue, 24 Oct 2006 10:09:04 +0100 Message-ID: <20061024090904.GA10105@york.uk.xensource.com> References: <453020EE.4080603@goop.org> <200610240718.k9O7IgF22580@photon.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <200610240718.k9O7IgF22580@photon.sky.yk.fujitsu.co.jp> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Doi.Tsunehisa@jp.fujitsu.com Cc: Tim Deegan , Xen-devel List-Id: xen-devel@lists.xenproject.org Hi, At 16:18 +0900 on 24 Oct (1161706722), Doi.Tsunehisa@jp.fujitsu.com wrote: > In my investigation, get_page() assumes that the page frame is in > use. But, the page_info structure of released page frame should not > be treated as inuse. Thus the nd value might be invalid value in this > situation, I think. True, but we don't look at nd unless the page is allocated... > if ( unlikely((x & PGC_count_mask) == 0) || /* Not allocated? */ > unlikely((nx & PGC_count_mask) == 0) || /* Count overflow? */ > unlikely(d != _domain) ) /* Wrong owner? */ Cheers, Tim.