From: "Jan Beulich" Subject: Re: error in xen/arch/x86/mm.c:get_page during migration Date: Thu, 28 Feb 2013 15:15:00 +0000 Message-ID: <512F828402000078000C2171@nat28.tlf.novell.com> References: <0DB93BA9-027D-427D-8D3A-8F708558E607@gridcentric.ca> <20130228115606.GD27704@ocelot.phlegethon.org> <512F728B02000078000C20B5@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering , Andres Lagar-Cavilla Cc: Tim Deegan , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 28.02.13 at 15:59, Andres Lagar-Cavilla wrote: > On Feb 28, 2013, at 9:06 AM, "Jan Beulich" wrote: > >>>>> On 28.02.13 at 12:56, Tim Deegan wrote: >>> At 09:52 -0500 on 25 Feb (1361785966), Andres Lagar-Cavilla wrote: >>>> There seems to be something else amiss though. Unless I am parsing >>>> this incorrectly, taf == PGT_writable | PGT_pae_xen_l2? And caf == PAT >>>> | PCD? Looks like a very unlikely combination >>> >>> By my reading, >>> >>> taf = 0x7400000000000001 = typecount 1, PGT_writable_page | PGT_validated >>> caf = 0x0180000000000000 = refcount 0, PGC_state_free >> >> Right. > D'oh :) > > Sharing code never sets PGT_writable, only sets/clears PGT_shared. I tend to > think the dom_cow rd belies a different problem. To use dom_cow, the domain > has to have an explicit domctl that enables memory sharing. In that case, Olaf, could you simply set dom_cow to some invalid pointer right after it got set up through domain_create(), so that any dereference of it would blow up? That might be the faster path towards finding the first bogus use. Jan