freebsd-nq/sys/ufs
Ian Dowse 5d1731a783 Extend the sanity checks in ufs_lookup to ensure that each directory
entry fits within its DIRBLKSIZ block. The surrounding code is
extremely fragile with respect to corruption of the directory entry
'd_reclen' field; if directory corruption occurs, it can blindly
scan forward beyond the end of the filesystem block. Usually this
results in a 'fault on nofault entry' panic.

Directory corruption is now much more likely to be detected, resulting
in a 'ufs_dirbad' panic. If the filesystem is read-only, it will
simply print a warning message, and skip the corrupted block.

Reviewed by:	mckusick
2001-02-04 01:52:11 +00:00
..
ffs Fix a race between the syncer and umount. When you umount a softupdates 2001-01-30 06:31:59 +00:00
ifs - Move ifs_init() so that it can initialize ifs_inode_hash_mtx. 2000-12-14 09:15:27 +00:00
mfs Add VOP_*VOBJECT vops, because MFS requires explicit vop specification. 2000-09-12 16:21:16 +00:00
ufs Extend the sanity checks in ufs_lookup to ensure that each directory 2001-02-04 01:52:11 +00:00