HomeFreeBSD

Add more accurate directory entries check

Description

Add more accurate directory entries check

Rename ext2_dirbadentry() to ext2_check_direntry(). Add directory
entry inode value check, and call ext2_check_direntry() in all cases.
The dirchk sysctl is removed.

PR: 259024,259041
Reported by: Robert Morris
Reviewed by: pfg
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D33374

Details

Provenance
fsuAuthored on Oct 29 2021, 12:45 PM
Reviewer
pfg
Differential Revision
D33374: Add more accurate directory entries check
Parents
rG5034b44574c4: Remove unnecessary e2fs_first_dblock value check
Branches
Unknown
Tags
Unknown