The branch stable/13 has been updated by mckusick:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=bfd32571efc73fdb7f0614dd94f86402680983b3

commit bfd32571efc73fdb7f0614dd94f86402680983b3
Author:     Kirk McKusick <[email protected]>
AuthorDate: 2023-03-28 22:49:49 +0000
Commit:     Kirk McKusick <[email protected]>
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.

Reply via email to