]> 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)
commit0f5f303bd63d99038150f157859ffdfded69bad0
tree5fb7d3443909dd0882ba646735a2d50c77c6ed53
parent56e8b7d98a11f21935d025a8419121bc2a9db75a
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: 0c16c3db9b00 ("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