]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tcp: RFC 5961 5.2 Blind Data Injection Attack Mitigation
authorEric Dumazet <edumazet@google.com>
Sun, 21 Oct 2012 19:57:11 +0000 (19:57 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 16 Jan 2013 01:13:27 +0000 (01:13 +0000)
commite252bbd8c87b95e9cecdc01350fbb0b46a0f9bf1
treec9321c66eebb5d5f65775d8f89225c6cd3d4c93d
parent9ae46af9cdaaac4938974c51ad7db2b8dc60ff83
tcp: RFC 5961 5.2 Blind Data Injection Attack Mitigation

[ Upstream commit 354e4aa391ed50a4d827ff6fc11e0667d0859b25 ]

RFC 5961 5.2 [Blind Data Injection Attack].[Mitigation]

  All TCP stacks MAY implement the following mitigation.  TCP stacks
  that implement this mitigation MUST add an additional input check to
  any incoming segment.  The ACK value is considered acceptable only if
  it is in the range of ((SND.UNA - MAX.SND.WND) <= SEG.ACK <=
  SND.NXT).  All incoming segments whose ACK value doesn't satisfy the
  above condition MUST be discarded and an ACK sent back.

Move tcp_send_challenge_ack() before tcp_ack() to avoid a forward
declaration.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Neal Cardwell <ncardwell@google.com>
Cc: Yuchung Cheng <ycheng@google.com>
Cc: Jerry Chu <hkchu@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv4/tcp_input.c