1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00
freebsd/sys/fs/msdosfs
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
..
bootsect.h - Add idempotency guards so the structures can be used in other utilities. 2010-02-13 12:41:07 +00:00
bpb.h - Add idempotency guards so the structures can be used in other utilities. 2010-02-13 12:41:07 +00:00
denode.h Remove unused macros. 2010-02-13 11:34:25 +00:00
direntry.h - Add idempotency guards so the structures can be used in other utilities. 2010-02-13 12:41:07 +00:00
fat.h
msdosfs_conv.c - Add idempotency guards so the structures can be used in other utilities. 2010-02-13 12:41:07 +00:00
msdosfs_denode.c In msdosfs deget(), properly handle the case when the vnode is found in hash. 2010-02-28 17:11:31 +00:00
msdosfs_fat.c Add assertions for FAT bitmap state. 2010-02-28 17:15:45 +00:00
msdosfs_fileno.c Use pm_fatlock to protect per-filesystem rb tree used to allocate fileno 2010-02-28 17:16:43 +00:00
msdosfs_iconv.c Remove unused include(s). 2007-08-07 02:08:06 +00:00
msdosfs_lookup.c When returning error from msdosfs_lookup(), make sure that *vpp is NULL. 2010-03-03 21:59:45 +00:00
msdosfs_vfsops.c mountmsdosfs: reject too high value of bytes per cluster 2010-04-02 15:22:23 +00:00
msdosfs_vnops.c Remove seemingly unneeded unlock/relock of the dvp in msdosfs_rmdir, 2010-02-28 17:09:09 +00:00
msdosfsmount.h Add per-mountpoint lockmgr lock for msdosfs. It is intended to be used 2010-02-28 17:13:07 +00:00