๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.fs
1 messages
1 total messages Started by bugzilla-noreply Tue, 03 Nov 2026 09:46
[Bug 296269] zfs panic: NULL deref in zfs_acl_release_nodes during znode reclaim (15.1-RELEASE)
#29
Author: bugzilla-noreply
Date: Tue, 03 Nov 2026 09:46
36 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads