From: Ian Campbell Subject: Re: vmalloc_sync_all crash still happening on some machines Date: Tue, 20 Dec 2011 17:15:07 +0000 Message-ID: <1324401307.23729.66.camel@zakaz.uk.xensource.com> References: <20208.46342.885854.11320@mariner.uk.xensource.com> <1324398482.23729.48.camel@zakaz.uk.xensource.com> <20208.48408.563986.412467@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20208.48408.563986.412467@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Konrad Rzeszutek Wilk , David Vrabel , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2011-12-20 at 16:51 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] vmalloc_sync_all crash still happening on some machines"): > > More specifically it seems to be > > 6bec8b4a4c14095d0b7ce424db9d583c3decae6c from Jeremy's xen/next-2.6.32 > > branch. > > My script is still pulling from Jeremy's github. I see that the tree > on git.kernel.org has many new changesets so I'll switch back to that. > I guess I naively assumed that having established two trees Jeremy > might push to both of them... > > > I suspect that's a red-herring though since I bet the vmalloc fixes > > simply never got backported to this tree. > > Yes, it looks like they didn't. Looking at the tree the vmalloc_sync_all() in alloc_vm_area() is present and has been for ages. The upstream stuff I was thinking of was David Vrabel's work to make the sync unnecessary. The only difference in vmalloc_sync_all seems to be that 2.6.32 uses spin_lock_irqsave() while upstream uses just spin_lock() which doesn't seem likely to make a difference. The actual bug you are seeing is hitting the BUG_ON(pmd_page(*pmd) != pmd_page(*pmd_k)) towards the end of vmalloc_sync_one(). David, do you remember from when you were digging into this stuff what it actually means? I suppose we could backport the stuff to make vmalloc_sync_all unnecessary, but I guess there'd be no guarantee it would help since the root cause isn't really understood. Ian.