tcp: Avoid ABI change for DoS fixes
authorBen Hutchings <ben@decadent.org.uk>
Sun, 16 Jun 2019 12:00:34 +0000 (13:00 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Thu, 18 Jul 2019 22:23:17 +0000 (23:23 +0100)
commitef0c1862dd2592ddebf5934b2ea2c3f9e467573e
treefa68540aa3c3d104ef2693b81d5d2e134690bddb
parent6b6a7dc5ef128c2b59f83de97b339f4110134fde
tcp: Avoid ABI change for DoS fixes

"tcp: tcp_fragment() should apply sane memory limits" adds a new Linux
MIB counter.  This adds another element to the array in struct
linux_mib.  Since that is always allocated by built-in code, it's a
backward-compatible change and we can hide the added element from
genksyms.

"tcp: add tcp_min_snd_mss sysctl" adds a new per-netns sysctl and a
new members in struct netns_ipv4.  Since this is embedded in struct
net, it changes the offsets of all the following members.  However
struct net itself is not embedded in anything, and is always allocated
by built-in code.  So move the new member to the end of struct net,
and hide it from genksyms.

Also hide the added element and member from modules, as they won't be
able to rely on their being present until we bump ABI.

Gbp-Pq: Topic debian/abi
Gbp-Pq: Name tcp-avoid-abi-change-for-dos-fixes.patch
include/net/net_namespace.h
include/net/netns/ipv4.h
include/uapi/linux/snmp.h
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c