freebsd-skq/sys/fs
Andriy Gapon 423b0fb7ad mountmsdosfs: reject too high value of bytes per cluster
Bytes per cluster are calcuated as bytes per sector times sectors per
cluster.  Too high value can overflow an internal variable with type
that can hold only values in valid range.  Trying to use a wider type
results in an attempt to read more than MAXBSIZE at once, a panic.
Unfortunately, it is FreeBSD newfs_msdos that  produces filesystems
with invalid parameters for certain types of media.

Reported by:	Fabian Keil <freebsd-listen@fabiankeil.de>,
		Paul B. Mahol <onemda@gmail.com>
Discussed with:	bde, kib
MFC after:	1 week
X-ToDo:		fix newfs_msdos
2010-04-02 15:22:23 +00:00
..
cd9660 On LP64 struct ifid is 64-bit aligned while struct fid is 32-bit aligned 2010-01-23 22:38:01 +00:00
coda Change the type of uio_resid member of struct uio from int to ssize_t. 2009-06-25 18:46:30 +00:00
deadfs Add function vop_rename_fail(9) that performs needed cleanup for locks 2010-04-02 14:03:01 +00:00
devfs Properly use dev_refl()/dev_rel() in kern.devname. 2010-01-31 15:19:16 +00:00
ext2fs Fix common misspelling of hierarchy 2010-02-20 10:19:19 +00:00
fdescfs Fix a long standing regression of readdir(3) in fdescfs(5) introduced 2010-03-16 19:59:14 +00:00
fifofs - Improve comments about locking of the "struct fifoinfo" which is a bit 2009-11-06 22:29:46 +00:00
hpfs Remove the thread argument from the FSD (File-System Dependent) parts of 2009-05-11 15:33:26 +00:00
msdosfs mountmsdosfs: reject too high value of bytes per cluster 2010-04-02 15:22:23 +00:00
nfs This patch should fix handling of byte range locks locally 2010-03-30 23:11:50 +00:00
nfsclient Patch the experimental NFS client so that there is a timeout 2010-01-31 19:12:24 +00:00
nfsserver For the experimental NFS server, add a call to free the lookup 2010-04-02 02:19:28 +00:00
ntfs Fix ntfs such that it understand media with a non-512-bytes sector size: 2009-12-07 15:15:08 +00:00
nullfs Add explicit struct ucred * argument for VOP_VPTOCNP, to be used by 2009-06-21 19:21:01 +00:00
nwfs Don't touch v_interlock; use VI_* macros instead. 2010-01-27 19:30:44 +00:00
portalfs Don't use ap->a_td->td_ucred when we were passed ap->a_cred. 2009-12-02 18:09:22 +00:00
procfs Provide groundwork for 32-bit binary compatibility on non-x86 platforms, 2010-03-11 14:49:06 +00:00
pseudofs Truncate read request rather than returning EIO if the request is 2010-01-22 08:45:12 +00:00
smbfs Remove unused smbfs_smb_qpathinfo(). 2010-01-08 15:53:07 +00:00
tmpfs Add "maxfilesize" mount option for tmpfs to allow specifying the 2010-01-29 12:09:14 +00:00
udf Use #ifdef APPLE_MAC instead of #ifdef MAC to conditionalize Apple-specific 2009-06-06 07:13:57 +00:00
unionfs Fix some LORs between vnode locks and filedescriptor table locks. 2009-07-31 13:40:06 +00:00