kernel_optimize_test/Documentation/networking
Eric Dumazet 5f3e2bf008 tcp: add tcp_min_snd_mss sysctl
Some TCP peers announce a very small MSS option in their SYN and/or
SYN/ACK messages.

This forces the stack to send packets with a very high network/cpu
overhead.

Linux has enforced a minimal value of 48. Since this value includes
the size of TCP options, and that the options can consume up to 40
bytes, this means that each segment can include only 8 bytes of payload.

In some cases, it can be useful to increase the minimal value
to a saner value.

We still let the default to 48 (TCP_MIN_SND_MSS), for compatibility
reasons.

Note that TCP_MAXSEG socket option enforces a minimal value
of (TCP_MIN_MSS). David Miller increased this minimal value
in commit c39508d6f1 ("tcp: Make TCP_MAXSEG minimum more correct.")
from 64 to 88.

We might in the future merge TCP_MIN_SND_MSS and TCP_MIN_MSS.

CVE-2019-11479 -- tcp mss hardcoded to 48

Signed-off-by: Eric Dumazet <edumazet@google.com>
Suggested-by: Jonathan Looney <jtl@netflix.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Tyler Hicks <tyhicks@canonical.com>
Cc: Bruce Curtis <brucec@netflix.com>
Cc: Jonathan Lemon <jonathan.lemon@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-06-15 18:47:31 -07:00
..
caif
device_drivers
dsa
mac80211_hwsim
6lowpan.txt
6pack.txt
af_xdp.rst
alias.rst
altera_tse.txt
arcnet-hardware.txt
arcnet.txt
atm.txt
ax25.txt
batman-adv.rst
baycom.txt
bonding.txt
bridge.rst
can_ucan_protocol.rst
can.rst
cdc_mbim.txt
checksum-offloads.rst
conf.py
cops.txt
cxacru-cf.py
cxacru.txt
dccp.txt
dctcp.txt
decnet.txt
defza.txt
devlink-health.txt
devlink-info-versions.rst
devlink-params-bnxt.txt
devlink-params-mlxsw.txt
devlink-params.txt
dns_resolver.txt
driver.txt
eql.txt
failover.rst
fib_trie.txt
filter.txt
fore200e.txt
framerelay.txt
gen_stats.txt
generic_netlink.txt
generic-hdlc.txt
gtp.txt
hinic.txt
ieee802154.rst
ila.txt
index.rst
ip_dynaddr.txt
ip-sysctl.txt
ipddp.txt
iphase.txt
ipsec.txt
ipv6.txt
ipvlan.txt
ipvs-sysctl.txt
kapi.rst
kcm.txt
l2tp.txt
lapb-module.txt
ltpc.txt
mac80211-auth-assoc-deauth.txt
mac80211-injection.txt
mpls-sysctl.txt
msg_zerocopy.rst
multiqueue.txt
net_dim.txt
net_failover.rst
netconsole.txt
netdev-FAQ.rst
netdev-features.txt
netdevices.txt
netfilter-sysctl.txt
netif-msg.txt
nf_conntrack-sysctl.txt
nf_flowtable.txt
nfc.txt
openvswitch.txt
operstates.txt
packet_mmap.txt
phonet.txt
phy.rst
pktgen.txt
PLIP.txt
ppp_generic.txt
proc_net_tcp.txt
radiotap-headers.txt
ray_cs.txt
rds.txt
regulatory.txt
rxrpc.txt
scaling.rst
sctp.txt
secid.txt
seg6-sysctl.txt
segmentation-offloads.rst
sfp-phylink.rst
skfp.txt
snmp_counter.rst
strparser.txt
switchdev.txt
tc-actions-env-rules.txt
tcp-thin.txt
team.txt
timestamping.txt
tls-offload-layers.svg
tls-offload-reorder-bad.svg
tls-offload-reorder-good.svg
tls-offload.rst
tls.rst
tproxy.txt
tuntap.txt
udplite.txt
vrf.txt
vxlan.txt
x25-iface.txt
x25.txt
xfrm_device.txt
xfrm_proc.txt
xfrm_sync.txt
xfrm_sysctl.txt
z8530book.rst
z8530drv.txt