]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: conntrack: don't refresh sctp entries in closed state
authorFlorian Westphal <fw@strlen.de>
Fri, 28 Jan 2022 12:13:32 +0000 (13:13 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 4 Feb 2022 04:38:15 +0000 (05:38 +0100)
commitf313364d2e406008e7696d4c2bb784e5be3fa27c
treeaba0dac5513fff12810216ac1efcb2585138d7b4
parent4363cb62cdfb86e76672b35ffdb617ed3fc8b6ce
netfilter: conntrack: don't refresh sctp entries in closed state

Vivek Thrivikraman reported:
 An SCTP server application which is accessed continuously by client
 application.
 When the session disconnects the client retries to establish a connection.
 After restart of SCTP server application the session is not established
 because of stale conntrack entry with connection state CLOSED as below.

 (removing this entry manually established new connection):

 sctp 9 CLOSED src=10.141.189.233 [..]  [ASSURED]

Just skip timeout update of closed entries, we don't want them to
stay around forever.

Reported-and-tested-by: Vivek Thrivikraman <vivek.thrivikraman@est.tech>
Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1579
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_sctp.c