1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-30 12:04:07 +00:00
Mirror of the FreeBSD src repository https://git.FreeBSD.org/src.git .
Go to file
Konstantin Belousov 3d31767952 Eliminate the layering violation in the kern_sendfile(). When quering
the file size, use VOP_GETATTR() instead of accessing vnode vm_object
un_pager.vnp.vnp_size.

Take the shared vnode lock earlier to cover the added VOP_GETATTR()
call and, as consequence, the whole internal sendfile loop.  Reduce vm
object lock scope to not protect the local calculations.

Note that this is the last misuse of the vnp_size in the tree, the
others were removed from the ELF image activator by r230246.

Reviewed by:	alc
Tested by:	pho, bf (previous version)
MFC after:	1 week
2013-04-28 19:12:09 +00:00
bin Add missing static qualifiers 2013-04-27 21:59:43 +00:00
cddl revert r248644 because of the regression for usdt probes 2013-04-25 07:04:56 +00:00
contrib Merge libc++ trunk r180598. Contains several minor cleanups and bug 2013-04-27 22:47:52 +00:00
crypto Merge updated "no such identity file" patch. 2013-04-24 12:36:37 +00:00
etc Minor changes to force commit these files so new freebsd*.cf files are 2013-04-21 17:11:45 +00:00
games Remove a reference to instant-server which has been removed from the 2013-03-21 12:42:25 +00:00
gnu Remove the Fortran directories. 2013-04-25 06:05:43 +00:00
include Enable improved <tgmath.h> for Clang even when not using C11. 2013-04-27 21:18:34 +00:00
kerberos5 Add -lheimntlm to LDADD directly. 2013-02-11 09:45:24 +00:00
lib Enable building string functions as part of libstand on mips; the Makefile 2013-04-28 16:35:24 +00:00
libexec The origin_subst_one() function limits the length of the string to 2013-04-15 20:06:56 +00:00
release Note merge to head for sendmail 8.14.7. 2013-04-21 17:13:58 +00:00
rescue Remove all legacy ATA code parts, not used since options ATA_CAM enabled in 2013-04-04 07:12:24 +00:00
sbin Partially revert my last change. 2013-04-27 05:06:25 +00:00
secure Remove references to MK_IDEA. 2013-04-27 05:44:39 +00:00
share mdoc improvements 2013-04-28 06:15:56 +00:00
sys Eliminate the layering violation in the kern_sendfile(). When quering 2013-04-28 19:12:09 +00:00
tools When the world is built WITHOUT_OPENSSH also don't 2013-04-28 17:58:11 +00:00
usr.bin When the world is built WITHOUT_OPENSSH also don't 2013-04-28 17:58:11 +00:00
usr.sbin Get rid of the 'vsc_rxpend' state - it doesn't serve any purpose because we 2013-04-28 01:02:59 +00:00
COPYRIGHT Happy New Year 2013! 2012-12-31 11:22:55 +00:00
LOCKS Test commit to make sure commit mail works after moving the server. 2012-12-29 16:03:23 +00:00
MAINTAINERS Update wiht the times. 2013-03-28 02:44:15 +00:00
Makefile If doing buildworld -DWITH_BMAKE make sure bmake does the build. 2013-04-12 00:34:19 +00:00
Makefile.inc1 Fix installworld with DB_FROM_SRC after r249807 2013-04-25 12:05:17 +00:00
ObsoleteFiles.inc Add one more obsolete file. 2013-04-14 12:20:13 +00:00
README Initial import of the QCA qcamain_open_hal repository. 2013-04-28 00:45:58 +00:00
UPDATING Remove IDEA from OptionalObsoleteFiles.inc 2013-04-27 00:03:07 +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.

cddl		Various commands and libraries under the Common Development
		and Distribution License.

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