freebsd kernel with SKQ
Go to file
glebius d07f9bea4e Fix tcp_output() so that tcpcb is updated in the same manner when an
mbuf allocation fails, as in a case when ip_output() returns error.

To achieve that, move large block of code that updates tcpcb below
the out: label.

This fixes a panic, that requires the following sequence to happen:

1) The SYN was sent to the network, tp->snd_nxt = iss + 1, tp->snd_una = iss
2) The retransmit timeout happened for the SYN we had sent,
   tcp_timer_rexmt() sets tp->snd_nxt = tp->snd_una, and calls tcp_output().
   In tcp_output m_get() fails.
3) Later on the SYN|ACK for the SYN sent in step 1) came,
   tcp_input sets tp->snd_una += 1, which leads to
   tp->snd_una > tp->snd_nxt inconsistency, that later panics in
   socket buffer code.

For reference, this bug fixed in DragonflyBSD repo:

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1ff9b7d322dc5a26f7173aa8c38ecb79da80e419

Reviewed by:	andre
Tested by:	pho
Sponsored by:	Nginx, Inc.
PR:		kern/177456
Submitted by:	HouYeFei&XiBoLiu <lglion718 163.com>
2013-04-11 18:23:56 +00:00
bin sh: Add const to nodesavestr(). 2013-04-07 16:28:36 +00:00
cddl DTrace: option for time-ordered output 2013-04-11 16:24:36 +00:00
contrib Last remaining prototype issue that still hasn't been fixed upstream. 2013-04-09 13:16:11 +00:00
crypto Merge upstream patch to silence spurious "no such identity file" warnings. 2013-04-02 11:44:55 +00:00
etc Regenerate usb.conf 2013-04-06 17:25:17 +00:00
games Remove a reference to instant-server which has been removed from the 2013-03-21 12:42:25 +00:00
gnu Add FreeBSD 8.4. 2013-04-08 20:33:51 +00:00
include Add static/const keywords to the arrays. 2013-04-09 16:16:34 +00:00
kerberos5 Add -lheimntlm to LDADD directly. 2013-02-11 09:45:24 +00:00
lib Remove EOL whitespace. 2013-04-11 13:05:38 +00:00
libexec Map libraries linked with -Ttext-segment=base_addr at base_addr. 2013-02-27 09:34:09 +00:00
release - Update hardware notes to reflect that amd64 is no longer "young"[1] 2013-03-28 22:52:42 +00:00
rescue Remove all legacy ATA code parts, not used since options ATA_CAM enabled in 2013-04-04 07:12:24 +00:00
sbin Remove kernel options from the SYNOPSIS. They are already documented in the 2013-04-11 18:02:42 +00:00
secure Upgrade to OpenSSH 6.2p1. The most important new features are support 2013-03-22 17:55:38 +00:00
share - Add entries for alc and akoszek, alredy referenced elsewhere 2013-04-11 17:16:08 +00:00
sys Fix tcp_output() so that tcpcb is updated in the same manner when an 2013-04-11 18:23:56 +00:00
tools Set and display the IP fragment bit correctly when dealing with 2013-04-11 16:50:58 +00:00
usr.bin fuser(1) requires a filename. 2013-04-11 12:24:29 +00:00
usr.sbin Need to call init_mem() to really initialize the MMIO range lookups. 2013-04-10 18:59:20 +00:00
COPYRIGHT Happy New Year 2013! 2012-12-31 11:22:55 +00:00
LOCKS
MAINTAINERS Update wiht the times. 2013-03-28 02:44:15 +00:00
Makefile Ensure make -j N universe works correctly, by checking for an up-to-date 2013-04-09 20:21:35 +00:00
Makefile.inc1 Fix xdev-install when installing to a location other than / 2013-03-31 08:54:04 +00:00
ObsoleteFiles.inc Fix a typo in the burncd line. 2013-04-05 21:18:01 +00:00
README
UPDATING Add warning about SOCK_CLOEXEC and SOCK_NONBLOCK (r248534). 2013-04-06 22:28: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.

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