NetBSD Problem Report #40088
From www@NetBSD.org Wed Dec 3 00:52:55 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 8EC8463BD2D
for <gnats-bugs@gnats.netbsd.org>; Wed, 3 Dec 2008 00:52:55 +0000 (UTC)
Message-Id: <20081203005255.4F79263B8BD@narn.NetBSD.org>
Date: Wed, 3 Dec 2008 00:52:55 +0000 (UTC)
From: chris@dokein.co.uk
Reply-To: chris@dokein.co.uk
To: gnats-bugs@NetBSD.org
Subject: uvm_fault while using tmpfs
X-Send-Pr-Version: www-1.0
>Number: 40088
>Category: kern
>Synopsis: crash while using tmpfs
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: rmind
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 03 00:55:00 +0000 2008
>Closed-Date: Sun May 29 22:45:57 +0000 2011
>Last-Modified: Sun May 29 22:45:57 +0000 2011
>Originator: Chris Gilbert
>Release: NetBSD -current 2008-12-02
>Organization:
>Environment:
NetBSD 5.99.4 NetBSD 5.99.4 (GENERIC) #3: Tue Dec 2 21:32:04 GMT 2008 root@:/usr/obj/sys/arch/amd64/compile/GENERIC amd64
>Description:
While building on a 24 core machine (having just disabled 12 cores) tmpfs generated a uvm_fault:
uvm_fault(0xffff80012b442e70, 0x0, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip ffffffff804471b7 cs 8 rflags 10286 cr2 10 cpl 7 rsp ffff80012a5f3840
db{4}> bt
turnstile_block() at netbsd:turnstile_block+0x147
mutex_vector_enter() at netbsd:mutex_vector_enter+0x318
tmpfs_alloc_vp() at netbsd:tmpfs_alloc_vp+0x29
tmpfs_lookup() at netbsd:tmpfs_lookup+0x17d
VOP_LOOKUP() at netbsd:VOP_LOOKUP+0x63
getcwd_common() at netbsd:getcwd_common+0x304
sys___getcwd() at netbsd:sys___getcwd+0xc3
syscall() at netbsd:syscall+0xb6
I mounted tmpfs as:
mount -t tmpfs tmpfs /tmpfs
The server has 64GB of RAM. At the time it tmpfs had a full source and objdir on it.
The server also has no Swap configured, so no dump was made.
No ECC errors are shown in the iLO/IML logs.
>How-To-Repeat:
build and delete multiple builds.
I'd probably done ~6 builds on the server before the panic happened.
Note that I'd ctrl^C'd the currently running build, which had just started.
>Fix:
>Release-Note:
>Audit-Trail:
From: "Mindaugas Rasiukevicius" <rmind@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/40088 CVS commit: src/sys/fs/tmpfs
Date: Sun, 29 May 2011 22:29:08 +0000
Module Name: src
Committed By: rmind
Date: Sun May 29 22:29:07 UTC 2011
Modified Files:
src/sys/fs/tmpfs: tmpfs.h tmpfs_subr.c tmpfs_vfsops.c tmpfs_vnops.c
Log Message:
- Rework and document inode reference counting. Also document inode life
cycle (destruction part). Perform link counting in tmpfs_dir_attach()
and tmpfs_dir_detach(), instead of alloc/free and arbitrary places.
Fixes PR/44285, PR/44288, PR/44657 and likely PR/42484.
- Fix the race between the lookup and inode destruction. Fixes PR/43167
and its duplicates PR/40088, PR/40757.
- Improve tmpfs_rename() locking a little, fix kqueue event notifications
and also fix PR/43617. Add simplistic tmpfs_parentcheck_p(); to be
expanded and used for further rename() locking fixes.
- Cache directory entry "hint" in the tmpfs node, add tmpfs_dir_cached(),
and thus avoid unnecessary lookup in tmpfs_remove() and tmpfs_rmdir().
- Set correct _PC_FILESIZEBITS value in tmpfs_pathconf(). Fixes PR/43576.
- Few minor fixes.
To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/fs/tmpfs/tmpfs.h
cvs rdiff -u -r1.70 -r1.71 src/sys/fs/tmpfs/tmpfs_subr.c
cvs rdiff -u -r1.50 -r1.51 src/sys/fs/tmpfs/tmpfs_vfsops.c
cvs rdiff -u -r1.84 -r1.85 src/sys/fs/tmpfs/tmpfs_vnops.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Responsible-Changed-From-To: kern-bug-people->rmind
Responsible-Changed-By: rmind@NetBSD.org
Responsible-Changed-When: Sun, 29 May 2011 22:45:57 +0000
Responsible-Changed-Why:
State-Changed-From-To: open->closed
State-Changed-By: rmind@NetBSD.org
State-Changed-When: Sun, 29 May 2011 22:45:57 +0000
State-Changed-Why:
Fixed, thanks.
>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.