All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/3] tcp: increase resilence vs. blind data injection
@ 2016-08-18 12:48 Florian Westphal
  2016-08-18 12:48 ` [RFC 1/3] tcp: randomize tcp timestamp offsets for each connection Florian Westphal
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Florian Westphal @ 2016-08-18 12:48 UTC (permalink / raw)
  To: netdev


This series introduces a new tcp_timestamps=2 mode.

When enabled, out-of-order packets that carry data are also subject
to a range check of TSecr (timestamp echo).

Current kernels use a global timestamp echo, i.e.  the timestamp values
are known.

Therefore first patch adds per connection randomzation of timestamp.
The ISN generator is re-used for this purpose to get same offset
for all connections with identical connection quadruple.

Second patch adds the new timestamp mode, default is not changed.

Third patch adds a MIB counter to track when we drop skb because
of the new facility.

Syncookies are not yet converted to use tsoff.
Depending on how discussion about this set will turn out I will add
this for the v1 submit.

 Documentation/networking/ip-sysctl.txt |    8 ++++--
 include/linux/tcp.h                    |    1 
 include/net/secure_seq.h               |   13 ++++++---
 include/net/tcp.h                      |    2 -
 include/uapi/linux/snmp.h              |    1 
 net/core/secure_seq.c                  |   19 +++++++++-----
 net/ipv4/proc.c                        |    1 
 net/ipv4/syncookies.c                  |    1 
 net/ipv4/tcp_input.c                   |   43 ++++++++++++++++++++++++++++++++-
 net/ipv4/tcp_ipv4.c                    |   30 +++++++++++++++--------
 net/ipv4/tcp_minisocks.c               |    4 ++-
 net/ipv4/tcp_output.c                  |    2 -
 net/ipv6/syncookies.c                  |    1 
 net/ipv6/tcp_ipv6.c                    |   28 +++++++++++++--------
 14 files changed, 118 insertions(+), 36 deletions(-)

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-08-26  2:34 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-18 12:48 [RFC 0/3] tcp: increase resilence vs. blind data injection Florian Westphal
2016-08-18 12:48 ` [RFC 1/3] tcp: randomize tcp timestamp offsets for each connection Florian Westphal
2016-08-18 16:18   ` Eric Dumazet
2016-08-18 22:32     ` Florian Westphal
2016-08-25  9:06     ` Florian Westphal
2016-08-25 14:15       ` Eric Dumazet
2016-08-25 14:49         ` Florian Westphal
2016-08-25 16:05           ` Eric Dumazet
2016-08-25 19:34   ` Eric Dumazet
2016-08-25 20:31     ` Florian Westphal
2016-08-25 21:06       ` Eric Dumazet
2016-08-25 22:06   ` Eric Dumazet
2016-08-25 23:46     ` Florian Westphal
2016-08-26  2:34       ` Eric Dumazet
2016-08-18 12:48 ` [RFC 2/3] tcp: add tcp_timestamps=2 mode to force tsecr validation on ofo segments Florian Westphal
2016-08-18 12:48 ` [RFC 3/3] tcp: add mib counter to track ts tsecr validation failures Florian Westphal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.