]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix locking in mptcp_nl_cmd_sf_destroy()
authorPaolo Abeni <pabeni@redhat.com>
Tue, 5 Jul 2022 21:32:11 +0000 (14:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2022 11:50:26 +0000 (12:50 +0100)
commit89fcd0c6f16f09ccab1c5b2f36d26d22cfa8e6d5
tree5fb7d3443909dd0882ba646735a2d50c77c6ed53
parent9da9ba17cf6ec872859d329c7d2eb8dd838a8a05
mptcp: fix locking in mptcp_nl_cmd_sf_destroy()

The user-space PM subflow removal path uses a couple of helpers
that must be called under the msk socket lock and the current
code lacks such requirement.

Change the existing lock scope so that the relevant code is under
its protection.

Fixes: 33ecd4cecca3 ("mptcp: netlink: allow userspace-driven subflow establishment")
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/287
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_userspace.c