freebsd kernel with SKQ
Go to file
alc 3ffc6c3bf0 Consider three objects, O, BO, and BBO, where BO is O's backing object
and BBO is BO's backing object.  Now, suppose that O and BO are being
collapsed.  Furthermore, suppose that BO has been marked dead
(OBJ_DEAD) by vm_object_backing_scan() and that either
vm_object_backing_scan() has been forced to sleep due to encountering
a busy page or vm_object_collapse() has been forced to sleep due to
memory allocation in the swap pager.  If vm_object_deallocate() is
then called on BBO and BO is BBO's only shadow object,
vm_object_deallocate() will collapse BO and BBO.  In doing so, it adds
a necessary temporary reference to BO.  If this collapse also sleeps
and the prior collapse resumes first, the temporary reference will
cause vm_object_collapse to panic with the message "backing_object %p
was somehow re-referenced during collapse!"

Resolve this race by changing vm_object_deallocate() such that it
doesn't collapse BO and BBO if BO is marked dead.  Once O and BO are
collapsed, vm_object_collapse() will attempt to collapse O and BBO.
So, vm_object_deallocate() on BBO need do nothing.

Reported by: Peter Holm on 20050107
URL: http://www.holm.cc/stress/log/cons102.html

In collaboration with: tegge@
Candidate for RELENG_4 and RELENG_5
MFC after: 2 weeks
2005-01-15 21:12:47 +00:00
bin Eliminate macro calls inside literal displays. 2005-01-15 12:28:01 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r140229, 2005-01-14 09:50:45 +00:00
crypto Better Xlist command line. 2004-10-28 16:13:28 +00:00
etc Fix the pbio include file installation process and the 2005-01-14 14:18:19 +00:00
games 1. s/women/woman/ when the singular is intended 2005-01-11 00:25:38 +00:00
gnu Markup nits. 2005-01-13 10:07:51 +00:00
include Fix the pbio include file installation process and the 2005-01-14 14:18:19 +00:00
kerberos5 NODOCCOMPRESS -> NO_DOCCOMPRESS 2004-12-21 09:33:47 +00:00
lib Removed empty line. 2005-01-15 12:45:24 +00:00
libexec 64-bit clean + WARNS=6: 2005-01-14 12:22:57 +00:00
release Safer version of the chflags command. 2005-01-13 08:29:51 +00:00
rescue Don't call "objs" target in rescue.mk twice. 2004-12-23 10:16:46 +00:00
sbin Fix arguments syntax. 2005-01-15 13:02:50 +00:00
secure NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
share Document bus_dmamap_load_mbuf_sg() 2005-01-15 20:50:52 +00:00
sys Consider three objects, O, BO, and BBO, where BO is O's backing object 2005-01-15 21:12:47 +00:00
tools Add test which excersises problem with unability to change association of 2005-01-12 09:57:18 +00:00
usr.bin Eliminate macro calls inside literal displays. 2005-01-15 12:28:01 +00:00
usr.sbin Eliminate macro calls inside literal displays. 2005-01-15 12:28:01 +00:00
COPYRIGHT Complete 2005 transition. 2005-01-01 07:29:20 +00:00
MAINTAINERS Drop hold on patch. ENOTIME for long-stalled ideas here. Too busy elsewhere. 2004-12-29 03:49:58 +00:00
Makefile NOSHARED -> NO_SHARED 2004-12-21 09:59:45 +00:00
Makefile.inc1 Remove the special sparc64 time_t support. 2004-12-29 19:39:06 +00:00
README
UPDATING Note the deprecation of the abbreviation of a number of ipfw options. 2005-01-15 01:53:49 +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
``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.

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