]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix shutdown vs fallback race
authorPaolo Abeni <pabeni@redhat.com>
Tue, 28 Jun 2022 01:02:38 +0000 (18:02 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Jun 2022 03:45:42 +0000 (20:45 -0700)
commit7809c14afe72a7bb71847433956a27b0bb7686fd
treeb49c6d4c82eaf1dff520fecdd3caa84f60718956
parent266a124ccabe750fb0a9fc2f7267b3812b7249f0
mptcp: fix shutdown vs fallback race

If the MPTCP socket shutdown happens before a fallback
to TCP, and all the pending data have been already spooled,
we never close the TCP connection.

Address the issue explicitly checking for critical condition
at fallback time.

Fixes: bcb1dda5f924 ("mptcp: infinite mapping sending")
Fixes: eb0b410240f1 ("mptcp: add the fallback check")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/options.c
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c