freebsd-nq/sys
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
..
amd64 - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
arm Oops! Wrong copy-paste in r206053. 2010-04-01 19:05:43 +00:00
boot Our boot loader is capable of booting both i386 and amd64 kernels so 2010-03-26 01:30:53 +00:00
bsm
cam Add a couple missing basic mode page codes. 2010-04-01 01:49:43 +00:00
cddl The same code is used to import and to create pool. 2010-03-19 20:14:27 +00:00
compat Re-apply r205683 with some modifications: 2010-04-02 06:50:28 +00:00
conf - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
contrib Integrate OpenBSD rev 1.5 of x86emu.c. 2010-03-09 22:42:24 +00:00
crypto
ddb
dev - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
fs mountmsdosfs: reject too high value of bytes per cluster 2010-04-02 15:22:23 +00:00
gdb
geom bo_bsize: revert r205860 and take an alternative approch in getblk 2010-04-02 15:12:31 +00:00
gnu
i386 - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
ia64 Bring up-to-date: 2010-03-27 06:53:11 +00:00
isa
kern bo_bsize: revert r205860 and take an alternative approch in getblk 2010-04-02 15:12:31 +00:00
kgssapi
libkern
mips Enable module builds now that the build completes for them. This 2010-03-29 22:03:55 +00:00
modules - Support for uncore counting events: one fixed PMC with the uncore 2010-04-02 13:23:49 +00:00
net Check the pointer to JIT binary filter before its de-allocation. 2010-03-29 20:24:03 +00:00
net80211 Constify vap argument of ieee80211_{note,discard}* functions. 2010-03-31 16:07:36 +00:00
netatalk
netgraph Remove alignment constraints. 2010-04-01 16:20:36 +00:00
netinet Add definition of IPv6 mobility header's protocol number, as assigned by 2010-03-31 23:02:25 +00:00
netinet6 We are holding a write lock here so avoid aquiring it twice calling 2010-03-25 10:29:00 +00:00
netipsec When tearing down IPsec as part of a (virtual) network stack, 2010-03-28 06:51:50 +00:00
netipx
netnatm
netncp
netsmb
nfs
nfsclient
nfsserver Patch the regular NFS server so that it returns ESTALE to the client 2010-03-26 01:19:29 +00:00
nlm
opencrypto
pc98 Change the arguments of exec_setregs() so that it receives a pointer 2010-03-25 14:24:00 +00:00
pci
powerpc Set hw.ofwfb.relax_mmap=1 by default. While these checks may be a good 2010-03-28 17:17:32 +00:00
rpc When the regular NFS server replied to a UDP client out of the replay 2010-03-23 23:03:30 +00:00
security Update device-labeling logic for Biba, LOMAC, and MLS to recognize new-style 2010-03-02 15:05:48 +00:00
sparc64 - Try do deal gracefully with correctable ECC errors. 2010-04-02 10:36:40 +00:00
sun4v Change the arguments of exec_setregs() so that it receives a pointer 2010-03-25 14:24:00 +00:00
sys Add function vop_rename_fail(9) that performs needed cleanup for locks 2010-04-02 14:03:01 +00:00
teken
tools
ufs
vm Reject attempts to create a MAP_ANON mapping with a non-zero offset. 2010-03-23 21:08:07 +00:00
x86 Improving the clocks auto-tunning by firstly checking if the atrtc may be 2010-03-03 17:13:29 +00:00
xdr
xen
Makefile