NetBSD Problem Report #61000

From www@netbsd.org  Fri Nov 13 18:12:26 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
	 client-signature RSA-PSS (2048 bits) client-digest SHA256)
	(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 05DC71A923C
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 13 Nov 2026 18:12:26 +0000 (UTC)
Message-Id: <20261113181224.62E5F1A923F@mollari.NetBSD.org>
Date: Fri, 13 Nov 2026 18:12:24 +0000 (UTC)
From: nia@pkgsrc.org
Reply-To: nia@pkgsrc.org
To: gnats-bugs@NetBSD.org
Subject: reproducible panic & instability when mounting multiple LFS file systems on -current
X-Send-Pr-Version: www-1.0
X-From4GNATS: "nia@pkgsrc.org via gnats" <gnats-admin@NetBSD.org>

>Number:         61000
>Category:       kern
>Synopsis:       reproducible panic & instability when mounting multiple LFS file systems on -current
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 13 18:15:00 +0000 2026
>Last-Modified:  Sat Nov 14 16:45:01 +0000 2026
>Originator:     nia
>Release:        -current
>Organization:
The NetLFS Foundation
>Environment:
NetBSD  11.99.10 NetBSD 11.99.10 (GENERIC) #0: Sun Nov  8 13:15:11 UTC 2026  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/sparc64/compile/GENERIC sparc64
>Description:
this reproducible panic occurs during installation:

[  52.2614253] WARNING: the log-structured file system is experimental
[  52.2614253] WARNING: it may cause system crashes and/or corrupt data
[  52.2614253] panic: kernel diagnostic assertion "LIST_EMPTY(&vp->v_dirtyblkhd)" failed: file "/usr/src/sys/kern/vfs_subr.c", line 219                         
[  52.2614253] cpu0: Begin traceback...
[  52.2614253] cpu0: End traceback...
Stopped in pid 255.255 (mount_lfs) at   netbsd:cpu_Debugger+0x4:        nop

i tested this on amd64 (real hardware) and sparc64 (virtualized in qemu) and found the same results on both
>How-To-Repeat:
1. download recent -current iso from nycdn
2. run sysinst as usual
3. select "set sizes of netbsd partitions"
4. allocate separate partitions for / and /usr, for example 4GB for each
5. proceed
6. highlight "FFSv2ea" FS type and change it to "4.4LFS" for both / and /usr
7. select "Partition sizes ok"
8. continue
9. observe panic
>Fix:
seems like a recent regression from -10

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/61000: reproducible panic & instability when mounting
 multiple LFS file systems on -current
Date: Fri, 13 Nov 2026 22:54:35 +0000

 On Fri, Nov 13, 2026 at 06:15:00PM +0000, nia@pkgsrc.org via gnats wrote:
  > [  52.2614253] panic: kernel diagnostic assertion "LIST_EMPTY(&vp->v_dirtyblkhd)" failed: file "/usr/src/sys/kern/vfs_subr.c", line 219                         
  > [  52.2614253] cpu0: Begin traceback...
  > [  52.2614253] cpu0: End traceback...
  > Stopped in pid 255.255 (mount_lfs) at   netbsd:cpu_Debugger+0x4:        nop

 Some traceback :-(

 however, I don't suppose this will be that hard to reproduce in a more
 debug-friendly context...

 -- 
 David A. Holland
 dholland@netbsd.org

From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/61000: reproducible panic & instability when mounting
 multiple LFS file systems on -current
Date: Sat, 14 Nov 2026 16:44:03 +0000

 On Fri, Nov 13, 2026 at 10:55:02PM +0000, David Holland via gnats wrote:
 >  Some traceback :-(
 >  
 >  however, I don't suppose this will be that hard to reproduce in a more
 >  debug-friendly context...

 Here is the backtrace:

 kern_assert(1b061d8, 1b061c8, 1bc14f0, 1bc10e8, db, 10141c800) at netbsd:kern_assert+0x48
 vinvalbuf(101913bc0, 1, 100dda040, 10141c800, 0, 0) at netbsd:vinvalbuf+0x2b8
 mount_domount(10141c800, 17885dbf0, 205b950, 0, 2000000, 0) at netbsd:mount_domount+0x298
 do_sys_mount(10141c800, 1025f0, 0, ffffffffffffcea0, 2000000, ffffffffffffce58) at netbsd:do_sys_mount+0x420
 sys___mount50(10141c800, 17885dde0, 17885ddd0, fefefefe00000000, 17885dde0, 40710c88) at netbsd:sys___mount50+0x28
 syscall(17885ded0, d9a, 4076e208, 4076e20c, 10141c800, 17885df68) at netbsd:syscall+0x198

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.