freebsd-dev/sys
Konstantin Belousov 7aac7bc18a Fix unbounded-length malloc, controlled from usermode. The added check
is performed before exact size of the buffer is calculated, but the
buffer cannot have size greater then the total space allocated for
extended attributes. The existing check is executing with precise
size, but it is too late, since buffer needs to be allocated in
advance.

Also, adapt to uio_resid being of ssize_t type.  Use lblktosize instead of
multiplying by fs block size by hand as well.

Reported and tested by:	  pho
MFC after:   1 week
2012-06-21 09:20:07 +00:00
..
amd64 Add PV list locking to pmap_copy(), pmap_enter_object(), and 2012-06-20 07:25:20 +00:00
arm Revert the part of r236495 that introduced checking of SPI_SR_TXEMPTY 2012-06-18 20:14:42 +00:00
boot Don't return an error if a kld does not contain any modules (e.g. a 2012-06-20 21:06:51 +00:00
bsm
cam Remove unused error variables in cdclose() and daclose(). 2012-06-20 18:35:36 +00:00
cddl Introduce "feature flags" for ZFS pools (bump SPA version to 5000). 2012-06-11 11:35:22 +00:00
compat Make sure that each va_start has one and only one matching va_end, 2012-05-29 01:48:06 +00:00
conf - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
contrib - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
crypto Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
ddb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
dev Remove Moxa CP-132EL definition (RS422/485-only board). 2012-06-21 04:57:59 +00:00
fs Fix the NFSv4 client for the case where mmap'd files are 2012-06-18 22:17:28 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom Always reconstruct partition entries in the PMBR when Boot Camp is 2012-06-14 11:17:54 +00:00
gnu/fs Fix build: 2012-05-23 06:49:50 +00:00
i386 - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
ia64 The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
isa
kern Fix locking for f_offset, vn_read() and vn_write() cases only, for now. 2012-06-21 09:19:41 +00:00
kgssapi
libkern Fix unloading of libiconv module. 2012-06-11 17:42:39 +00:00
mips The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
modules - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
net - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
net80211 Extend the radiotap code to be aware of the size of any extra vendor 2012-06-18 02:08:04 +00:00
netatalk Fix typos 2012-02-28 15:07:05 +00:00
netgraph Make radix lookup on src and dst flow addresses optional 2012-06-18 13:56:36 +00:00
netinet - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
netinet6 Pass flowid explicitly through the stack instead of taking it from 2012-06-14 06:54:48 +00:00
netipsec Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
netipx Convert all users of IF_ADDR_LOCK to use new locking macros that specify 2012-01-05 19:00:36 +00:00
netnatm
netncp Add characters mapping for codepages used in Germany. 2012-06-01 03:59:08 +00:00
netsmb When checking if file descriptor number is valid, explicitely check for 'fd' 2012-06-13 22:12:10 +00:00
nfs Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
nfsclient PR# 165923 reported intermittent write failures for dirty 2012-05-12 12:02:51 +00:00
nfsserver
nlm jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
ofed - Updated TOE support in the kernel. 2012-06-19 07:34:13 +00:00
opencrypto
pc98 MFprojects/zfsd: 2012-05-24 11:20:51 +00:00
pci intpm: add ATI IXP400 pci id 2012-04-16 10:33:46 +00:00
powerpc The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
rpc
security Check vplabel for NULL before dereferencing it. Fixes a panic 2012-05-03 15:51:34 +00:00
sparc64 The page flag PGA_WRITEABLE is set and cleared exclusively by the pmap 2012-06-16 18:56:19 +00:00
sys Further refine the implementation of POSIX_FADV_NOREUSE. 2012-06-19 18:42:24 +00:00
teken
tools Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR. 2012-02-21 19:35:59 +00:00
ufs Fix unbounded-length malloc, controlled from usermode. The added check 2012-06-21 09:20:07 +00:00
vm Selectively inline vm_page_dirty(). 2012-06-20 23:25:47 +00:00
x86 - Remove unused code for CR3 and CR4. 2012-06-13 22:53:56 +00:00
xdr
xen blkif interface comment cleanups. No functional changes 2012-02-29 17:47:01 +00:00
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00