freebsd kernel with SKQ
Go to file
Robert Noland 1c2dee3cc9 Fix handling of GPT headers when size is > 92 bytes.
It is valid for an on-disk GPT header to report a header size which is
greater than 92 bytes.  Previously, we would read in the sector and copy
only the 92 bytes that we know how to deal with before calculating the
checksum for comparison.  This meant that when we did the checksum, we
overshot the buffer and took in random memory, so the checksum would fail.

We now determine the size of the header and allocate enough space to
preserve the entire on-disk contents.  This allows us to be correctly
calculate the checksum and be able to modify and write the header back
to the disk, while preserving data that we might not understand.

Reported by:	Kris Weston
Approved by:	marcel@
MFC after:	2 weeks
2009-11-07 17:29:03 +00:00
bin sh: Fix memory leak when using a variable in arithmetic like $((x)). 2009-11-05 20:44:39 +00:00
cddl Properly mark ZFS properties which are not changeable under FreeBSD. 2009-10-08 19:45:37 +00:00
contrib Merge r198489 from vendor/ncurses/dist: 2009-10-26 13:03:52 +00:00
crypto Remove dupe. 2009-10-11 14:27:33 +00:00
etc Execute the start/stop process of a jail in the background. 2009-11-02 09:56:46 +00:00
games Fix not only the grammar, but also the formatting that makes the gag 2009-11-04 18:40:05 +00:00
gnu Compile libgcov without stack protection. It can be linked into 2009-10-25 15:52:31 +00:00
include Add basename_r(3) to complement basename(3). basename_r(3) which accepts 2009-10-06 14:05:57 +00:00
kerberos5 Link GSS mechanics modules against libgssapi so they will not fail due 2009-10-12 17:10:51 +00:00
lib Fix a copy-paste bug when reading data from the last 3 (7 for PAE) bytes of 2009-11-06 13:10:12 +00:00
libexec Calculate relocation base for the main object, and apply the relocation 2009-10-10 15:27:10 +00:00
release Update package list for 8.0-REL. 2009-10-20 13:58:30 +00:00
rescue Add the "vnet" and "-vnet" options, to allow moving interfaces between 2009-06-24 18:21:37 +00:00
sbin MFp4: 2009-11-04 15:24:32 +00:00
secure Fix a couple of comment typos. 2009-11-03 18:40:42 +00:00
share 88E8057(Ultra 2) is now supported. 2009-11-07 01:18:03 +00:00
sys Fix handling of GPT headers when size is > 92 bytes. 2009-11-07 17:29:03 +00:00
tools sh: Exempt $@ and $* from set -u 2009-10-24 21:20:04 +00:00
usr.bin Static'ify signal handler which is not called from outside. 2009-11-03 09:25:08 +00:00
usr.sbin Set umask to 0x077 instead of the default. This prevents non-root user 2009-11-03 09:17:23 +00:00
COPYRIGHT Bump the odometer of the years. A little early this year for 7.1R. 2008-12-30 04:46:25 +00:00
LOCKS Update LOCKS syntax. 2008-06-05 19:47:58 +00:00
MAINTAINERS - pkg_install is maintained by portmgr. 2009-07-06 11:46:18 +00:00
Makefile Add a new world named 'mips' to our universe. 2009-04-01 17:11:50 +00:00
Makefile.inc1 Replace -iprefix with -isystem. We only need alternative header 2009-11-01 08:20:30 +00:00
ObsoleteFiles.inc Move pselect(3) man page to section 2. 2009-10-28 11:14:32 +00:00
README
UPDATING Belatedly add an UPDATING message for the usb ethernet ifnet naming in r188412. 2009-11-03 21:06:19 +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