Paolo Abeni 8e9eacad7e mptcp: fix msk traversal in mptcp_nl_cmd_set_flags()
The MPTCP endpoint list is under RCU protection, guarded by the
pernet spinlock. mptcp_nl_cmd_set_flags() traverses the list
without acquiring the spin-lock nor under the RCU critical section.

This change addresses the issue performing the lookup and the endpoint
update under the pernet spinlock.

Fixes: 0f9f696a502e ("mptcp: add set_flags command in PM netlink")
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>
2022-01-20 20:24:01 -08:00
..
2021-10-24 13:59:45 +01:00
2021-11-23 20:16:22 -08:00
2022-01-06 11:59:10 +00:00
2022-01-06 12:33:35 +00:00
2021-05-26 07:03:39 +02:00
2022-01-11 20:26:36 -08:00
2022-01-16 07:42:58 +02:00
2022-01-19 11:15:19 +02:00
2021-06-03 15:13:56 -07:00
2021-07-29 15:06:49 +01:00