[Bug 245907] fsck_ufs segfaults with gjournal (SU+J)

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 19 May 2021 18:21:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=245907

Robert Wing <rew@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rew@FreeBSD.org

--- Comment #6 from Robert Wing <rew@FreeBSD.org> ---
Created attachment 225092
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=225092&action=edit
fsck_ffs fix

Proposed patch, satisfies the previously provided reproducer.

The segfault was being hit in ckfini() (sbin/fsck_ffs/fsutil.c) while
attempting to traverse the buffer cache. 

The tail queue used for the buffer cache isn't initialized before dropping into
gjournal_check().

The buffer cache appears to be unused when doing an `fsck_ffs -p` on a
gjournaled filesystem.

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