tcp: Avoid ABI change for DoS fixes
authorBen Hutchings <ben@decadent.org.uk>
Sun, 16 Jun 2019 12:00:34 +0000 (13:00 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commitd369444f91200bc94795e056bc09926a8820e738
treeb98faac248af4495663861904bf688cacd3930d4
parentb2faf72a94a062df22c4f7baec9fd6ec7d98a1d4
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