freebsd-dev/sys
John Baldwin 69542f2682 ktls: Close a race with setting so_error when dropping a connection.
pr_abort calls tcp_usr_abort which calls tcp_drop with ECONNABORTED.
After pr_abort returns, the so_error is then set to a more specific
error.  However, a reader can observe and return the ECONNABORTED
error before so_error is set to the desired error value.  This is
resulting in spurious test failures of recently added tests for
invalid conditions such as invalid headers.

To fix, refactor the code to abort a connection to call tcp_drop
directly with the desired error value.  ktls_reset_send_tag already
calls tcp_drop directly when it aborts a connection due to an error.

Reviewed by:	gallatin
Reported by:	CI (jenkins), gallatin, olivier
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D37692
2022-12-15 12:06:26 -08:00
..
amd64 vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
arm
arm64 pmap: standardize promotion conditions between amd64 and arm64 2022-12-12 11:32:50 -06:00
bsm
cam
cddl kinst: Add per-CPU interrupt trampolines 2022-12-08 15:03:51 -05:00
compat kref: switch internal type to atomic_t and bring back const to kref_read 2022-12-13 20:46:58 +00:00
conf tcp: retire TCPDEBUG 2022-12-14 09:54:06 -08:00
contrib ath: Fix mismatches in array bounds. 2022-12-07 12:30:42 -08:00
crypto aesni: Remove misleading array bounds for aesni_decryt_ecb. 2022-12-07 12:32:19 -08:00
ddb
dev retire cp(4) driver 2022-12-13 15:24:52 -05:00
dts
fs nullfs: adopt VV_CROSSLOCK 2022-12-10 22:02:39 -06:00
gdb
geom
gnu
i386 retire ce(4) driver 2022-12-13 15:24:25 -05:00
isa
kern ktls: Close a race with setting so_error when dropping a connection. 2022-12-15 12:06:26 -08:00
kgssapi
libkern
modules tcp: retire TCPDEBUG 2022-12-14 09:54:06 -08:00
net route: allow RTM_CHANGE notifications in rt_routemsg(). 2022-12-15 10:40:35 +00:00
net80211 netlink: add interface notification on link status / flags change. 2022-12-09 11:20:07 +00:00
netgraph
netinet Opps take out a stray left behind printf that was 2022-12-14 16:11:39 -05:00
netinet6 udp6: fix build with INET6 and without INVARIANTS 2022-12-07 12:27:15 -08:00
netipsec kdebug_secasv: Update for recent locking changes. 2022-12-15 11:27:39 -08:00
netlink netlink: improve interface handling 2022-12-14 19:52:35 +00:00
netpfil pf: Fix definitions of pf_pfil_*_hooked 2022-12-14 09:29:59 -05:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
riscv
rpc
security
sys sockets: provide sousrsend() that does socket specific error handling 2022-12-14 10:02:44 -08:00
teken
tests
tools
ufs
vm vm: reduce lock contention when processing vm batchqueues 2022-12-14 14:34:07 -05:00
x86 Complete retire cp(4) 2022-12-14 11:38:55 +08:00
xdr
xen
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures