Message ID | 20230207-upstream-net-20230207-various-fix-6-2-v1-0-2031b495c7cc@tessares.net |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2836066wrn; Tue, 7 Feb 2023 05:05:41 -0800 (PST) X-Google-Smtp-Source: AK7set+SB7KlZ6f4iLIe5TeO42SInIgSbFgyzHUYG/0fOG2+HnePgUoouF9naqtADhABy6oMdkLn X-Received: by 2002:a17:907:7d88:b0:870:d9a:9ebb with SMTP id oz8-20020a1709077d8800b008700d9a9ebbmr4791097ejc.38.1675775141140; Tue, 07 Feb 2023 05:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675775141; cv=none; d=google.com; s=arc-20160816; b=yqD8HdX3DDCy4WbS1nLTsfDljc6LfXotJKOAbBo03OQvnrC7P7FTJZNKkQPQHD+GW3 XgxU7R9VqDqFwaC+XpEPAddax2FvAHKQjkGtEwbWTg21+2P3fcluPZOLBfnke8lBaan0 NntMi+p6xxvBeB8OiJ9HbShO6+fWZAIsu4w9DAjmVLOTmaCxyXDWDwE+5cALrM+UBWHN yfZoAut7brZTijzUcpffxdh8+++6/kM3wEURQ58Vuo8s1vdV8lUXTuxZ8/unQLzUqf34 XGRcqwDn0xHXTnLSBtOoPn6NemEqlH34DnQC6Qd2iX3Smnax5jz8PJ/TnbpkUYRqyzhD lWiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=2LNCnTYQnKI2Qi+rIbkgnUL8Nmbo6Qz5VaHG00c9zYg=; b=jZjpMeeqNF2CcyWeBi57cidwgMYF7KMGk6KCr72dQd/YfY5xDIIw9wU3DhYASfF9CJ P415eIFiqQKRqJX9ept4EmLYfyck+Ueiqt6mVrztAo9h6BwxbkhtLYwJqcuniRye9HnX DQ1kkrKV4i5RmmEA4t4iaKi/ydkKDVDUVLThdHPWZh64+EmnNg5KKDTNigea+16udCdF 3HkTtr+mGudBB8RORuF1iPDk089Onot2/OOYKPYaHZ3bdbiYkK5zptP3WA9wn7CdyuqJ XuxwXYLZzp72HmWrZkv2g+lvJ1EZf5NEUuwB2VfZuFJHARQob1CeNG1uNSlaf4p7ADUx DuJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=R6b16Anl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tessares.net Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a17090668ce00b008432fa22567si18325076ejr.649.2023.02.07.05.05.17; Tue, 07 Feb 2023 05:05:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=R6b16Anl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232132AbjBGNEz (ORCPT <rfc822;kmanaouilinux@gmail.com> + 99 others); Tue, 7 Feb 2023 08:04:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232148AbjBGNEv (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Feb 2023 08:04:51 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4022339CD4 for <linux-kernel@vger.kernel.org>; Tue, 7 Feb 2023 05:04:43 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id bk16so13465920wrb.11 for <linux-kernel@vger.kernel.org>; Tue, 07 Feb 2023 05:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=2LNCnTYQnKI2Qi+rIbkgnUL8Nmbo6Qz5VaHG00c9zYg=; b=R6b16Anl58GF4Ndnmggam0JqBAZSqo0/T+bhnT/iYTRtuObc/dXZ6xloUhtLwWp9y+ UTJr92rFlrbCq+tzaHrs69ArfVTgoUR6PBj84O9mvc1/I1Exc0hMdlZGgTDvtwykl0Mt IAX8Zic1dqgE42gMDp9jS6SSO/IL9ixdJoXYfBr4v5PBbsLwSy9yhHqt/9vY4ATmV22F TPodadJqvEWI3SpF+/IqycXhFvTGxkOmBE5FiauyXH/rK6M+Lvo8f3W8t6OYeoKG60fV dqB3sn4haHf/1mH9+XiRfXRDFqrw4o4xjICP9IXP2Yv0ka01Q52bcPpDKi+XDlW3l6rI n2sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2LNCnTYQnKI2Qi+rIbkgnUL8Nmbo6Qz5VaHG00c9zYg=; b=l2sKJHRZxoNnVCsK5Vh9FLaaX8vdUmklo2PWP0yYmpeG1dKi+rekV9nUsXmN7QJz21 Hes5dm2OYAmVsdCuakIGTS+52ZCPutuqY5VY5+nLxkN2iLEEyi4MJ8IOvEiPYe/ueBs2 aUZqYm9CqG1VZwK3xUeu8RC7kCenZHfHk+yvY8pDwu6CdY8RAJ6vnwnylxBPvbtsNrxl KOCe+37X9oofB/lDhUrOj3PNkAOXGLUFydEoyDYgC5hLLp4sw6yw0Cb7e69525AhxLWO aIM6EV6W0s+X8HlG/EvamxmV4QHBmjqszQZUcRzNPPLE2kU7wtsijzH5VRMu8jW+HDVH hu8w== X-Gm-Message-State: AO0yUKWZVZ6f0KiGxTDWTn26zOi91WzYKnriDwxuPnmOgPEpZQP46LF8 tB+SsvfzdPs3jLPht2/vtBknUg== X-Received: by 2002:a5d:4806:0:b0:2c3:ea6b:ef83 with SMTP id l6-20020a5d4806000000b002c3ea6bef83mr2957523wrq.12.1675775081619; Tue, 07 Feb 2023 05:04:41 -0800 (PST) Received: from vdi08.nix.tessares.net (static.219.156.76.144.clients.your-server.de. [144.76.156.219]) by smtp.gmail.com with ESMTPSA id n9-20020a5d5989000000b002bc7fcf08ddsm11645394wri.103.2023.02.07.05.04.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 05:04:41 -0800 (PST) From: Matthieu Baerts <matthieu.baerts@tessares.net> Subject: [PATCH net 0/6] mptcp: fixes for v6.2 Date: Tue, 07 Feb 2023 14:04:12 +0100 Message-Id: <20230207-upstream-net-20230207-various-fix-6-2-v1-0-2031b495c7cc@tessares.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAExM4mMC/z2OTQ6CQAyFr0K6tnEYFYhXMS46UKULBtLCxIRwd 2dcuHx/X94OxipscK92UE5iMscs6lMF/UjxzShD1uCdvzjvWtwWW5Vpwsgr/t1EKvNm+JIPNui x7q4dtbcQAjeQWYGMMSjFfiy0vB04FcR5IomlsSjn8e/Jo+TwPI4vG2YZcZ4AAAA= To: mptcp@lists.linux.dev, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Davide Caratti <dcaratti@redhat.com>, Mat Martineau <mathew.j.martineau@linux.intel.com>, Benjamin Hesmans <benjamin.hesmans@tessares.net>, Geliang Tang <geliangtang@gmail.com>, Shuah Khan <shuah@kernel.org> Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Matthieu Baerts <matthieu.baerts@tessares.net>, stable@vger.kernel.org X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1639; i=matthieu.baerts@tessares.net; h=from:subject:message-id; bh=2gwf1t1oLdLLnLS96VoPdbQ5z+6BonFJUbLHcasVbGo=; b=owEBbQKS/ZANAwAIAfa3gk9CaaBzAcsmYgBj4kxofU3dUJPYLTFtKKn31mjpfvMSn+lCifKCJ xo/SKVohx6JAjMEAAEIAB0WIQToy4X3aHcFem4n93r2t4JPQmmgcwUCY+JMaAAKCRD2t4JPQmmg c/UCD/9DpgQJ8kzrJ2KEQv1Xi/VGx2/EyabkZme7Vtis7wJFenjHLJAHALXsvAtTY/6mqc6YZ2+ 9KnFFKfL46SvYBIcrieYB1ryxDWGQlmOn+OculZ6VWyUgJZRLOzaFrLTi/LJ3iVgsfDXDMoyPWz rtvyqO/nfdoeOQvPCjOuVAqHVkL7xK9lcZa27IyF1rPyLs3e80WmQ69DvcQuRkVXDTO9ZuxshV3 zm0LCL43YCYh8/Gjmup5/nOG0FjbuJNzzNNZyeer1y6JbrvkXv1fleuSMrYC2fJdpPpWXN8eEk3 9PYliiKo2h7WT2p7jVe1L5dSZ5a46rNmuwXYiA3UKkkNJEGd5EGy09fhUBU3TuB9vHfZCiFaghk kC4o+sS80nxzoJqab2g3YbcaL1Pudgzye5XvjiScEcP0CNO2dIjTWeL9zlA3968vYhE11imsGK4 yS8e8hDOb3meiFGAxQ4YcInNen9jFPsTIPU/1WjxZ6ciBBZL2rYZ7lwkIJlYVMYdeKjw7stSZar TS07d6zvKETpCIc31rtuesf4OcCATbRBWueZx3aE6VDeavG04zAVWu7IeYEq3g3YTWZi8oDi5Yt EilmNWGLySNbLcFgJhlcuTrsgZm1Y4Q1/wHOsdr4b0Qj8BT0g03A5QZDgODmLoZl1n6+knuogow pe75W2YZdKn34vg== X-Developer-Key: i=matthieu.baerts@tessares.net; a=openpgp; fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757177594346473948?= X-GMAIL-MSGID: =?utf-8?q?1757177594346473948?= |
Series |
mptcp: fixes for v6.2
|
|
Message
Matthieu Baerts
Feb. 7, 2023, 1:04 p.m. UTC
Patch 1 clears resources earlier if there is no more reasons to keep
MPTCP sockets alive.
Patches 2 and 3 fix some locking issues visible in some rare corner
cases: the linked issues should be quite hard to reproduce.
Patch 4 makes sure subflows are correctly cleaned after the end of a
connection.
Patch 5 and 6 improve the selftests stability when running in a slow
environment by transfering data for a longer period on one hand and by
stopping the tests when all expected events have been observed on the
other hand.
All these patches fix issues introduced before v6.2.
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
---
Matthieu Baerts (1):
selftests: mptcp: stop tests earlier
Paolo Abeni (5):
mptcp: do not wait for bare sockets' timeout
mptcp: fix locking for setsockopt corner-case
mptcp: fix locking for in-kernel listener creation
mptcp: be careful on subflow status propagation on errors
selftests: mptcp: allow more slack for slow test-case
net/mptcp/pm_netlink.c | 10 ++++++----
net/mptcp/protocol.c | 9 +++++++++
net/mptcp/sockopt.c | 11 +++++++++--
net/mptcp/subflow.c | 12 ++++++++++--
tools/testing/selftests/net/mptcp/mptcp_join.sh | 22 +++++++++++++++++-----
5 files changed, 51 insertions(+), 13 deletions(-)
---
base-commit: 811d581194f7412eda97acc03d17fc77824b561f
change-id: 20230207-upstream-net-20230207-various-fix-6-2-1848a75bbbe6
Best regards,
Comments
Hello: This series was applied to netdev/net.git (master) by David S. Miller <davem@davemloft.net>: On Tue, 07 Feb 2023 14:04:12 +0100 you wrote: > Patch 1 clears resources earlier if there is no more reasons to keep > MPTCP sockets alive. > > Patches 2 and 3 fix some locking issues visible in some rare corner > cases: the linked issues should be quite hard to reproduce. > > Patch 4 makes sure subflows are correctly cleaned after the end of a > connection. > > [...] Here is the summary with links: - [net,1/6] mptcp: do not wait for bare sockets' timeout https://git.kernel.org/netdev/net/c/d4e85922e3e7 - [net,2/6] mptcp: fix locking for setsockopt corner-case https://git.kernel.org/netdev/net/c/21e43569685d - [net,3/6] mptcp: fix locking for in-kernel listener creation https://git.kernel.org/netdev/net/c/ad2171009d96 - [net,4/6] mptcp: be careful on subflow status propagation on errors https://git.kernel.org/netdev/net/c/1249db44a102 - [net,5/6] selftests: mptcp: allow more slack for slow test-case https://git.kernel.org/netdev/net/c/a635a8c3df66 - [net,6/6] selftests: mptcp: stop tests earlier https://git.kernel.org/netdev/net/c/070d6dafacba You are awesome, thank you!