GhostBSD/ghostbsd 7f0988esys/ufs/ffs ffs_inode.c ffs_softdep.c, sys/ufs/ufs ufs_vnops.c ufs_quota.c

When updating the user or group disk quotas for the return of inodes or
disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since
the user is always allowed to return resources and hence there is no need
to check the user's credential .

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-1-UFS-1: Denial Of Service in mount (prison_priv_check)
Discussed with: kib
MFC:            1 week
Sponsored by:   Netflix
DeltaFile
+2-2sys/ufs/ufs/ufs_vnops.c
+2-2sys/ufs/ffs/ffs_inode.c
+2-2sys/ufs/ffs/ffs_softdep.c
+2-0sys/ufs/ufs/ufs_quota.c
+8-64 files

PC-BSD/trueos 7f0988esys/ufs/ffs ffs_softdep.c ffs_inode.c, sys/ufs/ufs ufs_vnops.c ufs_quota.c

When updating the user or group disk quotas for the return of inodes or
disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since
the user is always allowed to return resources and hence there is no need
to check the user's credential .

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-1-UFS-1: Denial Of Service in mount (prison_priv_check)
Discussed with: kib
MFC:            1 week
Sponsored by:   Netflix
DeltaFile
+2-2sys/ufs/ffs/ffs_softdep.c
+2-2sys/ufs/ufs/ufs_vnops.c
+2-2sys/ufs/ffs/ffs_inode.c
+2-0sys/ufs/ufs/ufs_quota.c
+8-64 files

HardenedBSD/src 7f0988esys/ufs/ffs ffs_softdep.c ffs_inode.c, sys/ufs/ufs ufs_vnops.c ufs_quota.c

When updating the user or group disk quotas for the return of inodes or
disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since
the user is always allowed to return resources and hence there is no need
to check the user's credential .

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-1-UFS-1: Denial Of Service in mount (prison_priv_check)
Discussed with: kib
MFC:            1 week
Sponsored by:   Netflix
DeltaFile
+2-2sys/ufs/ffs/ffs_softdep.c
+2-2sys/ufs/ffs/ffs_inode.c
+2-2sys/ufs/ufs/ufs_vnops.c
+2-0sys/ufs/ufs/ufs_quota.c
+8-64 files

GhostBSD/ghostbsd 90381b1 (r350490)sys/ufs/ffs ffs_inode.c ffs_softdep.c, sys/ufs/ufs ufs_vnops.c ufs_quota.c

When updating the user or group disk quotas for the return of inodes or
disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since
the user is always allowed to return resources and hence there is no need
to check the user's credential .

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-1-UFS-1: Denial Of Service in mount (prison_priv_check)
Discussed with: kib
MFC:            1 week
Sponsored by:   Netflix
DeltaFile
+2-2sys/ufs/ffs/ffs_inode.c
+2-2sys/ufs/ffs/ffs_softdep.c
+2-2sys/ufs/ufs/ufs_vnops.c
+2-0sys/ufs/ufs/ufs_quota.c
+8-64 files

OPNSense/src 90381b1sys/ufs/ffs ffs_softdep.c ffs_inode.c, sys/ufs/ufs ufs_vnops.c ufs_quota.c

When updating the user or group disk quotas for the return of inodes or
disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since
the user is always allowed to return resources and hence there is no need
to check the user's credential .

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-1-UFS-1: Denial Of Service in mount (prison_priv_check)
Discussed with: kib
MFC:            1 week
Sponsored by:   Netflix
DeltaFile
+2-2sys/ufs/ffs/ffs_softdep.c
+2-2sys/ufs/ffs/ffs_inode.c
+2-2sys/ufs/ufs/ufs_vnops.c
+2-0sys/ufs/ufs/ufs_quota.c
+8-64 files

FreeBSD/src 90381b1 (r350490)sys/ufs/ffs ffs_inode.c ffs_softdep.c, sys/ufs/ufs ufs_vnops.c ufs_quota.c

When updating the user or group disk quotas for the return of inodes or
disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since
the user is always allowed to return resources and hence there is no need
to check the user's credential .

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-1-UFS-1: Denial Of Service in mount (prison_priv_check)
Discussed with: kib
MFC:            1 week
Sponsored by:   Netflix
DeltaFile
+2-2sys/ufs/ffs/ffs_inode.c
+2-2sys/ufs/ffs/ffs_softdep.c
+2-2sys/ufs/ufs/ufs_vnops.c
+2-0sys/ufs/ufs/ufs_quota.c
+8-64 files

HardenedBSD/src 90381b1 (r350490)sys/ufs/ffs ffs_inode.c ffs_softdep.c, sys/ufs/ufs ufs_vnops.c ufs_quota.c

When updating the user or group disk quotas for the return of inodes or
disk blocks, set the FORCE flag in the call to chkiq() or chkdq() since
the user is always allowed to return resources and hence there is no need
to check the user's credential .

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-1-UFS-1: Denial Of Service in mount (prison_priv_check)
Discussed with: kib
MFC:            1 week
Sponsored by:   Netflix
DeltaFile
+2-2sys/ufs/ufs/ufs_vnops.c
+2-2sys/ufs/ffs/ffs_inode.c
+2-2sys/ufs/ffs/ffs_softdep.c
+2-0sys/ufs/ufs/ufs_quota.c
+8-64 files

HardenedBSD/src 69cfa49sys/fs/ext2fs ext2_balloc.c ext2_vfsops.c

MFC r349800,r349801,r349802:

Fix misc fs fuzzing issues.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)
                FS-22-EXT2-9: Denial of service in ftruncate-0 (ext2_balloc)
                FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
DeltaFile
+7-39sys/fs/ext2fs/ext2_balloc.c
+5-2sys/fs/ext2fs/ext2_vfsops.c
+12-412 files

FreeBSD/src 31455aa (r350385)sys/fs/ext2fs ext2_balloc.c ext2_vfsops.c

MFC r349800,r349801,r349802:

Fix misc fs fuzzing issues.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)
                FS-22-EXT2-9: Denial of service in ftruncate-0 (ext2_balloc)
                FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
DeltaFile
+7-39sys/fs/ext2fs/ext2_balloc.c
+5-2sys/fs/ext2fs/ext2_vfsops.c
+12-412 files

HardenedBSD/src abeb80bsys/fs/ext2fs ext2_balloc.c

MFC r349800,r349801:

Fix misc fs fuzzing issues.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-22-EXT2-9: Denial of service in ftruncate-0 (ext2_balloc)
                FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
DeltaFile
+15-72sys/fs/ext2fs/ext2_balloc.c
+15-721 files

GhostBSD/ghostbsd abeb80bsys/fs/ext2fs ext2_balloc.c

MFC r349800,r349801:

Fix misc fs fuzzing issues.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-22-EXT2-9: Denial of service in ftruncate-0 (ext2_balloc)
                FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
DeltaFile
+15-72sys/fs/ext2fs/ext2_balloc.c
+15-721 files

PC-BSD/trueos abeb80bsys/fs/ext2fs ext2_balloc.c

MFC r349800,r349801:

Fix misc fs fuzzing issues.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-22-EXT2-9: Denial of service in ftruncate-0 (ext2_balloc)
                FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
DeltaFile
+15-72sys/fs/ext2fs/ext2_balloc.c
+15-721 files

HardenedBSD/src 415c478 (r350384)sys/fs/ext2fs ext2_balloc.c

MFC r349800,r349801:

Fix misc fs fuzzing issues.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-22-EXT2-9: Denial of service in ftruncate-0 (ext2_balloc)
                FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
DeltaFile
+15-72sys/fs/ext2fs/ext2_balloc.c
+15-721 files

FreeBSD/src 415c478 (r350384)sys/fs/ext2fs ext2_balloc.c

MFC r349800,r349801:

Fix misc fs fuzzing issues.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-22-EXT2-9: Denial of service in ftruncate-0 (ext2_balloc)
                FS-11-EXT2-6: Denial Of Service in write-1 (ext2_balloc)
DeltaFile
+15-72sys/fs/ext2fs/ext2_balloc.c
+15-721 files

PC-BSD/trueos fcbcaebsys/fs/ext2fs ext2_vfsops.c

MFC r349802 (from fsu@):

Add additional check for 'blocks per group' and 'fragments per group'
superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is
turned on.  This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

FreeBSD/src b1ef237 (r350366)sys/fs/ext2fs ext2_vfsops.c

MFC r349802 (from fsu@):

Add additional check for 'blocks per group' and 'fragments per group'
superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is
turned on.  This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

GhostBSD/ghostbsd fcbcaebsys/fs/ext2fs ext2_vfsops.c

MFC r349802 (from fsu@):

Add additional check for 'blocks per group' and 'fragments per group'
superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is
turned on.  This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

HardenedBSD/src fcbcaebsys/fs/ext2fs ext2_vfsops.c

MFC r349802 (from fsu@):

Add additional check for 'blocks per group' and 'fragments per group'
superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is
turned on.  This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

HardenedBSD/src b1ef237 (r350366)sys/fs/ext2fs ext2_vfsops.c

MFC r349802 (from fsu@):

Add additional check for 'blocks per group' and 'fragments per group'
superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is
turned on.  This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

GhostBSD/ghostbsd eb5503csys/ufs/ffs ffs_subr.c ffs_alloc.c, sys/ufs/ufs ufs_bmap.c ufsmount.h

The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
DeltaFile
+49-0sys/ufs/ffs/ffs_subr.c
+26-10sys/ufs/ffs/ffs_alloc.c
+14-0sys/ufs/ffs/ffs_balloc.c
+9-2sys/ufs/ufs/ufs_bmap.c
+6-1sys/ufs/ffs/ffs_softdep.c
+6-0sys/ufs/ufs/ufsmount.h
+110-132 files not shown
+115-138 files

HardenedBSD/src fdf34aa (r350096)sys/ufs/ffs ffs_subr.c ffs_alloc.c, sys/ufs/ufs ufs_bmap.c ufsmount.h

The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
DeltaFile
+49-0sys/ufs/ffs/ffs_subr.c
+26-10sys/ufs/ffs/ffs_alloc.c
+14-0sys/ufs/ffs/ffs_balloc.c
+9-2sys/ufs/ufs/ufs_bmap.c
+6-1sys/ufs/ffs/ffs_softdep.c
+6-0sys/ufs/ufs/ufsmount.h
+110-132 files not shown
+115-138 files

FreeBSD/src fdf34aa (r350096)sys/ufs/ffs ffs_subr.c ffs_alloc.c, sys/ufs/ufs ufs_bmap.c ufsmount.h

The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
DeltaFile
+49-0sys/ufs/ffs/ffs_subr.c
+26-10sys/ufs/ffs/ffs_alloc.c
+14-0sys/ufs/ffs/ffs_balloc.c
+9-2sys/ufs/ufs/ufs_bmap.c
+6-1sys/ufs/ffs/ffs_softdep.c
+6-0sys/ufs/ufs/ufsmount.h
+110-132 files not shown
+115-138 files

HardenedBSD/src eb5503csys/ufs/ffs ffs_subr.c ffs_alloc.c, sys/ufs/ufs ufs_bmap.c ufsmount.h

The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
DeltaFile
+49-0sys/ufs/ffs/ffs_subr.c
+26-10sys/ufs/ffs/ffs_alloc.c
+14-0sys/ufs/ffs/ffs_balloc.c
+9-2sys/ufs/ufs/ufs_bmap.c
+6-1sys/ufs/ffs/ffs_softdep.c
+6-0sys/ufs/ufs/ufsmount.h
+110-132 files not shown
+115-138 files

OPNSense/src fdf34aasys/ufs/ffs ffs_subr.c ffs_alloc.c, sys/ufs/ufs ufs_bmap.c ufsmount.h

The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
DeltaFile
+49-0sys/ufs/ffs/ffs_subr.c
+26-10sys/ufs/ffs/ffs_alloc.c
+14-0sys/ufs/ffs/ffs_balloc.c
+9-2sys/ufs/ufs/ufs_bmap.c
+6-1sys/ufs/ffs/ffs_softdep.c
+6-0sys/ufs/ufs/ufsmount.h
+110-132 files not shown
+115-138 files

GhostBSD/ghostbsd fdf34aa (r350096)sys/ufs/ffs ffs_subr.c ffs_alloc.c, sys/ufs/ufs ufs_bmap.c ufsmount.h

The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
DeltaFile
+49-0sys/ufs/ffs/ffs_subr.c
+26-10sys/ufs/ffs/ffs_alloc.c
+14-0sys/ufs/ffs/ffs_balloc.c
+9-2sys/ufs/ufs/ufs_bmap.c
+6-1sys/ufs/ffs/ffs_softdep.c
+6-0sys/ufs/ufs/ufsmount.h
+110-132 files not shown
+115-138 files

PC-BSD/trueos eb5503csys/ufs/ffs ffs_subr.c ffs_alloc.c, sys/ufs/ufs ufs_bmap.c ufsmount.h

The error reported in FS-14-UFS-3 can only happen on UFS/FFS
filesystems that have block pointers that are out-of-range for their
filesystem. These out-of-range block pointers are corrected by
fsck(8) so are only encountered when an unchecked filesystem is
mounted.

A new "untrusted" flag has been added to the generic mount interface
that can be set when mounting media of unknown provenance or integrity.
For example, a daemon that automounts a filesystem on a flash drive
when it is plugged into a system.

This commit adds a test to UFS/FFS that validates all block numbers
before using them. Because checking for out-of-range blocks adds
unnecessary overhead to normal operation, the tests are only done
when the filesystem is mounted as an "untrusted" filesystem.

Reported by:  Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:  FS-14-UFS-3: Out of bounds read in write-2 (ffs_alloccg)
Reviewed by:  kib
Sponsored by: Netflix
DeltaFile
+49-0sys/ufs/ffs/ffs_subr.c
+26-10sys/ufs/ffs/ffs_alloc.c
+14-0sys/ufs/ffs/ffs_balloc.c
+9-2sys/ufs/ufs/ufs_bmap.c
+6-1sys/ufs/ffs/ffs_softdep.c
+6-0sys/ufs/ufs/ufsmount.h
+110-132 files not shown
+115-138 files

GhostBSD/ghostbsd 0466549sys/fs/ext2fs ext2_vfsops.c

Add additional check for 'blocks per group' and 'fragments per group' superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is turned on.
This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)

MFC after:      2 weeks
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

GhostBSD/ghostbsd 6ce04e5 (r349802)sys/fs/ext2fs ext2_vfsops.c

Add additional check for 'blocks per group' and 'fragments per group' superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is turned on.
This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)

MFC after:      2 weeks
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

HardenedBSD/src 6ce04e5 (r349802)sys/fs/ext2fs ext2_vfsops.c

Add additional check for 'blocks per group' and 'fragments per group' superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is turned on.
This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)

MFC after:      2 weeks
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files

HardenedBSD/src 0466549sys/fs/ext2fs ext2_vfsops.c

Add additional check for 'blocks per group' and 'fragments per group' superblock fields.

These fields will not be equal only in case if bigalloc filesystem feature is turned on.
This feature is not supported for now.

Reported by:    Christopher Krah, Thomas Barabosch, and Jan-Niclas Hilgert of Fraunhofer FKIE
Reported as:    FS-27-EXT2-12: Denial of Service in openat-0 (vm_fault_hold/ext2_clusteracct)

MFC after:      2 weeks
DeltaFile
+5-0sys/fs/ext2fs/ext2_vfsops.c
+5-01 files