freebsd-skq/sys
Konstantin Belousov b55ef216fe kern_select(9) copies fd_set in and out of userspace in quantities of
longs. Since 32bit processes longs are 4 bytes, 64bit kernel may copy in
or out 4 bytes more then the process expected.

Calculate the amount of bytes to copy taking into account size of fd_set
for the current process ABI.

Diagnosed and tested by:	Peter Jeremy <peterjeremy acm org>
Reviewed by:	jhb
MFC after:	1 week
2009-09-09 20:59:01 +00:00
..
amd64 - Teach vesa(4) and dpms(4) about x86emu. [1] 2009-09-09 09:50:31 +00:00
arm Get rid of the _NO_NAMESPACE_POLLUTION kludge by creating an 2009-09-08 20:45:40 +00:00
boot Fix parse() so that the partition to boot (load /boot/loader) from can 2009-08-17 15:19:03 +00:00
bsm Import OpenBSM 1.1p1 from vendor branch to 8-CURRENT, populating 2009-07-17 14:02:20 +00:00
cam Free the correct buffer in an error case. 2009-09-08 16:09:28 +00:00
cddl Only log successful commands! Without this fix we log even unsuccessful 2009-09-08 16:40:08 +00:00
compat kern_select(9) copies fd_set in and out of userspace in quantities of 2009-09-09 20:59:01 +00:00
conf - Teach vesa(4) and dpms(4) about x86emu. [1] 2009-09-09 09:50:31 +00:00
contrib - Port x86emu to FreeBSD. 2009-09-09 05:53:26 +00:00
crypto Changed to M_NOWAIT when reallocing psc_buf in padlock_sha_update(), 2009-05-27 09:52:12 +00:00
ddb Merge the remainder of kern_vimage.c and vimage.h into vnet.c and 2009-08-01 19:26:27 +00:00
dev There is no need to log anything for a ctrlq stall or restart. These are 2009-09-09 18:55:18 +00:00
fs Add LK_NOWITNESS to the vn_lock() calls done on newly created nfs 2009-09-09 20:37:49 +00:00
gdb
geom Remove unused variable. 2009-09-08 17:20:17 +00:00
gnu Fix the build by using proper format. 2009-06-25 16:48:13 +00:00
i386 As was done in r196643 for i386 and amd64, swap the start/end virtual 2009-09-09 19:40:54 +00:00
ia64 Get rid of the _NO_NAMESPACE_POLLUTION kludge by creating an 2009-09-08 20:45:40 +00:00
isa Tweak the way that the ACPI and ISA bus drivers match hint devices to 2009-08-24 21:51:46 +00:00
kern kern_select(9) copies fd_set in and out of userspace in quantities of 2009-09-09 20:59:01 +00:00
kgssapi When the KOBJMETHOD() macro was updated, it resulted in the 2009-06-14 17:33:46 +00:00
libkern done method is supposed to return int. 2009-06-22 22:09:18 +00:00
mips Get rid of the _NO_NAMESPACE_POLLUTION kludge by creating an 2009-09-08 20:45:40 +00:00
modules - Teach vesa(4) and dpms(4) about x86emu. [1] 2009-09-09 09:50:31 +00:00
net Compare pointer with NULL, not 0. 2009-09-09 03:36:43 +00:00
net80211 Revert previous commit and add myself to the list of people who should 2009-09-08 13:19:05 +00:00
netatalk Reverse misordered unlock and lock in at_control for netatalk phase I 2009-08-12 10:44:13 +00:00
netgraph Rework global locks for interface list and index management, correcting 2009-08-23 20:40:19 +00:00
netinet Add arp_update_event. This replaces route_arp_update_event, which 2009-09-08 21:17:17 +00:00
netinet6 The addresses that are assigned to the loopback interface 2009-09-05 20:24:37 +00:00
netipsec Silent gcc? Yeah, you wish. What I ment was to silence gcc. 2009-09-06 19:05:03 +00:00
netipx Use queue(9) instead of hand-crafted link lists for the global IPX 2009-06-24 20:57:50 +00:00
netnatm Reimplement the netisr framework in order to support parallel netisr 2009-06-01 10:41:38 +00:00
netncp
netsmb Rework socket upcalls to close some races with setup/teardown of upcalls. 2009-06-01 21:17:03 +00:00
nfs Revert rev 192323 (nfs_common.c only): 2009-07-12 03:53:52 +00:00
nfsclient Add LK_NOWITNESS to the vn_lock() calls done on newly created nfs 2009-09-09 20:37:49 +00:00
nfsserver Correct typo after manual patching. 2009-09-09 13:23:26 +00:00
nlm Since svc_[dg|vc|tli|tp]_create() did not hold a reference count on the 2009-06-17 22:50:26 +00:00
opencrypto If crypto operation is finished with EAGAIN, don't repeat operation from 2009-09-04 09:48:18 +00:00
pc98 MFi386: Remove old file. 2009-09-09 10:05:50 +00:00
pci Add RTL8168DP/RTL8111DP device id. While I'm here append "8111D" to 2009-08-24 18:58:13 +00:00
powerpc Get rid of the _NO_NAMESPACE_POLLUTION kludge by creating an 2009-09-08 20:45:40 +00:00
rpc Fix NFS panics with options VIMAGE kernels by apropriately setting curvnet 2009-08-24 10:09:30 +00:00
security Having thrown the cat out of the house, add a necessary include. 2009-09-08 13:24:36 +00:00
sparc64 Get rid of the _NO_NAMESPACE_POLLUTION kludge by creating an 2009-09-08 20:45:40 +00:00
sun4v Get rid of the _NO_NAMESPACE_POLLUTION kludge by creating an 2009-09-08 20:45:40 +00:00
sys kern_select(9) copies fd_set in and out of userspace in quantities of 2009-09-09 20:59:01 +00:00
teken Expose the TF_REVERSE flag to the console driver. 2009-09-03 16:31:11 +00:00
tools - Increase dynamic range of filter coefficients from 28bit to 30bit. 2009-07-05 18:15:06 +00:00
ufs Remove useless variable assignment. 2009-09-08 17:23:32 +00:00
vm Reintroduce the r196640, after fixing the problem with my testing. 2009-09-01 11:41:51 +00:00
xdr Add a check for a NULL mbuf ptr at the beginning of xdrmbuf_inline() 2009-08-12 16:27:51 +00:00
xen Temporarily revert the new-bus locking for 8.0 release. It will be 2009-08-20 19:17:53 +00:00
Makefile Remove the unmaintained University of Michigan NFSv4 client from 8.x 2009-05-22 12:35:12 +00:00