]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mptcp: ensure subflow is unhashed before cleaning the backlog
authorPaolo Abeni <pabeni@redhat.com>
Tue, 4 Jul 2023 20:44:33 +0000 (22:44 +0200)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:20:27 +0000 (17:20 +0200)
commit3f53957999797d8d6bf5bf663f719eba15542d46
treeab1a827f149838c89e730d2ef11e97a26491eebb
parent1de35d136eede7acd5131d90fe5f0c286fd59f63
mptcp: ensure subflow is unhashed before cleaning the backlog

BugLink: https://bugs.launchpad.net/bugs/2036075
commit 3fffa15bfef48b0ad6424779c03e68ae8ace5acb upstream.

While tacking care of the mptcp-level listener I unintentionally
moved the subflow level unhash after the subflow listener backlog
cleanup.

That could cause some nasty race and makes the code harder to read.

Address the issue restoring the proper order of operations.

Fixes: 57fc0f1ceaa4 ("mptcp: ensure listener is unhashed before updating the sk status")
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
net/mptcp/protocol.c