NetBSD Problem Report #55681

From  Wed Sep 23 17:12:15 2020
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 3EEA71A9217
	for <>; Wed, 23 Sep 2020 17:12:15 +0000 (UTC)
Message-Id: <>
Date: Wed, 23 Sep 2020 17:12:14 +0000 (UTC)
Subject: Kernel can panic on shutdown if accounting is enabled due to deadfs call
X-Send-Pr-Version: www-1.0

>Number:         55681
>Category:       kern
>Synopsis:       Kernel can panic on shutdown if accounting is enabled due to deadfs call
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 23 17:15:01 +0000 2020
>Originator:     Jason Thorpe
>Release:        NetBSD 9.99.72
RISCy Business
NetBSD 9.99.72 (multiprocessor Alpha, in this case, but this is a MI issue)
The kernel can panic due to a deadfs call during halt or reboot if accounting was enabled and not disabled before the reboot() system call.

[ 68841.1748690] syncing disks... done
[ 68842.3274481] unmounting file systems...
[ 68858.3562613] Skipping crash dump on recursive panic
[ 68858.4129006] panic: dead fs operation used
[ 68858.4627047] cpu1: Begin traceback...
[ 68858.5076248] alpha trace requires known PC =eject=
[ 68858.5662176] cpu1: End traceback...
Stopped in pid 0.762 (system) at        netbsd:cpu_Debugger+0x4:        ret
db{1}> bt
cpu_Debugger() at netbsd:cpu_Debugger+0x4
db_panic() at netbsd:db_panic+0xc8
vpanic() at netbsd:vpanic+0x10c
panic() at netbsd:panic+0x58
dead_panic() at netbsd:dead_panic+0x20
VFS_STATVFS() at netbsd:VFS_STATVFS+0x34
acct_chkfree() at netbsd:acct_chkfree+0x4c
acctwatch() at netbsd:acctwatch+0xb0
--- kernel thread backstop ---

Enable accounting, and use "halt" or "reboot" to shut down.  Issue is not 100% reproducible, but will happen eventually.
Not provided.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.