No description
Find a file
Eric Dumazet 5d73b79ad3 ipv4/tcp: do not use per netns ctl sockets
[ Upstream commit 37ba017dcc ]

TCP ipv4 uses per-cpu/per-netns ctl sockets in order to send
RST and some ACK packets (on behalf of TIMEWAIT sockets).

This adds memory and cpu costs, which do not seem needed.
Now typical servers have 256 or more cores, this adds considerable
tax to netns users.

tcp sockets are used from BH context, are not receiving packets,
and do not store any persistent state but the 'struct net' pointer
in order to be able to use IPv4 output functions.

Note that I attempted a related change in the past, that had
to be hot-fixed in commit bdbbb8527b ("ipv4: tcp: get rid of ugly unicast_sock")

This patch could very well surface old bugs, on layers not
taking care of sk->sk_kern_sock properly.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-19 17:51:37 +08:00
arch PCI: hv: Fix hv_arch_irq_unmask() for multi-MSI 2023-04-19 17:51:35 +08:00
block
certs
crypto
Documentation x86/bugs: Add retbleed=ibpb 2023-04-19 17:51:32 +08:00
drivers pinctrl: ralink: Check for null return of devm_kcalloc 2023-04-19 17:51:37 +08:00
fs xfs: prevent a WARN_ONCE() in xfs_ioc_attr_list() 2023-04-19 17:51:36 +08:00
include ipv4/tcp: do not use per netns ctl sockets 2023-04-19 17:51:37 +08:00
init
ipc
kernel perf/core: Fix data race between perf_event_set_output() and perf_mmap_close() 2023-04-19 17:51:37 +08:00
lib ida: don't use BUG_ON() for debugging 2023-04-19 17:51:14 +08:00
LICENSES
mm mm: split huge PUD on wp_huge_pud fallback 2023-04-19 17:51:16 +08:00
net ipv4/tcp: do not use per netns ctl sockets 2023-04-19 17:51:37 +08:00
samples
scripts x86/retbleed: Add fine grained Kconfig knobs 2023-04-19 17:51:33 +08:00
security lockdown: Fix kexec lockdown bypass with ima policy 2023-04-19 17:51:35 +08:00
sound ALSA: usb-audio: Add quirk for Fiero SC-01 (fw v1.0.0) 2023-04-19 17:51:27 +08:00
tools Revert "selftest/vm: verify mmap addr in mremap_test" 2023-04-19 17:51:35 +08:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.15.57 2023-04-19 17:51:35 +08:00
README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.