NetBSD Problem Report #55681

From www@netbsd.org  Wed Sep 23 17:12:15 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3EEA71A9217
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 23 Sep 2020 17:12:15 +0000 (UTC)
Message-Id: <20200923171214.658C41A9239@mollari.NetBSD.org>
Date: Wed, 23 Sep 2020 17:12:14 +0000 (UTC)
From: thorpej@me.com
Reply-To: thorpej@me.com
To: gnats-bugs@NetBSD.org
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
>Organization:
RISCy Business
>Environment:
NetBSD 9.99.72 (multiprocessor Alpha, in this case, but this is a MI issue)
>Description:
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
zero,(ra)
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 ---
db{1}>

>How-To-Repeat:
Enable accounting, and use "halt" or "reboot" to shut down.  Issue is not 100% reproducible, but will happen eventually.
>Fix:
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: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.