]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: reset 'first' and ack_hint on subflow close
authorFlorian Westphal <fw@strlen.de>
Thu, 4 Mar 2021 21:32:12 +0000 (13:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Mar 2021 22:30:13 +0000 (14:30 -0800)
commit5294a3ddc8556aebe3db5f9670e1a976d8441c9b
treea11a21808037ab723d8f6cf32536dff59e6d8a68
parentd57065c06d01ced9a017314f0ba2f1ee1c3178c1
mptcp: reset 'first' and ack_hint on subflow close

Just like with last_snd, we have to NULL 'first' on subflow close.

ack_hint isn't strictly required (its never dereferenced), but better to
clear this explicitly as well instead of making it an exception.

msk->first is dereferenced unconditionally at accept time, but
at that point the ssk is not on the conn_list yet -- this means
worker can't see it when iterating the conn_list.

Reported-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c