NetBSD Problem Report #39277

From apb@cequrux.com  Sun Aug  3 12:48:25 2008
Return-Path: <apb@cequrux.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 72DCC63B975
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  3 Aug 2008 12:48:25 +0000 (UTC)
Message-Id: <20080803124525.A4E90E9331A@apb-laptoy.apb.alt.za>
Date: Sun,  3 Aug 2008 12:45:25 +0000 (UTC)
From: apb@cequrux.com
To: gnats-bugs@gnats.NetBSD.org
Subject: wapbl+nullfs crash
X-Send-Pr-Version: 3.95

>Number:         39277
>Category:       kern
>Synopsis:       wapbl+nullfs crash
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 03 12:50:00 +0000 2008
>Closed-Date:    Tue Nov 27 20:41:38 +0000 2018
>Last-Modified:  Tue Nov 27 20:41:38 +0000 2018
>Originator:     Alan Barrett
>Release:        NetBSD 4.99.71
>Organization:
Not much
>Environment:
System: NetBSD 4.99.71
Architecture: i386
Machine: i386
>Description:
	The system crashed while attempting to edit a file in a nullfs
	file system where the lower layer was ffs with wapbl logging.

>How-To-Repeat:
	boot a wapbl-enabled kernel.

        mount all file systems without logging.  This includes "/" as a
        plain ffs file system, "/xetc" as nullfs backed by the root file
        system, and several others.

        enable logging on all ffs file systems, via "mount -u -o log ${dir}"

	attempt to edit a file on a nullfs file system backed by ffs:

	$ sudo vi /xetc/rc

	panic: kernel diagnostic assertion "!(bp->b_oflags & BO_DELWRI)"
	failed, file .../vfs_wapbl.c line 898
	[...]
	db{0}> bt
	breakpoint ...
	panic ...
	__kernassert ...
	wapbl_add_buf ...
	bdwrite ...
	ffs_alloccg ...
	ffs_hashalloc ...
	ffs_alloc ...
	ffs_balloc_ufs1 ...
	ffs_balloc ...
	ufs_gop_alloc ...
	ufs_balloc_range ...
	ffs_write ...
	layer_bypass ...
	VOP_WRITE ...
	vn_write ...
	dofilewrite ...
	sys_pwrite ...
	syscall ...
>Fix:
	Unknown

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Tue, 27 Nov 2018 20:41:38 +0000
State-Changed-Why:
Assuming this is fixed now, I heavily use wapbl+nullfs. Reply or create a new bug if you are still having issues.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.