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)
commit5ccecaec5c1e85cabfda848c6f146da0d8d55bd6
tree5fb7d3443909dd0882ba646735a2d50c77c6ed53
parent44d632d5dde2514b414bd6344918d68dacd8fe6f
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: 702c2f646d42 ("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