Article View: muc.lists.freebsd.fs
Article #29[Bug 296269] zfs panic: NULL deref in zfs_acl_release_nodes during znode reclaim (15.1-RELEASE)
From: bugzilla-noreply
Date: Tue, 03 Nov 2026 09:46
Date: Tue, 03 Nov 2026 09:46
36 lines
3514 bytes
3514 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296269 --- Comment #3 from Eero Hรคnninen <fax@nohik.ee> --- Closing this out โ the root cause turned out to be outside ZFS. We run an in-house kernel module (a MAC policy, mac_bindmap) that does not touch the filesystem directly, but had a locking bug: it inserted entries into a TAILQ without holding the lock that the matching removal path uses. Under heavy concurrency (several thousand php-fpm workers hammering mac_set_proc(2)), two threads racing through the insert path corrupted the list head and, more broadly, kernel memory. That stray corruption is what showed up later as the inconsistent cached aclnode list and the NULL-deref panic in zfs_acl_release_nodes reported here. After fixing the locking in our module (wrapping the TAILQ_INSERT_TAIL in the same lock already used around TAILQ_REMOVE), the ZFS panics stopped completely. So this was not a defect in ZFS or the base system โ the on-disk data was intact all along, consistent with the in-memory-only corruption noted in the report. Apologies for the noise, and thanks for taking a look. Please close as Not A Bug. -- 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-296269-3630-2hiB8tPYno@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<bug-296269-3630@https.bugs.freebsd.org/bugzilla/>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.fs Subject: [Bug 296269] zfs panic: NULL deref in zfs_acl_release_nodes during znode reclaim (15.1-RELEASE) Date: Tue, 03 Nov 2026 09:46:14 +0000 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-fs@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <bug-296269-3630-2hiB8tPYno@https.bugs.freebsd.org/bugzilla/> References: <bug-296269-3630@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="62050"; mail-complaints-to="news-admin@muc.de" X-Original-To: fs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793699173; 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=p17heJIO3ZyCX9FB2cGga1QpgPNPifIu9pIx+iei41w=; b=dIC0fjEcmKtIH88f/1d7wXFG5WZnc/Go4qRusrxApg5LbZfAgwnXuTZv0fr0+bFJOmxlro 5h/ALJuEG0VAPOu1Ddz7WMf2RR/6NKsIcndpUBGwIc2aCGHj4+bF80OaufbaN+3EfOvYDD fE3izEJerQKgZxorUHhMGRrUCGWQ4Dn1S8w0IHGP3DCmDI9dr8BDh4FgB4qgwIR8FGzEfI KJKfUjUKIQlLUV8XBgR0ovJdLaq0N50NRp8C5V+FxRBfiFdTnDgasnUhJBYyk5hbvGFtEC csZU7wB6T0b48i/Aztp+zMfn9ijNrgpWU3CrwBcI6PpKU6yMzs8utU94aejb+A== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f In-Reply-To: <bug-296269-3630@https.bugs.freebsd.org/bugzilla/> Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes