From: Ian Campbell Subject: Re: [Xen-devel] Fwd: NetBSD xl core-dump not working... Memory fault (core dumped) Date: Tue, 12 Nov 2013 10:00:53 +0000 Message-ID: <1384250453.1883.37.camel@kazak.uk.xensource.com> References: <52770EED.9090804@gmx.de> <52781C27.2040508@gmail.com> <1383820189.26213.152.camel@kazak.uk.xensource.com> <1383906558.3189.81.camel@kazak.uk.xensource.com> <5281F953.2060101@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <5281F953.2060101@citrix.com> Sender: port-xen-owner@NetBSD.org To: Roger Pau =?ISO-8859-1?Q?Monn=E9?= Cc: "Miguel C." , xen-devel@lists.xensource.com, "port-xen@netbsd.org" List-Id: xen-devel@lists.xenproject.org On Tue, 2013-11-12 at 10:48 +0100, Roger Pau Monn=C3=A9 wrote: > > vaddr is certainly not NULL, it's checked right before. It could be > > non-NULL and still invalid if xc_map_foreign_range were buggy on NetB= SD, > > but that is surely used elsewhere? I suppose it might have mapped an = MFN > > which was either invalid (or became invalid, but your bug is > > deterministic, right?. IIRC NetBSD's privcmd foreign mappings are > > populated lazily and not immediately like on Linux? If that were the > > case (and I'm only vaguely aware of how NetBSD operates) then it woul= d > > be plausible that xc_map_foreign_range would succeed but that a > > subsequent attempt to access the region would fault? >=20 > Yes, NetBSD privcmd maps the region lazily (it does the actual map on > the page fault handler for that region). Thanks for the confirmation. Would it be expected that a message would be logged to dom0's dmesg if something went wrong here? > I have not tested it, but could > you give a try to the following patch: >=20 > http://mail-index.netbsd.org/port-xen/2012/06/27/msg007464.html >=20 > It's quite old, but I expect there hasn't been many changes in NetBSD > privcmd recently. >=20 > Roger. >=20