freebsd kernel with SKQ
Go to file
alc 5f3ef7ae53 Before calling mmap() on a shared library's text and data sections, rtld
first calls mmap() with the arguments PROT_NONE and MAP_ANON to reserve a
single, contiguous range of virtual addresses for the entire shared library.
Later, rtld calls mmap() with the the shared library's file descriptor
and the argument MAP_FIXED to place the text and data sections within the
reserved range.  The rationale for mapping shared libraries in this way is
explained in the commit message for Revision 190885.  However, this approach
does have an unintended, negative consequence.  Since the first call to
mmap() specifies MAP_ANON and not the shared library's file descriptor, the
kernel has no idea what alignment the vm object backing the file prefers.
As a result, the reserved range's alignment is unlikely to be the same as
the vm object's, and so mapping with superpages becomes impossible.  To
address this problem, this revision adds the argument MAP_ALIGNED_SUPER to
the first call to mmap() if the text section is larger than the smallest
superpage size.

To determine if the text section is larger than the smallest superpage
size, rtld must always fetch the page size information.  As a result, the
private code for fetching the base page size in rtld's builtin malloc is
redundant.  Eliminate it.  Requested by: kib

Tested by:	zbb (on arm)
Reviewed by:	kib (an earlier version)
Discussed with:	jhb
2014-04-11 16:55:25 +00:00
bin -k option is compliant with POSIX. 2014-04-04 01:48:25 +00:00
cddl Add property and sysctl to control how ZVOLs are exposed to OS. 2014-04-05 13:01:44 +00:00
contrib Amend r263891, by making clang default to DWARF2 debug info format for 2014-04-11 16:51:35 +00:00
crypto Restore the pX part to the version number printed in debugging mode. 2014-04-09 20:42:00 +00:00
etc Loosen the processing of *_IF_aliasN vars to be less strict. Previously, 2014-04-07 22:40:29 +00:00
games Correct a typo in Malcolm MacDougall's name. 2014-02-15 22:15:24 +00:00
gnu It is possible that MK_GNUCXX is "yes" but MK_CXX is "no" so make sure 2014-04-01 14:23:58 +00:00
include Add support for some block functions that come from OS X. These are 2014-04-02 16:07:48 +00:00
kerberos5 use MK_KERBEROS=no in preference to WITHOUT_KERBEROS 2014-04-05 17:54:50 +00:00
lib Tune buffer sizes for SuperSpeed USB when using LibUSB v0.1 and v1.0 2014-04-11 14:11:55 +00:00
libexec Before calling mmap() on a shared library's text and data sections, rtld 2014-04-11 16:55:25 +00:00
release Add SRC_UPDATE_SKIP, DOC_UPDATE_SKIP, and PORTS_UPDATE_SKIP 2014-04-11 13:48:45 +00:00
rescue Remove IPX support. 2014-03-14 02:58:48 +00:00
sbin Detach from controlling session of parent. This is similar 2014-04-03 22:14:18 +00:00
secure Merge OpenSSL 1.0.1g. 2014-04-08 21:06:58 +00:00
share Add SRC_UPDATE_SKIP, DOC_UPDATE_SKIP, and PORTS_UPDATE_SKIP 2014-04-11 13:48:45 +00:00
sys Don't leak the TCP pcbinfo lock if a time wait connection is closed 2014-04-11 13:11:43 +00:00
tests Fix variable type to avoid printf formatter warning. 2014-04-04 18:10:11 +00:00
tools Also ignore files from Murcirial (.hg) and git (.git) when copying 2014-04-08 21:58:04 +00:00
usr.bin - Adding myself to the committers-ports.dot 2014-04-10 18:34:26 +00:00
usr.sbin Fix stray "." left over from previous commit. 2014-04-10 10:56:11 +00:00
COPYRIGHT Bump copyright year. 2013-12-31 12:18:10 +00:00
LOCKS Explicitly require Security Officer's approval for kernel PRNG bits. 2013-09-17 14:19:05 +00:00
MAINTAINERS This should have been obvious, but make it so. 2014-04-06 16:48:00 +00:00
Makefile Remove support for legacy mips*eb names. Remove tests for 2014-04-01 14:24:25 +00:00
Makefile.inc1 Prevent XDTP from being a relative path 2014-04-04 17:58:33 +00:00
ObsoleteFiles.inc Add more obsolete files 2014-03-16 20:31:05 +00:00
README
UPDATING Amend r263891, by making clang default to DWARF2 debug info format for 2014-04-11 16:51:35 +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