NetBSD Problem Report #41261

From www@NetBSD.org  Tue Apr 21 19:41:33 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 2878263BD8A
	for <gnats-bugs@gnats.netbsd.org>; Tue, 21 Apr 2009 19:41:33 +0000 (UTC)
Message-Id: <20090421194132.E47C263BC38@www.NetBSD.org>
Date: Tue, 21 Apr 2009 19:41:32 +0000 (UTC)
From: joerg@NetBSD.org
Reply-To: joerg@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: Crash with nullfs
X-Send-Pr-Version: www-1.0

>Number:         41261
>Category:       kern
>Synopsis:       Crash with nullfs
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 21 19:45:00 +0000 2009
>Last-Modified:  Tue Apr 28 00:20:01 +0000 2009
>Originator:     Joerg Sonnenberger
>Release:        NetBSD 5.0rc4
>Organization:
TNF
>Environment:
>Description:
panic: kernel diagnostic assertion "success" failed: file "../../../../
fatal breakpoint trap in supervisor mode
trap type 1 code 0 rip ffffffff80518b75 cs 8 rflags 246 cr2  7f7ffd96cf00 cpl 
Stopped in pid 778.1 (mount_null) at    netbsd:breakpoint+0x5:  leave
db{3}> bt
breakpoint() at netbsd:breakpoint+0x5
cpu_Debugger() at netbsd:cpu_Debugger+0x9
panic() at netbsd:panic+0x24d
__kernassert() at netbsd:__kernassert+0x2d
uvm_pagealloc_strat() at netbsd:uvm_pagealloc_strat+0x549
pmap_growkernel() at netbsd:pmap_growkernel+0x322
uvm_map_prepare() at netbsd:uvm_map_prepare+0x230
uvm_map() at netbsd:uvm_map+0xd0
uvm_km_alloc() at netbsd:uvm_km_alloc+0xa8
kmem_backend_alloc() at netbsd:kmem_backend_alloc+0x76
vmem_xalloc() at netbsd:vmem_xalloc+0x3fc
vmem_alloc() at netbsd:vmem_alloc+0xf2
kmem_alloc() at netbsd:kmem_alloc+0x3d
hashinit() at netbsd:hashinit+0x56
nullfs_mount() at netbsd:nullfs_mount+0x176
VFS_MOUNT() at netbsd:VFS_MOUNT+0x44
do_sys_mount() at netbsd:do_sys_mount+0x625
sys___mount50() at netbsd:sys___mount50+0x33
syscall() at netbsd:syscall+0xb6

>How-To-Repeat:
Happens reproducable during bulk build setup.
>Fix:

>Audit-Trail:
From: Andrew Doran <ad@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
	netbsd-bugs@netbsd.org
Subject: Re: kern/41261: Crash with nullfs
Date: Wed, 22 Apr 2009 20:52:04 +0000

 On Tue, Apr 21, 2009 at 07:45:00PM +0000, joerg@NetBSD.org wrote:

 > fatal breakpoint trap in supervisor mode
 > trap type 1 code 0 rip ffffffff80518b75 cs 8 rflags 246 cr2  7f7ffd96cf00 cpl 
 > Stopped in pid 778.1 (mount_null) at    netbsd:breakpoint+0x5:  leave
 > db{3}> bt
 > breakpoint() at netbsd:breakpoint+0x5
 > cpu_Debugger() at netbsd:cpu_Debugger+0x9
 > panic() at netbsd:panic+0x24d
 > __kernassert() at netbsd:__kernassert+0x2d
 > uvm_pagealloc_strat() at netbsd:uvm_pagealloc_strat+0x549
 > pmap_growkernel() at netbsd:pmap_growkernel+0x322
 > uvm_map_prepare() at netbsd:uvm_map_prepare+0x230
 > uvm_map() at netbsd:uvm_map+0xd0
 > uvm_km_alloc() at netbsd:uvm_km_alloc+0xa8
 > kmem_backend_alloc() at netbsd:kmem_backend_alloc+0x76
 > vmem_xalloc() at netbsd:vmem_xalloc+0x3fc
 > vmem_alloc() at netbsd:vmem_alloc+0xf2
 > kmem_alloc() at netbsd:kmem_alloc+0x3d
 > hashinit() at netbsd:hashinit+0x56
 > nullfs_mount() at netbsd:nullfs_mount+0x176
 > VFS_MOUNT() at netbsd:VFS_MOUNT+0x44
 > do_sys_mount() at netbsd:do_sys_mount+0x625
 > sys___mount50() at netbsd:sys___mount50+0x33
 > syscall() at netbsd:syscall+0xb6

 ptp_va2o() can return duplicate offsets for the same uvm_object?
 Or there is a bug in its use? I'd be somewhat surprised.

From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/41261: Crash with nullfs
Date: Tue, 28 Apr 2009 02:16:16 +0200

 On Wed, Apr 22, 2009 at 08:55:03PM +0000, Andrew Doran wrote:
 >  ptp_va2o() can return duplicate offsets for the same uvm_object?
 >  Or there is a bug in its use? I'd be somewhat surprised.

 The bug is calling hashinit with desiredvnodes as argument.
 That can be a lot of kernel memory...

 Joerg

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.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.