freebsd-src/sys/ufs/ffs
Kirk McKusick f3f5368dfb Bug fix to UFS/FFS superblock integrity checks when reading a superblock.
The tests for number of cylinder groups (fs_ncg), inodes per cylinder
group (fs_ipg), and the size and layout of the cylinder group summary
information (fs_csaddr and fs_cssize) were overly restrictive and
would exclude some valid filesystems. These updates avoid precluding
valid fiesystems while still detecting rogue values that can crash or
hang the kernel.

Reported by: Chuck Silvers
Tested by:   Peter Holm
MFC after:   1 month (with 076002f24d)
Differential Revision: https://reviews.freebsd.org/D35219
2022-07-06 14:45:29 -07:00
..
ffs_alloc.c ffs(3): Fix a common typo in source code comments 2022-03-28 19:37:03 +02:00
ffs_balloc.c ffs: lock buffers after snaplk with LK_NOWITNESS 2022-02-01 06:54:50 +02:00
ffs_extern.h Consolodate four copies of the STDSB define into a single place. 2021-11-14 22:10:16 -08:00
ffs_inode.c ufs: be more persistent with finishing some operations 2022-01-31 04:46:21 +02:00
ffs_rawread.c vmapbuf: don't smuggle address or length in buf 2020-10-21 16:00:15 +00:00
ffs_snapshot.c vfs: NDFREE(&nd, NDF_ONLY_PNBUF) -> NDFREE_PNBUF(&nd) 2022-03-24 10:20:51 +00:00
ffs_softdep.c ffs: plug a set-but-not-used var 2022-04-19 16:51:12 +02:00
ffs_subr.c Bug fix to UFS/FFS superblock integrity checks when reading a superblock. 2022-07-06 14:45:29 -07:00
ffs_suspend.c ffs: remove unused thread argument from ffs_reload() 2021-09-04 12:25:10 -08:00
ffs_tables.c
ffs_vfsops.c ffs: fix vn_read_from_obj() usage for PAGE_SIZE > block size 2022-06-22 14:57:29 -07:00
ffs_vnops.c ffs: fix vn_io_fault_pgmove() offset for PAGE_SIZE > block size 2022-06-21 17:54:18 -07:00
fs.h Add ability to suppress UFS/FFS superblock check-hash failure messages. 2021-11-15 09:11:54 -08:00
softdep.h Clean up orphaned indirdep dependency structures after disk failure. 2021-07-29 16:31:16 -07:00