freebsd-src/sys
Andre Oppermann 3e932ca715 In kern_sendfile() fix the calculation of sbytes (the total number of bytes
written to the socket).  The rewrite in revision 1.240 got confused by the
FreeBSD 4.x bug compatibility code.

For some reason lighttpd, that was used for testing the new sendfile code,
was not affected by the problem but apache and others using headers/trailers
in the sendfile call received incorrect sbytes values after return from non-
blocking sockets.  This then lead to restarts with wrong offsets and thus
mixed up file contents when the socket was writeable again.  All programs
not using headers/trailers, like ftpd, were not affected by the bug.

Reported by:	Pawel Worach <pawel.worach-at-gmail.com>
Tested by:	Pawel Worach <pawel.worach-at-gmail.com>
2006-11-12 20:57:00 +00:00
..
amd64 Regen. 2006-11-11 21:49:08 +00:00
arm Eliminate unused global variables. 2006-11-11 20:57:52 +00:00
boot MFp4: boot2 should now build 2006-11-09 20:45:22 +00:00
bsm Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New events 2006-09-25 12:22:07 +00:00
cam XPT_GET_TRAN_SETTINGS can fail- so check for an error and 2006-11-07 23:06:00 +00:00
coda Since DELAY() was moved, most <machine/clock.h> #includes have been 2006-05-16 14:37:58 +00:00
compat Regen. 2006-11-11 21:49:08 +00:00
conf More MUTEX_PROFILING -> LOCK_PROFILING. 2006-11-11 23:37:52 +00:00
contrib Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
crypto Initialize T1 to silent gcc warning. 2006-10-22 02:19:33 +00:00
ddb Set up the context for the dbbe_trace callback in the ddb. Otherwise, 2006-11-06 11:10:57 +00:00
dev Fix USB printer Xerox WorkCentre M15 adding a quirk to bypass 2006-11-11 23:53:25 +00:00
fs Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
gdb Convert to new console api 2006-05-26 13:54:27 +00:00
geom Fix ia64 build breakage. 2006-11-02 16:24:18 +00:00
gnu Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
i4b Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
i386 Merge posix4/* into normal kernel hierarchy. 2006-11-11 16:26:58 +00:00
ia64 Add missing includes of priv.h. 2006-11-06 17:43:10 +00:00
isa Use calendaric calculation support from subr_clock.c instead of home-rolled. 2006-10-02 16:18:40 +00:00
isofs/cd9660 Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
kern In kern_sendfile() fix the calculation of sbytes (the total number of bytes 2006-11-12 20:57:00 +00:00
libkern Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
modules Re-enable module build for POSIX semaphores. 2006-11-11 16:49:29 +00:00
net Teach an IPv6 to ppp(4). 2006-11-11 15:02:04 +00:00
net80211 Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netatalk Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netatm Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netgraph Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netinet In a true restart case, the send_lock was 2006-11-11 22:44:12 +00:00
netinet6 -Fixes first of all the getcred on IPv6 and V4. The 2006-11-08 00:21:13 +00:00
netipsec Add priv.h include required to build FAST_IPSEC, which is not present in 2006-11-07 08:58:06 +00:00
netipx Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netkey With exception of the if_name() macro, all definitions in net_osdep.h 2006-08-04 21:27:40 +00:00
netnatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netncp Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netsmb Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
nfs
nfs4client Fixes up the handling of shared vnode lock lookups in the NFS client, 2006-09-13 18:39:09 +00:00
nfsclient honor nolockd flag in root mount options 2006-11-07 18:02:45 +00:00
nfsserver Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
opencrypto When DIAGNOSTIC is defined, verify if we don't free crypto requests from 2006-06-06 15:04:52 +00:00
pc98 MFi386: revisions 1.634 and 1.639. 2006-11-09 08:03:37 +00:00
pccard
pci - Don't bother to include IDs of PCnet chips which are not supported 2006-11-07 19:44:41 +00:00
powerpc Eliminate unused global variables. 2006-11-11 20:57:52 +00:00
rpc
security Merge posix4/* into normal kernel hierarchy. 2006-11-11 16:26:58 +00:00
sparc64 Remove the KDTRACE option again because of the complaints about having 2006-11-04 23:50:12 +00:00
sun4v Support up to 4 nucleus mappings to workaround issue hit by jb@ when booted 2006-11-12 01:21:15 +00:00
sys GRRRRR - missed this in the last commit 2006-11-12 05:16:28 +00:00
tools Check for errors when registering and unregistering firmware modules. This 2006-06-16 21:06:03 +00:00
ufs Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
vm I misplaced the assertion that was added to vm_page_startup() in the 2006-11-08 19:11:54 +00:00
Makefile Merge posix4/* into normal kernel hierarchy. 2006-11-11 16:26:58 +00:00