git: bfd32571efc7 - stable/13 - Updates to UFS/FFS superblock integrity checks when reading a superblock.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 28 Mar 2023 22:50:49 UTC
The branch stable/13 has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=bfd32571efc73fdb7f0614dd94f86402680983b3 commit bfd32571efc73fdb7f0614dd94f86402680983b3 Author: Kirk McKusick <mckusick@FreeBSD.org> AuthorDate: 2023-03-28 22:49:49 +0000 Commit: Kirk McKusick <mckusick@FreeBSD.org> CommitDate: 2023-03-28 22:50:38 +0000 Updates to UFS/FFS superblock integrity checks when reading a superblock. Back out MFC commit 4660b60a00c3120ddecd94b3f308d39bcb6d085a as it has had reported problems. --- sys/ufs/ffs/ffs_subr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index 2f69965aba7e..d847373a8cde 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -446,7 +446,6 @@ validate_sblock(struct fs *fs, int isaltsblk) CHK(fs->fs_old_cgoffset, <, 0, %jd); CHK2(fs->fs_old_cgoffset, >, 0, ~fs->fs_old_cgmask, <, 0, %jd); CHK(fs->fs_old_cgoffset * (~fs->fs_old_cgmask), >, fs->fs_fpg, %jd); - CHK(CGSIZE(fs), >, fs->fs_bsize, %jd); /* * If anything has failed up to this point, it is usafe to proceed * as checks below may divide by zero or make other fatal calculations.