1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/sys/ufs/ffs
Kirk McKusick 0eabe33087 Updates to UFS/FFS superblock integrity checks when reading a superblock.
Have to add a check that the computed cylinder group size does not
exceed the block size of the filesystem.

It is also necessary to validate additional parameters when a
superblock is going to be used in read-only mode if its supplementary
information is going to be read in to ensure that the size and
location of the supplementary information is valid. Also when a
warning is raised let it be accepted, but bound the flagged field
to the value checked by the warning.

No legitimate superblocks should fail as a result of these changes.

Reported by:  Bob Prohaska, John-Mark Gurney, and Mark Millard
Tested by:    Peter Holm
Reviewed by:  Peter Holm
MFC after:    2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D38668
2023-03-07 15:02:19 -08:00
..
ffs_alloc.c Explicitly initialize rather than reading newly allocated UFS inodes. 2022-08-13 13:51:25 -07:00
ffs_balloc.c
ffs_extern.h Explicitly initialize rather than reading newly allocated UFS inodes. 2022-08-13 13:51:25 -07:00
ffs_inode.c Another fix to build from 064e6b4. 2022-07-13 21:05:05 -07:00
ffs_rawread.c
ffs_snapshot.c Enable taking snapshots on UFS/FFS filesystems using journaled soft updates. 2022-11-12 22:56:03 -08:00
ffs_softdep.c ffs_syncvnode(): avoid a LoR for SU 2023-01-14 20:28:11 +02:00
ffs_subr.c Updates to UFS/FFS superblock integrity checks when reading a superblock. 2023-03-07 15:02:19 -08:00
ffs_suspend.c UFSSUSPEND: unbusy mp in EDADLK case 2022-12-30 11:44:20 +02:00
ffs_tables.c
ffs_vfsops.c Stop cleaning MNT_LOCAL on unmount 2023-01-14 20:28:11 +02:00
ffs_vnops.c FFS: truncate write if it would exceed the fs max file size or RLIMIT_FSIZE 2022-09-24 19:41:57 +03:00
fs.h Increase the maximum size of the journaled soft-updates journal. 2022-10-21 11:00:00 -07:00
softdep.h