freebsd-dev/sys
Michael Tuexen c7e732ae61 Fix a bug in INIT handling on accepted 1-to-1 style sockets when the
listener is closed.
This fix allows the following packetdrill test to pass:
// Setup a connected, blocking 1-to-1 style socket
+0.0 socket(..., SOCK_STREAM, IPPROTO_SCTP) = 3
// Check the handshake with en empty(!) cookie
+0.0 bind(3, ..., ...) = 0
+0.0 listen(3, 1) = 0
+0.0 < sctp: INIT[flgs=0, tag=1, a_rwnd=1500, os=1, is=1, tsn=1]
+0.0 > sctp: INIT_ACK[flgs=0, tag=2, a_rwnd=..., os=..., is=..., tsn=1, ...]
+0.0 < sctp: COOKIE_ECHO[flgs=0, len=..., val=...]
+0.0 > sctp: COOKIE_ACK[flgs=0]
+0.0 accept(3, ..., ...) = 4
+0.0 close(3) = 0
// Inject an INIT chunk and expect an INIT-ACK
+0.0 < sctp: INIT[flgs=0, tag=3, a_rwnd=1500, os=1, is=1, tsn=1]
+0.0 > sctp: INIT_ACK[flgs=0, tag=..., a_rwnd=..., os=..., is=..., tsn=..., ...]

MFC after:	3 days
2016-01-15 00:26:15 +00:00
..
amd64 Regen after r293907. 2016-01-14 10:15:21 +00:00
arm Fix the handling of the "PDC write transfer length" erratum for at91. The 2016-01-14 19:33:13 +00:00
arm64 Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall 2016-01-09 20:18:53 +00:00
boot Make it possible to specify the path to userboot.so with the -b flag. 2016-01-14 22:07:35 +00:00
bsm Merge from contrib/openbsm to bring the kernel audit bits up to date with OpenBSM 1.2 alpha 4: 2015-12-20 23:22:04 +00:00
cam Convert sys/cam to use make_dev_s(). 2016-01-07 20:22:55 +00:00
cddl Fix race condition involving ZFS remove events 2016-01-14 18:19:05 +00:00
compat Call crextend() before copying old credentials to the new credentials 2016-01-14 10:16:25 +00:00
conf sfxge: add accessors for license-related MCDI calls to common code 2016-01-14 09:19:28 +00:00
contrib Fix order of last two arguments of mtx_init 2016-01-14 20:25:22 +00:00
crypto Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
ddb Add helper to catch single step debug event and distinguish it from bkpt 2015-11-27 19:03:59 +00:00
dev sfxge: cleanup: quieten efx_mcdi_read_resonse_header error reporting 2016-01-14 09:20:25 +00:00
fs Make devfs_fpdrop() static. It was not a public KPI, and it has no 2016-01-13 14:03:06 +00:00
gdb
geom Add rotationrate to geom disk dumpconf 2016-01-14 21:52:21 +00:00
gnu
i386 Regen after r293907. 2016-01-14 10:15:21 +00:00
isa
kern Remove aiod_timeout. 2016-01-14 21:28:56 +00:00
kgssapi Unset the gss kernel state when gssd exits 2016-01-01 17:06:16 +00:00
libkern libkern: ffs, fls: s/4/3/ the 3rd BSD clause 2015-10-22 21:04:47 +00:00
mips Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall 2016-01-09 20:18:53 +00:00
modules sfxge: add accessors for license-related MCDI calls to common code 2016-01-14 09:19:28 +00:00
net Fix panic in IP redirect. Panic was introduced in r293466. 2016-01-14 16:31:00 +00:00
net80211 Remove sys/eventhandler.h from net/route.h 2016-01-09 09:34:39 +00:00
netgraph Make ng_netflow(9) use new routing KPI. 2016-01-14 13:14:12 +00:00
netinet Fix a bug in INIT handling on accepted 1-to-1 style sockets when the 2016-01-15 00:26:15 +00:00
netinet6 Verify the packet length in sctp6_input(). 2016-01-14 10:11:10 +00:00
netipsec Overhaul if_enc(4) and make it loadable in run-time. 2015-11-25 07:31:59 +00:00
netnatm
netpfil Initialize error value ta_lookup_kfib() by default to please compiler. 2016-01-10 08:37:00 +00:00
netsmb The problem report was for a crash that happened when smbfs was 2015-11-18 23:04:01 +00:00
nfs Add kernel support to the NFS server for the "-manage-gids" 2015-11-30 21:54:27 +00:00
nfsclient
nfsserver
nlm
ofed Finish r275196: do not dereference rtentry in if_output() routines. 2016-01-09 16:34:37 +00:00
opencrypto Break up opencrypto/xform.c so it can be reused piecemeal 2015-12-30 22:43:07 +00:00
pc98 Add asynchronous command support to the pass(4) driver, and the new 2015-12-03 20:54:55 +00:00
powerpc Adjust VM_MAX_KERNEL_ADDRESS to the max address, not the minimum next. 2016-01-14 23:22:43 +00:00
riscv/include Import RISC-V machine headers. This is a minimal set required to compile 2015-12-17 18:44:30 +00:00
rpc Improve locking of sg_threadcount. 2015-11-19 08:04:05 +00:00
security Move the funsetown(9) call from audit_pipe_close() to cdevpriv 2016-01-13 14:02:07 +00:00
sparc64 Implement vsyscall hack. Prior to 2.13 glibc uses vsyscall 2016-01-09 20:18:53 +00:00
sys Call crextend() before copying old credentials to the new credentials 2016-01-14 10:16:25 +00:00
teken
tests Style 9 changes. 2015-11-12 10:31:14 +00:00
tools Rename the /usr/share/doc/legal files to driver.LICENSE to work around 2015-10-16 00:38:05 +00:00
ufs Recheck curthread->td_su after the VFS_SYNC() call, and re-sync if the 2015-12-21 11:50:32 +00:00
vm Fix the domain iterator to not try the first-touch / fixed domain 2016-01-10 17:53:43 +00:00
x86 hyperv: use x86 generic code to do the hypervisor detection 2016-01-14 02:50:13 +00:00
xdr
xen Clean up unused-but-set-variable spotted by gcc-4.9. 2015-12-31 01:54:07 +00:00
Makefile