Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2021 18:21:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        fs@FreeBSD.org
Subject:   [Bug 245907] fsck_ufs segfaults with gjournal (SU+J)
Message-ID:  <bug-245907-3630-yt13ulqSoU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-245907-3630@https.bugs.freebsd.org/bugzilla/>
References:  <bug-245907-3630@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D245907

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=3D225092&action=
=3Dedit
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.=20

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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-245907-3630-yt13ulqSoU>