🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #884

[Bug 297976] Panic in the kern_symlinkat()->ffs_truncate()->flush_newblk_dep(): flush_newblk_dep: Bad newblk

#884
From: bugzilla-noreply
Date: Wed, 02 Dec 2026 06:24
53 lines
4373 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297976

--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch stable/15 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=ad272cff9966f82849f7c136a4a8d5778e9b8c1f

commit ad272cff9966f82849f7c136a4a8d5778e9b8c1f
Author:     Maxim Sobolev <sobomax@FreeBSD.org>
AuthorDate: 2026-10-04 19:24:16 +0000
Commit:     Maxim Sobolev <sobomax@FreeBSD.org>
CommitDate: 2026-12-02 06:24:02 +0000

    stress2: add a reproducer for the flush_newblk_dep() "Bad newblk" panic

    flush_pagedep_deps() drops the soft updates lock to obtain the vnode of
    a new directory.  If its MKDIR_BODY dependency completes in that window,
    the lookup of the directory's first block in flush_newblk_dep() can find
    a stale allocindir left behind by a previous owner of the same block,
    relocated by ffs_reallocblks() and freed, and panic.

    The test grows interleaved files past UFS_NDADDR to keep clusters being
    relocated, while other workers create subdirectories in a parent with
    IN_ENDOFF set, so that ffs_vput_pair() syncs it, and fsync() them to
    complete the mkdir dependencies.  The file system layout and the way
    the writers put their blocks on disk are arranged so that a new
    directory takes over a freed block whose dependency is still retained;
    the details are in the script.  With dtrace=1, the test also counts how
    often this precondition is met, which works on a fixed kernel too.

    PR:             297976
    Reviewed by:    kib, pho
    Tested by:      pho
    Sponsored by:   Sippy Software, Inc.
    Differential revision:  https://reviews.freebsd.org/D59356

    (cherry picked from commit a127039dd0c24bc18b3513322d22fd8fee6724eb)

 tools/test/stress2/misc/mkdir_blkreuse.sh (new +x) | 584 +++++++++++++++++++++
 1 file changed, 584 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-297976-227-nLA6DJLNPN@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-297976-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-can.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!peer05.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 297976] Panic in the
 kern_symlinkat()->ffs_truncate()->flush_newblk_dep(): flush_newblk_dep: Bad
 newblk
Date: Wed, 02 Dec 2026 06:24:55 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-297976-227-nLA6DJLNPN@https.bugs.freebsd.org/bugzilla/>
References: <bug-297976-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="40789"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1796192695;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=/5irLSBzilWNXkgX9m5mTlCfG9n+PYap37sv6iG1PZQ=;
	b=ZayQ2n8OQchLQv2v3jj+Y9esoJ3N0ntnosGrlTSbPmhy0viic8vl41tCzmKKb0bhzgxX3I
	LZPaQYN3mTMuBNNJarGqeeXZYEgsakazD3YYhZjqTUioky5m4NqxTkrnxVOzzGtGiGWXfi
	uuZROeWzpVAIR3lvdCSyemVYh10a+0Oy1WFXfozOIvRmNXcXDt+Oa+c6QuROA08Nlk+c5k
	ZUXJJIN2HxeMCAljkbHuMSWEQSIIWfli6sjvNM12zgoj9L2QTxVruLLbx9vxPUyguiueq1
	xqgjp+seIN2cirZNcS5eLPTncLI3mo8g6Adh31E1rDUPc7ykeIHNc5X+0QSslg==
X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-297976-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes
X-Received-Bytes: 4175