NetBSD Problem Report #49721
From gson@gson.org Thu Mar 5 15:26:54 2015
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 3DB7DA654B
for <gnats-bugs@gnats.NetBSD.org>; Thu, 5 Mar 2015 15:26:54 +0000 (UTC)
Message-Id: <20150305152617.97AD374586C@guava.gson.org>
Date: Thu, 5 Mar 2015 17:26:17 +0200 (EET)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@gnats.NetBSD.org
Subject: Running ATF tests crashes NetBSD 5 Xen domU
X-Send-Pr-Version: 3.95
>Number: 49721
>Category: port-xen
>Synopsis: Running ATF tests crashes NetBSD 5 Xen domU
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-xen-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 05 15:30:00 +0000 2015
>Closed-Date: Mon Dec 21 14:41:59 +0000 2015
>Last-Modified: Mon Dec 21 14:41:59 +0000 2015
>Originator: Andreas Gustafsson
>Release: NetBSD 5.2.3
>Organization:
>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:
In a comment to PR 47157, I said:
Issue 5: After manually starting xencommons and xend (in that order),
I tried installing a NetBSD 5.2 domU and running the ATF tests using
anita --vmm xen test http://ftp.netbsd.org/pub/NetBSD/NetBSD-5.2/amd64/
This ended in a domU kernel panic while running the fs/tmpfs/t_rename
test. This is reproducible, and also happens with a 5.1 domU, though
the exact test where the panic happens varies; so far, it has happened
in fs/tmpfs/t_rename, fs/tmpfs/t_remove, and fs/tmpfs/t_link. A 6.0.1
domU is not affected by this.
Since PR 47157 was focused on documentation issues and has now been closed,
I am opening a separate PR to track the NetBSD 5 panic issue.
>How-To-Repeat:
Running the following shell script will reproduce the bug by doing an
automated install of NetBSD/amd64 6.1.5 with Xen 4.2 in a qemu virtual
machine, installing a NetBSD 5.2.3 domU, and running the ATF tests in
it.
http://www.gson.org/netbsd/bugs/xen/crash-xen-domu.sh
Anita version 1.37 (in pkgsrc-current as misc/py-anita) is recommended
since some earlier versions can't reliably run a recursive invocation
of anita in the VM. You also need about 5 GB of disk space.
Before blaming qemu, please note that qemu was not involved in the
original panics reported in PR 47157.
>Fix:
>Release-Note:
>Audit-Trail:
From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: port-xen/49721: Running ATF tests crashes NetBSD 5 Xen domU
Date: Mon, 23 Mar 2015 16:59:20 +0200
After looking into this some more, I think the crashes are caused by a
combination of two issues:
1. NetBSD/amd64 5.2.3 panics when running the ATF tests if the kernel
is built with "options DIAGNOSTIC". This issue is not specific to Xen -
a GENERIC kernel with options DIAGNOSTIC running on the bare metal
panics, too.
2. The domU kernel in the NetBSD/amd64 5.2.3 release is built with
"options DIAGNOSTIC". My understanding is that this option is not
supposed to be enabled in release builds.
I believe the i386 kernels have the same issues as amd64, and 5.2.3
is not the only release of NetBSD 5 affected. "options DEBUG" is
also incorrectly being set, but that is not the cause of this bug.
My concern when filing this PR was that the panics might be caused by
some general bug in Xen or the NetBSD/Xen port that could also impact
more recent NetBSD versions. Since this appears not to be the case, I
do not intend to pursue these issues further; those who still have an
interest in the NetBSD-5 branch are welcome to fix them.
--
Andreas Gustafsson, gson@gson.org
State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Mon, 21 Dec 2015 14:41:59 +0000
State-Changed-Why:
NetBSD 5 is EOL.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.