NetBSD Problem Report #41161

From www@NetBSD.org  Mon Apr  6 21:10:30 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 C155763B8C8
	for <gnats-bugs@gnats.netbsd.org>; Mon,  6 Apr 2009 21:10:29 +0000 (UTC)
Message-Id: <20090406211029.6199663B8A5@www.NetBSD.org>
Date: Mon,  6 Apr 2009 21:10:29 +0000 (UTC)
From: vs@nifelheim.info
Reply-To: vs@nifelheim.info
To: gnats-bugs@NetBSD.org
Subject: FFSv2 w/ log and softdep: kernel panics on mount
X-Send-Pr-Version: www-1.0

>Number:         41161
>Category:       kern
>Synopsis:       FFSv2 w/ log and softdep: kernel panics on mount
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 06 21:15:00 +0000 2009
>Closed-Date:    Thu May 05 06:13:39 +0000 2016
>Last-Modified:  Thu May 05 06:13:39 +0000 2016
>Originator:     Volkmar Seifert
>Release:        NetBSD 5.0 RC3 / Sparc64
>Organization:
>Environment:
NetBSD nidhoegg 5.0_RC3 NetBSD 5.0_RC3 (GENERIC) #0: Fri Mar 20 18:16:48 UTC 2009  builds@b4.netbsd.org:/home/builds/ab/netbsd-5-0-RC3/sparc64/200903200521Z-obj/home/builds/ab/netbsd-5-0-RC3/src/sys/arch/sparc64/compile/GENERIC sparc64
>Description:
I have freshly installed NetBSD 5.0RC3 on my SUN Ultra-5, a Sparc64.
All my partitions are using FFSv2 with the log-option (except the root-partition, which is of course using FFSv1), and because I was ignorant of the fact log and softdep are mutual exclusive, I used both options at the same time. Upon mount, the kernel told me that softdep would be ignored because log was specified, and then trapped and fell into the debugger. This was absolutely reproducable, and could be solved only by removing softdep from /etc/fstab. 

That was Saturday. While I just now attempted to reproduce the problem for this PR, the kernel directly -panicked-, dumped, and rebooted. No more traps and kernel-debuggers. If necessary, I can provide the compressed core-dump for download (it's about 32MB).

As you can see from the environment, it was a standard "NetBSD 5.0_RC3 (GENERIC)"-Kernel, which is why I do not provide the compressed kernel, too. (I can do so, though, if really necessary)
>How-To-Repeat:
mount an FFSv2-drive with both options log and softdep using a NetBSD/sparc64 5.0RC3 Generic kernel.
>Fix:
Do not specify both options at the same time. 
They are mutually exclusive anyway, as can be read in the according man-pages.

A cleaner approach would be to really ignore the softdep-option when log was specified, and not only to print a message claiming to ignore it.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Thu, 05 May 2016 06:13:39 +0000
State-Changed-Why:
this got fixed before 5.0 was released (and I'm not sure how it managed to
get ignored since 2009...)


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