mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-09 18:15:49 +00:00
selftests: netfilter: test for sctp collision processing in nf_conntrack
[ Upstream commitcf791b22be] This patch adds a test case to reproduce the SCTP DATA chunk retransmission timeout issue caused by the improper SCTP collision processing in netfilter nf_conntrack_proto_sctp. In this test, client sends a INIT chunk, but the INIT_ACK replied from server is delayed until the server sends a INIT chunk to start a new connection from its side. After the connection is complete from server side, the delayed INIT_ACK arrives in nf_conntrack_proto_sctp. The delayed INIT_ACK should be dropped in nf_conntrack_proto_sctp instead of updating the vtag with the out-of-date init_tag, otherwise, the vtag in DATA chunks later sent by client don't match the vtag in the conntrack entry and the DATA chunks get dropped. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Stable-dep-of:c4eee56e14("net: skb_find_text: Ignore patterns extending past 'to'") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
aa0a050c65
commit
d860416236
3 changed files with 191 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue