diff options
author | David S. Miller | 2019-06-17 19:39:56 +0200 |
---|---|---|
committer | David S. Miller | 2019-06-17 19:39:56 +0200 |
commit | 4fddbf8a99ee5a65bdd31b3ebbf5a84b9395d496 (patch) | |
tree | 671cdce9ff92bdd0a99619f995bbcea9124735ad /include/linux | |
parent | lapb: fixed leak of control-blocks. (diff) | |
parent | tcp: enforce tcp_min_snd_mss in tcp_mtu_probing() (diff) | |
download | kernel-qcow2-linux-4fddbf8a99ee5a65bdd31b3ebbf5a84b9395d496.tar.gz kernel-qcow2-linux-4fddbf8a99ee5a65bdd31b3ebbf5a84b9395d496.tar.xz kernel-qcow2-linux-4fddbf8a99ee5a65bdd31b3ebbf5a84b9395d496.zip |
Merge branch 'tcp-fixes'
Eric Dumazet says:
====================
tcp: make sack processing more robust
Jonathan Looney brought to our attention multiple problems
in TCP stack at the sender side.
SACK processing can be abused by malicious peers to either
cause overflows, or increase of memory usage.
First two patches fix the immediate problems.
Since the malicious peers abuse senders by advertizing a very
small MSS in their SYN or SYNACK packet, the last two
patches add a new sysctl so that admins can chose a higher
limit for MSS clamping.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/tcp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/tcp.h b/include/linux/tcp.h index 711361af9ce0..9a478a0cd3a2 100644 --- a/include/linux/tcp.h +++ b/include/linux/tcp.h @@ -484,4 +484,8 @@ static inline u16 tcp_mss_clamp(const struct tcp_sock *tp, u16 mss) return (user_mss && user_mss < mss) ? user_mss : mss; } + +int tcp_skb_shift(struct sk_buff *to, struct sk_buff *from, int pcount, + int shiftlen); + #endif /* _LINUX_TCP_H */ |