Florian Westphal 59d2b1e5cb netfilter: conntrack: allow sctp hearbeat after connection re-use
[ Upstream commit cc5453a5b7e90c39f713091a7ebc53c1f87d1700 ]

If an sctp connection gets re-used, heartbeats are flagged as invalid
because their vtag doesn't match.

Handle this in a similar way as TCP conntrack when it suspects that the
endpoints and conntrack are out-of-sync.

When a HEARTBEAT request fails its vtag validation, flag this in the
conntrack state and accept the packet.

When a HEARTBEAT_ACK is received with an invalid vtag in the reverse
direction after we allowed such a HEARTBEAT through, assume we are
out-of-sync and re-set the vtag info.

v2: remove left-over snippet from an older incarnation that moved
    new_state/old_state assignments, thats not needed so keep that
    as-is.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-17 13:47:45 +02:00
..
2019-08-09 09:15:05 +02:00
2019-09-17 10:27:46 -07:00
2019-07-17 09:55:43 -07:00
2020-02-19 19:53:09 +01:00
2019-07-08 09:54:55 -07:00
2019-09-19 16:24:24 -07:00
2019-08-20 22:09:52 +02:00
2019-08-28 21:17:12 -06:00
2019-09-17 19:15:14 -07:00
2019-09-23 11:21:04 -07:00
2019-09-18 10:33:46 -07:00
2019-06-24 10:23:16 +02:00
2019-09-05 19:52:33 -06:00
2019-09-25 09:55:59 -07:00
2020-09-03 11:27:04 +02:00
2020-03-25 08:25:58 +01:00
2019-07-12 15:13:55 -07:00
2019-09-05 11:40:54 +02:00
2019-06-25 12:59:43 +10:00
2019-09-29 10:33:41 -07:00
2019-10-02 06:36:50 -07:00
2019-11-08 08:46:49 -08:00
2019-07-05 21:34:50 +02:00
2019-06-26 13:19:46 -07:00
2019-09-07 04:28:05 -03:00
2019-12-13 08:42:53 +01:00
2019-09-02 11:43:54 +01:00
2019-09-05 12:32:05 +02:00
2019-09-29 10:33:41 -07:00
2019-12-13 08:43:18 +01:00
2020-07-29 10:18:36 +02:00
2019-08-14 15:30:35 +02:00
2019-08-08 09:09:25 +02:00
2019-07-08 19:25:19 -07:00
2019-07-26 17:01:29 -06:00
2019-07-16 19:23:25 -07:00
2020-03-18 07:17:46 +01:00
2019-08-01 21:49:46 +02:00
2019-07-31 19:03:35 +02:00
2020-04-17 10:50:12 +02:00
2020-04-02 15:11:00 +02:00
2019-10-31 14:01:40 -07:00
2019-09-25 17:51:41 -07:00
2019-09-07 21:42:25 +02:00
2019-10-02 10:06:45 +02:00
2019-08-30 07:27:17 -07:00
2019-08-01 20:51:22 +02:00
2019-07-31 19:03:35 +02:00
2020-05-20 08:20:29 +02:00
2019-07-13 10:36:53 -07:00
2020-04-02 15:11:00 +02:00
2019-07-14 16:51:47 -07:00