HomeFreeBSD

Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.

Description

Fix a bug in fsck_ffs(8) triggered by corrupted filesystems.

The last valid inode in the filesystem is maxino - 1, not maxino.
Thus validity checks should ino < maxino, not ino <= maxino.

Reported-by: Robert Morris
PR: 271312
MFC-after: 1 week
Sponsored-by: The FreeBSD Foundation

Details

Provenance
mckusickAuthored on May 27 2023, 11:07 PM
Parents
rGc79a1416955a: Updates to UFS/FFS superblock integrity checks when reading a superblock.
Branches
Unknown
Tags
Unknown