Date: Mon, 12 Apr 2010 20:54:56 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r206503 - stable/7/sys/fs/msdosfs Message-ID: <201004122054.o3CKsuh3037740@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Mon Apr 12 20:54:56 2010 New Revision: 206503 URL: http://svn.freebsd.org/changeset/base/206503 Log: MFC r206098: mountmsdosfs: reject too high value of bytes per cluster Modified: stable/7/sys/fs/msdosfs/msdosfs_vfsops.c Directory Properties: stable/7/sys/ (props changed) stable/7/sys/cddl/contrib/opensolaris/ (props changed) stable/7/sys/contrib/dev/acpica/ (props changed) stable/7/sys/contrib/pf/ (props changed) Modified: stable/7/sys/fs/msdosfs/msdosfs_vfsops.c ============================================================================== --- stable/7/sys/fs/msdosfs/msdosfs_vfsops.c Mon Apr 12 20:53:17 2010 (r206502) +++ stable/7/sys/fs/msdosfs/msdosfs_vfsops.c Mon Apr 12 20:54:56 2010 (r206503) @@ -558,6 +558,7 @@ mountmsdosfs(struct vnode *devvp, struct || (pmp->pm_BytesPerSec & (pmp->pm_BytesPerSec - 1)) || (pmp->pm_HugeSectors == 0) || (pmp->pm_FATsecs == 0) + || (SecPerClust * pmp->pm_BlkPerSec > MAXBSIZE / DEV_BSIZE) ) { error = EINVAL; goto error_exit;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004122054.o3CKsuh3037740>