From: Tim Deegan Subject: Re: regression from 22242:7831b8e5aae2 (x86 guest pagetable walker: check for invalid bits in pagetable entries)? Date: Thu, 23 Feb 2012 10:33:51 +0000 Message-ID: <20120223103351.GB25694@ocelot.phlegethon.org> References: <4F3E855E0200007800073B20@nat28.tlf.novell.com> <20120217162344.GA59026@ocelot.phlegethon.org> <4F3E95610200007800073B97@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <4F3E95610200007800073B97@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org At 16:58 +0000 on 17 Feb (1329497937), Jan Beulich wrote: > >>> On 17.02.12 at 17:23, Tim Deegan wrote: > > At 15:50 +0000 on 17 Feb (1329493838), Jan Beulich wrote: > >> The problem appears to be that the or-ing in of PFEC_reserved_bit > >> happens without consideration of PFEC_present. If you can confirm > >> I'm not mis-interpreting things, fixing this should be relatively > >> strait forward (though the question would be whether it should be > >> guest_walk_tables() or its callers that should be fixed). > > > > We should fix it in guest_walk_tables, since AFAICS it's possible for > > PFEC_reserved_bit to be set based on a bad higher-level entry even if a > > lower-level one has _PAGE_PRESENT clear. > > > > Something like the attached (compile-tested only) patch? > > That was really fast, thanks! > > Yes, that looks like it should do it. We'll want to give it a try early > next week. I've applied it, since it seemed not to break anything and I'll be away from my test boxes for a while. Let me know of you're still seeing any problems. Cheers, Tim.