HomeFreeBSD

Bug fix to UFS/FFS superblock integrity checks when reading a superblock.

Description

Bug fix to UFS/FFS superblock integrity checks when reading a superblock.

One of the checks was that the cylinder group size (fs_cgsize)
matched that calculated by CGSIZE(). The value calculated by CGSIZE()
has changed over time as the filesystem has evolved. Thus comparing
the value of CGSIZE() of the current generation filesystem may not
match the size as computed by CGSIZE() that was in effect at the
time an older filesystem was created. Therefore the check for
fs_cgsize is changed to simply ensure that it is not larger than
the filesystem blocksize (fs_bsize).

Reported by: Martin Birgmeier
Tested by: Martin Birgmeier
MFC after: 1 month (with 076002f24d35)
PR: 264450
Differential Revision: https://reviews.freebsd.org/D35219

Details

Provenance
mckusickAuthored on Jun 11 2022, 6:04 PM
Differential Revision
D35219: Comprehensive UFS/FFS superblock integrity checks made when a superblock is read
Parents
rGfb6eaf74e9ea: LinuxKPI: 802.11: fix compiling with DEBUG
Branches
Unknown
Tags
Unknown