HomeFreeBSD

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

Description

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

When loading the root directory ensure that it is a directory
and has a size greater than the minimum directory size. If an
invalid root directory is found, fall back to full fsck.

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

Details

Provenance
mckusickAuthored on May 29 2023, 9:58 PM
Parents
rG5267120645fa: Cleanups to fsck_ffs(8).
Branches
Unknown
Tags
Unknown