NetBSD Problem Report #43796

From clc@intercal.org.uk  Tue Aug 24 07:26:47 2010
Return-Path: <clc@intercal.org.uk>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 8CD1D63BBEB
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 24 Aug 2010 07:26:47 +0000 (UTC)
Message-Id: <20100824072644.8E2FE30ACD@give-up.intercal.org.uk>
Date: Tue, 24 Aug 2010 08:26:44 +0100 (BST)
From: clc@intercal.org.uk
Reply-To: clc@intercal.org.uk
To: gnats-bugs@gnats.NetBSD.org
Subject: Kernel panic when loading /usr/lkm/pf.o
X-Send-Pr-Version: 3.95

>Number:         43796
>Category:       kern
>Synopsis:       Kernel panic when loading /usr/lkm/pf.o
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 24 07:30:00 +0000 2010
>Closed-Date:    Sat Feb 10 09:54:22 +0000 2018
>Last-Modified:  Sat Feb 10 09:54:22 +0000 2018
>Originator:     clc@intercal.org.uk
>Release:        NetBSD 5.0.2
>Organization:
>Environment:


System: NetBSD give-up.intercal.org.uk 5.0.2 NetBSD 5.0.2 (XEN3_DOMU) #0: Sat Feb 6 13:42:20 UTC 2010 builds@b8.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/amd64/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/amd64/compile/XEN3_DOMU amd64
Architecture: x86_64
Machine: amd64
>Description:
As soon as I issue the command:

modload /usr/lkm/pf.o

I see a kernel panic message on console:

give-up# modload /usr/lkm/pf.o 
panic: kernel diagnostic assertion "cv_is_valid(cv)" failed: file "/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/kern/kern_condvar.c", line 329
Begin traceback...
copyright() at netbsd:__kernassert+0x2b1f8
uvm_fault(0xffffa000138ce8b0, 0x1000, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip ffffffff803791b4 cs e030 rflags 10246 cr2  1008 cpl 0 rsp ffffa000139274f0
panic: trap
Faulted in mid-traceback; aborting...
dump to dev 142,1 not possible
rebooting...

I don't know if this only happens when running under Xen, as I haven't been
able to test on other environments. The only report I have seen which mentions
a similar problem is #38245, however that report mentions older kernels and
this happens with the latest, 5.0.2; also I don't need to load any pf rules
(or in fact don't even have a chance to do that as the panic is immediate).

>How-To-Repeat:
	reboot
	modload /usr/lkm/pf.o
>Fix:

>Release-Note:

>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/43796: Kernel panic when loading /usr/lkm/pf.o
Date: Tue, 24 Aug 2010 12:43:04 +0200

 On Tue, Aug 24, 2010 at 07:30:00AM +0000, clc@intercal.org.uk wrote:
 >  [...]
 > System: NetBSD give-up.intercal.org.uk 5.0.2 NetBSD 5.0.2 (XEN3_DOMU) #0: Sat Feb 6 13:42:20 UTC 2010 builds@b8.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/amd64/201002061851Z-obj/home/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/amd64/compile/XEN3_DOMU amd64
 > Architecture: x86_64
 > Machine: amd64
 > >Description:
 > As soon as I issue the command:
 > 
 > modload /usr/lkm/pf.o

 modules are not supported on Xen.

 -- 
 Manuel Bouyer <bouyer@antioche.eu.org>
      NetBSD: 26 ans d'experience feront toujours la difference
 --

State-Changed-From-To: open->suspended
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 09 Oct 2010 20:54:30 +0000
State-Changed-Why:
Modules don't work on Xen because some of the kernel internal data types are
different sizes. (This applies both to the old-style 5.x modules and to the
new modules in -current.) Won't be fixed in 5.x.


State-Changed-From-To: suspended->closed
State-Changed-By: maxv@NetBSD.org
State-Changed-When: Sat, 10 Feb 2018 09:54:22 +0000
State-Changed-Why:
Close this PR. It's not relevant anymore, LKM is long gone, and Xen
now supports kernel modules.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.