freebsd kernel with SKQ
Go to file
jhb f6d0271729 Call kthread_exit() rather than kproc_exit() for a premature kthread exit.
Kernel threads (and processes) are supposed to call kthread_exit() (or
kproc_exit()) to terminate.  However, the kernel includes a fallback in
fork_exit() to force a kthread exit if a kernel thread's "main" routine
returns.  This fallback was added back when the kernel only had processes
and was not updated to call kthread_exit() instead of kproc_exit() when
threads were added to the kernel.

This mistake was particular exciting when the errant thread belonged to
proc0.  Due to the missing P_KTHREAD flag the fallback did not kick in
and instead tried to return to userland via whatever garbage was in the
trapframe.  With P_KTHREAD set it tried to terminate proc0 resulting in
other amusements.

PR:		204999
MFC after:	1 week
2016-02-08 23:11:23 +00:00
bin Add 't' and 'p' postfixes to dd(1). 2016-02-04 15:21:01 +00:00
cddl MFV 295046: 6358 A faulted pool with only unavailable vdevs triggers 2016-01-29 17:20:59 +00:00
contrib readelf: decode AArch64 TLS descriptor relocations 2016-02-05 20:57:21 +00:00
crypto Document our modified default value for PermitRootLogin. 2016-02-02 10:02:38 +00:00
etc Fix typo in a comment; s/redined/redefined/ 2016-02-06 02:35:52 +00:00
gnu Make .debug file for libgcc_s.so.1 more useful. 2016-01-27 20:20:35 +00:00
include Provide new socket option TCP_CCALGOOPT, which stands for TCP congestion 2016-01-22 02:07:48 +00:00
kerberos5 DIRDEPS_BUILD: Update dependencies. 2015-12-07 23:53:01 +00:00
lib Fix the gcc build after r295407. 2016-02-08 22:02:56 +00:00
libexec Fix the type for hw.ncpu, so sysctlbyname doesn't consistently fail on 2016-01-30 17:54:18 +00:00
release Increase efiboot.img size used in ISO creation 2016-01-13 14:47:13 +00:00
rescue Fix the build after ifconfig was converted over to lib80211 in r291470 2015-11-30 16:34:13 +00:00
sbin Delete argsize to fix a -Wunused-but-set-variable warning with gcc 4.9 2016-02-01 08:06:17 +00:00
secure Merge OpenSSL 1.0.2f. 2016-01-28 20:15:22 +00:00
share Adjust MAC allocation algo to support layering 2016-02-08 17:47:36 +00:00
sys Call kthread_exit() rather than kproc_exit() for a premature kthread exit. 2016-02-08 23:11:23 +00:00
targets Restore kgzldr on i386 only 2016-02-08 16:59:52 +00:00
tests Use basenames for getfacl, setfacl, and zpool to work around the 2016-02-06 04:13:20 +00:00
tools Add a format string to the err() calls. 2016-02-08 02:11:34 +00:00
usr.bin Increase max allowed backlog for listen sockets 2016-02-02 05:57:59 +00:00
usr.sbin Provide a future release as an example, instead of a historical one. 2016-02-05 21:57:50 +00:00
.arcconfig Add repository.callsign, to help arcanist figure out what repo it's 2015-07-02 22:23:52 +00:00
.arclint phabricator related changes: 2015-04-20 20:33:22 +00:00
COPYRIGHT Bump copyright year. 2015-12-31 11:21:45 +00:00
LOCKS
MAINTAINERS Add interests/maintainerships + notes 2015-12-28 19:29:05 +00:00
Makefile Simplify running the FreeBSD test suite 2016-02-07 18:40:04 +00:00
Makefile.inc1 Simplify running the FreeBSD test suite 2016-02-07 18:40:04 +00:00
ObsoleteFiles.inc Remove leading slashes added to ObsoleteFiles.inc in r294113. 2016-01-17 00:52:28 +00:00
README README: changes and fixups 2015-04-19 07:16:44 +00:00
UPDATING Add a sysctl to allow ZFS pools backed by zvols 2016-01-29 17:08:26 +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.  See build(7)
and 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.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

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 kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


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.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

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