1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Andre Oppermann 1c9dbd1567 In kern_sendfile() adjust byte accounting of the file sending loop to
ignore the size of any headers that were passed with the sendfile(2)
system call.  Otherwise the file sent will be truncated by the header
size if the nbytes parameter was provided.  The bug doesn't show up
when either nbytes is zero, meaning send the whole file, or no header
iovec is provided.

Resolve a potential error aliasing of errors from the VM and sf_buf
parts and the protocol send parts where an error of the latter over-
writes one of the former.

Update comments.

The byte accounting bug wasn't seen in earlier because none of the popular
sendfile(2) consumers, Apache, lighttpd and our ftpd(8) use it in modes
that trigger it.  The varnish HTTP proxy makes full use of it and exposed
the problem.

Bug found by:	phk
Tested by:	phk
2007-05-19 20:50:59 +00:00
bin Work around a vendor issue that was causing the builtin malloc to be 2007-05-16 21:22:38 +00:00
cddl Use provider's ident to handle situations when disks are moved around 2007-05-06 01:39:39 +00:00
compat/opensolaris Use provider's ident to handle situations when disks are moved around 2007-05-06 01:39:39 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r169765, 2007-05-19 13:55:01 +00:00
crypto - Bring upgrade produce up-to-date for OpenSSL 0.9.8e. 2007-03-15 21:06:48 +00:00
etc Add templates for new GCC 4.2 C++ include files hierarchy. 2007-05-19 03:31:39 +00:00
games Line wrap previous entry 2007-03-30 04:31:53 +00:00
gnu Fix the fallout from over-zealous obsolete files removal. Use correct 2007-05-19 15:41:01 +00:00
include Back out all POSIXified *env() changes. 2007-05-01 16:02:44 +00:00
kerberos5 Fix generator glue to only expose extern struct units %s_units[] is 2007-05-19 03:29:37 +00:00
lib Use LDADD to add -lgcc to the end of linker command line. Using LDFLAGS 2007-05-19 16:38:39 +00:00
libexec Update the man page to reflect that certain variables will be unset in 2007-05-17 19:14:25 +00:00
release Add a few sentences of caution for Microsoft Vista users who might 2007-05-19 20:09:54 +00:00
rescue Replace the GNU gzip with a slightly modified NetBSD gzip. The 2007-01-26 10:19:08 +00:00
sbin Add an example which shows how mdconfig(8) can be used 2007-05-18 13:57:17 +00:00
secure Integrate the Camellia Block Cipher. For more information see RFC 4132 2007-05-09 19:37:02 +00:00
share Document sx_xholder(). 2007-05-19 20:24:32 +00:00
sys In kern_sendfile() adjust byte accounting of the file sending loop to 2007-05-19 20:50:59 +00:00
tools Introduce WITHOUT_SSP option that allows users to exclude LGPLed 2007-05-19 04:42:59 +00:00
usr.bin Fix typo. 2007-05-17 00:19:56 +00:00
usr.sbin o Fix typo: firwalling -> firewalling. 2007-05-19 07:36:43 +00:00
COPYRIGHT
LOCKS
MAINTAINERS Note core's interest in coordinating major changes to our usb code base. 2007-04-26 21:30:16 +00:00
Makefile Expose all of {check,delete}-old{,-dirs,-files,-libs}. 2007-05-16 08:46:35 +00:00
Makefile.inc1 Revision 1.576 removed too much. I didn't notice because my /usr is on 2007-05-19 20:34:29 +00:00
ObsoleteFiles.inc libthr is promoted to libpthread so don't remove 2007-05-15 06:24:17 +00:00
README
UPDATING Revert config(8) version bump. It brings major pain for people working on 2007-05-16 17:23:54 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

For copyright information, please see the file COPYRIGHT in this
directory (additional copyright information also exists for some
sources in this tree - please see the specific source directories for
more information).

The Makefile in this directory supports a number of targets for
building components (or all) of the FreeBSD source tree, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

The ``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/user commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberos5	Kerberos5 (Heimdal) package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

rescue		Build system for statically linked /rescue utilities.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

tools		Utilities for regression testing and miscellaneous tasks.

usr.bin		User commands.

usr.sbin	System administration commands.


For information on synchronizing your source tree with one or more of
the FreeBSD Project's development branches, please see:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html