freebsd kernel with SKQ
Go to file
loos 058ac53f3f MFC r260522, r260523, r261439, r261440, r261586, r264504, r264769, r265193,
r265194, r265197

r260522:
Add the manual page for geom_uncompress(4).

r260523:
Build the geom_uncompress(4) module by default.

Fix geom_uncompress(4) module loading.  Don't link zlib.c (which is a module
itself) directly.

r261439:
Remove some unnecessary code.  The offsets read from the first block are
overwritten a few lines bellow.

r261440:
Fix a logic error.  Because of this inflateReset() wasn't being called and
the output buffer wasn't being cleared between the inflate() calls,
producing zeroed output after the first inflate() call.

This fixes the read of mkuzip(8) images with geom_uncompress(4).

r261586:
Fix the build with DEBUG enabled.  Where possible, fix style(9) issues.

r264504:
Make sure not to do I/O for more than MAXPHYS bytes. Doing so can cause
problems in our providers, such as a KASSERT in md(4). We can initiate
I/O for more than MAXPHYS bytes if we've been given a BIO for MAXPHYS
bytes, the blocks from which we're reading couldn't be compressed and
we had compression in preceeding blocks resulting in misalignment of
the blocks we're trying to read relative to the sector. We're forced to
round up the I/O length to make it an multiple of the sector size.

When we detect the condition, we'll reduce the block count and perform
a "short" read. In g_uzip_done() we need to consider the original I/O
length and stop early if we're about to deflate a block that we didn't
read. By using bio_completed in the cloned BIO and not bio_length to
check for this, we automatically and gracefully handle short reads that
our providers may be doing on top of the short reads we may initiate
ourselves.

r264769:
Keep geom_uncompress(4) in line with geom_uzip(4), bring in the r264504 fix.

Make sure not to start I/O bigger than MAXPHYS bytes.

r265193:
Some style and whitespace fixes.  Reduce the difference between geom_uzip(4)
and geom_uncompress(4).  Now, they produce an almost clean diff(1) output.

Remove a duplicated variable from g_uncompress.c and an unnecessary header
from g_uzip.c.

r265194:
Actually the FEATURE() macro is defined on sys/sysctl.h.

r265197:
Fix a leak in g_uzip_taste().  After retrieve all the block offsets from
the uzip image, free the last data read.
2014-05-16 14:28:55 +00:00
bin date(1): Add "-R" flag to use RFC 2822 date and time output format [MFC] 2014-05-03 13:19:11 +00:00
cddl MFC r264835 (MFV r264829): 2014-05-09 07:12:31 +00:00
contrib MFC r261215, r261257 2014-05-15 14:37:52 +00:00
crypto Fix OpenSSL NULL pointer deference vulnerability. 2014-05-13 23:19:16 +00:00
etc MFC r263445 and r265385. Note that the change to ObsoleteFiles.inc in 2014-05-07 18:49:25 +00:00
games MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies. 2014-04-28 04:20:14 +00:00
gnu MFC r265732: 2014-05-09 04:16:10 +00:00
include MFC r263998: 2014-04-15 09:41:52 +00:00
kerberos5 MFC r262253: hack to prevent concurrent runs of asn1_compile in the Heimdal 2014-02-20 20:51:27 +00:00
lib MFC r257207, r261161, r261163: 2014-05-15 15:02:48 +00:00
libexec MFC r264617: 2014-05-05 16:52:38 +00:00
release MFC: r265362 2014-05-14 13:54:07 +00:00
rescue - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
sbin MFC: r265535 2014-05-14 16:18:08 +00:00
secure MFC r265003: 2014-05-04 07:28:26 +00:00
share MFC r260522, r260523, r261439, r261440, r261586, r264504, r264769, r265193, 2014-05-16 14:28:55 +00:00
sys MFC r260522, r260523, r261439, r261440, r261586, r264504, r264769, r265193, 2014-05-16 14:28:55 +00:00
tests MFC r263445 and r265385. Note that the change to ObsoleteFiles.inc in 2014-05-07 18:49:25 +00:00
tools MFC rev. 265260: 2014-05-11 20:44:58 +00:00
usr.bin MFC r262394: Fix parsing multiple roots with whitespace between them. 2014-05-15 22:51:14 +00:00
usr.sbin MFC r258044, r258679, r263990 2014-05-14 23:33:38 +00:00
COPYRIGHT MFC r260125: 2013-12-31 12:24:38 +00:00
LOCKS Explicitly require Security Officer's approval for kernel PRNG bits. 2013-09-17 14:19:05 +00:00
MAINTAINERS Add myself as maintainer for nvme(4), nvd(4) and nvmecontrol(8). 2013-07-31 18:18:02 +00:00
Makefile MFC r265097: 2014-05-06 14:38:03 +00:00
Makefile.inc1 MFC rev. 265260: 2014-05-11 20:44:58 +00:00
ObsoleteFiles.inc MFC revisions 260894,260899,262895-262902,262904,262908-262910,262982, 2014-04-01 00:19:13 +00:00
README
UPDATING MFC r264345: 2014-04-14 17:54:01 +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