freebsd kernel with SKQ
Go to file
pjd 09be0bbef1 Fix panic in procdesc that can be triggered in the following scenario:
1. Process A pdfork(2)s process B.
2. Process A passes process descriptor of B to unrelated process C.
3. Hit CTRL+C to terminate process A. Process B is also terminated
   with SIGINT.
4. init(8) collects status of process B.
5. Process C closes process descriptor associated with process B.

When we have such order of events, init(8), by collecting status of
process B, will call procdesc_reap(). This function sets pd_proc to NULL.

Now when process C calls close on this process descriptor,
procdesc_close() is called. Unfortunately procdesc_close() assumes that
pd_proc points at a valid proc structure, but it was set to NULL earlier,
so the kernel panics.

The patch also adds setting 'p->p_procdesc' to NULL in procdesc_reap(),
which I think should be done.

MFC after:	1 week
2012-09-01 11:21:56 +00:00
bin Add a -h flag similar to the -h flag for ln to force mv(1) to treat a 2012-08-31 14:35:01 +00:00
cddl Finish porting execsnoop to FreeBSD. This includes replacing the zonename 2012-09-01 08:14:21 +00:00
contrib Fix a twelve year old bug in readelf: when process_dynamic_segment() 2012-08-31 23:28:41 +00:00
crypto Merge OpenSSL 1.0.1c. 2012-07-12 19:30:53 +00:00
etc Correct style. 2012-08-22 23:44:12 +00:00
games Add a couple of nice quotes from Edward Everett Hale 2012-07-29 01:01:35 +00:00
gnu For building libstdc++ and libsupc++, filter out any -stdlib=libc++ 2012-08-25 23:08:24 +00:00
include Bring some changes from Bull's NFSv4 libtirpc implementation. 2012-09-01 02:56:17 +00:00
kerberos5 Centralize the specification of the krb5 build tools. 2012-06-01 21:26:28 +00:00
lib Bring some changes from Bull's NFSv4 libtirpc implementation. 2012-09-01 02:56:17 +00:00
libexec Do not call process_nodelete with NULL object pointer. 2012-08-20 23:43:03 +00:00
release use MALLOC_PRODUCTION for picobsd builds, be more frugal in memory usage. 2012-08-27 16:42:32 +00:00
rescue Partial MFV (illumos-gate 13753:2aba784c276b) 2012-07-30 23:14:24 +00:00
sbin Change the gptboot example so the boot partition is aligned on a 4 kB 2012-08-29 15:18:56 +00:00
secure Sort ASM definitions by crypto module for slightly easier maintenance. 2012-07-12 21:31:53 +00:00
share Clarify that bus_dma does not stall future load requests once a load is 2012-08-30 14:44:30 +00:00
sys Fix panic in procdesc that can be triggered in the following scenario: 2012-09-01 11:21:56 +00:00
tools Minor mdoc fix. 2012-09-01 07:11:25 +00:00
usr.bin - Remove unused variables. 2012-08-30 08:54:13 +00:00
usr.sbin Rework time handling. 2012-09-01 10:56:15 +00:00
COPYRIGHT Happy 2012 to FreeBSD users in Samoa. 2011-12-31 04:38:04 +00:00
LOCKS
MAINTAINERS Add man page and update a few other files in preparation for committing full isci driver. 2012-01-23 22:30:09 +00:00
Makefile Merging of projects/armv6, part 3 2012-08-15 03:21:56 +00:00
Makefile.inc1 Merging of projects/armv6, part 3 2012-08-15 03:21:56 +00:00
ObsoleteFiles.inc Add a few other files that are obsolete if WITH_CLANG_EXTRAS is enabled, 2012-08-27 19:30:21 +00:00
README Import OpenSSL 1.0.1c. 2012-07-11 23:31:36 +00:00
UPDATING Merge recent vendor changes: 2012-08-28 12:25:37 +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