HomeFreeBSD

fsck_ufs: fix segfault with gjournal

Description

fsck_ufs: fix segfault with gjournal

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 was not initialized before dropping into gjournal_check().

Initialize the buffer cache before calling gjournal_check().

PR: 245907
Reviewed by: jhb, mckusick
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30537

Details

Provenance
rewAuthored on Jun 3 2021, 1:41 AM
Reviewer
jhb
Differential Revision
D30537: fsck_ffs(8): do bufinit() just before gjournal_check()
Parents
rGe7dc08415a32: mmc: ignore CRC errors from CMD13 (status) when changing rates
Branches
Unknown
Tags
Unknown