On Fri, Feb 04, 2022 at 05:02:31PM -0800, Mat Martineau wrote: > commit 8e9eacad7ec7a9cbf262649ebf1fa6e6f6cc7d82 upstream. > > The upstream commit had to handle a lookup_by_id variable that is only > present in 5.17. This version of the patch removes that variable, so the > __lookup_addr() function only handles the lookup as it is implemented in > 5.15 and 5.16. It also removes one 'const' keyword to prevent a warning > due to differing const-ness in the 5.17 version of addresses_equal(). > > 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. > > Cc: <stable@xxxxxxxxxxxxxxx> # 5.15.x > Cc: <stable@xxxxxxxxxxxxxxx> # 5.16.x > Fixes: 0f9f696a502e ("mptcp: add set_flags command in PM netlink") > Acked-by: Paolo Abeni <pabeni@xxxxxxxxxx> > Signed-off-by: Mat Martineau <mathew.j.martineau@xxxxxxxxxxxxxxx> > --- > net/mptcp/pm_netlink.c | 34 +++++++++++++++++++++++++--------- > 1 file changed, 25 insertions(+), 9 deletions(-) Now queued up, thanks. greg k-h