Article View: linux.kernel.netdev
Article #21008[PATCH net 00/10] mptcp: misc fixes for v7.4-rc5
From: "Matthieu Baerts (NGI0)"
Date: Mon, 23 Nov 2026 13:24
Date: Mon, 23 Nov 2026 13:24
60 lines
10960 bytes
10960 bytes
Here are some unrelated fixes:
- Patches 1-2: drain the queues of a TCP or MPTCP socket when listen()
fails, not to leak sockets and their netns. Fixes for v4.4 and v5.11.
- Patch 3: clear inet_opt in the child of an IPv6 listener, to avoid a
double free with SELinux and NetLabel. A fix for v5.6.
- Patch 4: fix UaF in corner cases from delegated actions. A fix for
v5.12.
- Patches 5-6: do not leak an orphan moved to the CLOSE state outside
the worker. Fixes for v6.15, and for another fix introduced in v6.6
and targeting v5.11.
- Patches 7-8: do not let PM listeners pin their netns, leaked
otherwise. A fix for v5.12.
- Patch 9: initialize drop_req, not to leak sockets with SO_REUSEPORT
migration. A fix for v5.14.
- Patch 10: do not pass a BPF request sock to an MPTCP listener, to
avoid a slab-out-of-bounds write. A fix for v6.9.
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
---
Chris Mason (6):
tcp: drain the queues of a listen() that fails
mptcp: drain the queues of a listen() that fails
mptcp: clear inet_opt in the child of an IPv6 listener
mptcp: leave an orphan's DATA_FIN to the worker
mptcp: initialize drop_req in subflow_init_req()
tcp: do not pass a BPF reqsk to an MPTCP listener
Hyunwoo Kim (1):
mptcp: fix use-after-free of the subflow context on the delegated list
Josef Bacik (1):
mptcp: pm: don't let listeners pin their netns
Matthieu Baerts (NGI0) (2):
mptcp: don't leak an orphan when the PM closes its last subflow
net: add __sk_net_refcnt_upgrade() with a GFP mask
include/net/sock.h | 1 +
net/core/sock.c | 9 +++++++--
net/ipv4/inet_connection_sock.c | 12 ++++++++----
net/ipv4/syncookies.c | 3 ++-
net/mptcp/protocol.c | 42 +++++++++++++++++++++++++++++++++--------
net/mptcp/protocol.h | 18 ++++++++++++++++--
net/mptcp/subflow.c | 32 ++++++++++++++++++++++++++++---
7 files changed, 97 insertions(+), 20 deletions(-)
---
base-commit: 3896ae4adf5ffc11ffd0f7f42c3923e8dc195e75
change-id: 20261123-net-mptcp-misc-fixes-7-4-rc5-965d6b4fb777
Best regards,
--
Matthieu Baerts (NGI0) <matttbe@kernel.org>
Technical Details
Message-ID:
<20261123-net-mptcp-misc-fixes-7-4-rc5-v1-0-278042217e8d@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369389-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-369389-linux-kernel-netdev=dewy.ru
From: matttbe@kernel.org ("Matthieu Baerts (NGI0)")
Newsgroups: linux.kernel.netdev
Subject: [PATCH net 00/10] mptcp: misc fixes for v7.4-rc5
Date: Mon, 23 Nov 2026 14:24:48 +0100
Organization: Usenet Network
Message-ID: <20261123-net-mptcp-misc-fixes-7-4-rc5-v1-0-278042217e8d@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="3887480"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:epYT/QNVnSlBTZKYBSs04SnmaLw= sha256:X3RZmoz/rZ4NYQwOZSQYIwefakgBKU7Bvv1x6N/LYwg=
sha1:ghD0Zylvv88IwOwHKC1iU0Z2ooY= sha256:9ClKmn6Wfkat4vX2sA+mPIppcU5FvWGVAQvY6jXaWJE=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id A74EF125DB4; Mon, 23 Nov 2026 16:25:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id hlrfjOR0qVom;
Mon, 23 Nov 2026 16:25:36 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-369389-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 1765C125DB1; Mon, 23 Nov 2026 16:25:28 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id 2622B2C91A; Mon, 23 Nov 2026 13:25:26 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1795440325;
b=tygcQU1uL5BgTtdBtBPgpYbtbGoDQwmXrvHknyDn+9NgKeM8i2bksb4rL3KB3Ew4+T9c
gA/O16NbOZ81//0JUeX2J0gPIyMtZPH8V5rVmZ0s+sLCv/OPtsHQ/qySlYdRitv5v7IO3
c8Q2WFHdA5MSE6tTBCDlJKPBK9a76ormdMY9yUw2oDNq+wtG6Sdy5k+63/8dL0gLwlOUV
9W0UT1iRrlorVGHiboeAj8k8nvL05t+zyChos2xmdnGLFnJGgLOT3uVxy9FeFcVr13uHr
JICsKW/cI8ZPgN46746Xe0Ffh6NxjjAZRn37grFPIwgTmG26jBhQTyIwpR8L5bOcavg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795440325;
h=X-Original-To:Received:Received:DKIM-Signature:From:Subject:Date:
Message-Id:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer:
X-Developer-Signature:X-Developer-Key;
bh=MrNU+nV/zJnhBjm16IqK8XVPj2Zt687O5n6nlSUOWGQ=;
b=JUXlitTT5Ihmjc1NBPPYyApHz08YSDmpRaLUWWY61Wn7v3G/R9+ja3AZzybv1T38nT3x
YkoAc0R6EITbCf1KvuI5u4oEvhQ368FMPhZN8iugaSsM3iwsGr6tW80/14vAP/5VMkTp2
5EEwebGoaVT96U18ekyzuhwfJTXba7zudzr9e9oT7Uu2odBZ7FYNUyv1OCs6QeZx0V8Vr
jUrHOzwDl5Jf0v7ax5IcmAcbVJaS6hzP5Zi1P7700Jv0+nxtZdqbhSAufuz/vUMREaq5i
ulmSPIbxSEaTS2xAafUAkjc9bi9m6yX/DL6Fa0ow0XZHYeZQr8mXdwAokFAnnz1pWHw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lM8GFpif;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E2D1606A332;
Mon, 23 Nov 2026 13:25:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lM8GFpif
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1795440324;
b=IeKedVCiIdI3rgUTYsWaj+mbb2/RE1dYBBga+zyQNxRz1HqezfynKEXLv8pltbcF3/Zc
7A5ryeo3NAibuRP3+1WLZ3jwtvUcLQy1Bj0kkvddfG164/n2s29YAOzF/nMNqUglQWzGy
Xh6H1ozjU5sOq9n4ghxXL+49WuqttkQHgZ1ANV/JMuyuD2FXued7YKTCfuQJ75AVgKeGw
L493BYiANX/TdSTxKTKhccufrkt+em0UOVXwTz1D8gbJI8E/yjQmItumqWGSSl+QOmGCT
mJuC7aTpmFuapL8x9vQoecmR74vYi5yHXX7T+tydm5+4+HWKddVH3VNdTciibP+d2vQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1795440324;
h=Received:DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:
Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:
Cc:X-Mailer:X-Developer-Signature:X-Developer-Key;
bh=MrNU+nV/zJnhBjm16IqK8XVPj2Zt687O5n6nlSUOWGQ=;
b=5orvz6oDAPy/D+kIxS+40GLJb5PW8IAV4vsNlsu02un0cr6YnA/9qaL813yNtlv0d7Ds
RwZjUS1plYP4OAlpxqHpFiFpKM/qeS1N//hpR9Uss7bHvPe8sHHpH3RuOOoAV+fHPaJsN
nhdk5sdon8a6MjhjSMUSWFjFsBJQ7Zflf4pQuaMVDTXCzInvqYC89JVTRw8q7mvruotuT
hxuh4kA0XdYfXTD9caKyzaqpY1W3lta3p8SFwA3gCbPZbvrEOLdbc0tEqPosH5HxgWq2r
p/ma55EzlsmqHv1EHh3fDSY7jAnQlEIefVXrHfMPQgITfw5yGoUIOBY6WKiPq9R8b+Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lM8GFpif;
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8A5B2606A31A;
Mon, 23 Nov 2026 13:25:24 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9F261F000C6;
Mon, 23 Nov 2026 13:25:19 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1795440323;
bh=MrNU+nV/zJnhBjm16IqK8XVPj2Zt687O5n6nlSUOWGQ=;
h=From:Subject:Date:To:Cc;
b=lM8GFpifZpq4wx5tU4vQWvW7dNwHv6dqiIUMrWb4L+fn07tFT/rj0kTEPMUyShbhg
6AsFRzKm/BptjwCl2S1Lf+xjM+6DshM94C35apyz6RceJtMQaIc/1NNVU+TbgXHWBX
8wryqG1tBCOE0lDiCNXVbBCYFJBv38ICWND/rxbgrmlngSCHqBzq5Y7wsjePGC4Jen
eGY61QZg2rP8niHzAqcs5YPiHBVFdkBecG52TaxfnDbA9w77vO2oOMsOEaAB8rWAfC
F5frIGgMLe4ZgP+iw6seftYW3Bqqhg78HIO56ZCB87mFyeCOX3VD0aAGj71e8IT+0j
yOWAj5Y2h9BaQ==
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yWM0QrCMAxFf2Xk2YCtW4v+iuzBZplGWC1NFWHs3
436eC73nBWUq7DCqVuh8ktUHtnA7Tqg2yVfGWUyBr/3wTl/wMwNl9Ko4CJKOMubFSP2WGnAYxi
mkPo5xRjBEqXy72CFM5gJ43/UZ7oztW8Ytu0DsDq1lYUAAAA=
X-Change-ID: 20261123-net-mptcp-misc-fixes-7-4-rc5-965d6b4fb777
X-Cc: netdev@vger.kernel.org, mptcp@lists.linux.dev,
Davide Caratti <dcaratti@redhat.com>,
"Matthieu Baerts (NGI0)" <matttbe@kernel.org>,
Chris Mason <mason@kernel.org>, stable@vger.kernel.org,
Neal Cardwell <ncardwell@google.com>, Kuniyuki Iwashima <kuniyu@google.com>,
Hyunwoo Kim <imv4bel@gmail.com>, Josef Bacik <josef@toxicpanda.com>,
Martin KaFai Lau <kafai@fb.com>, Daniel Borkmann <daniel@iogearbox.net>,
Alexei Starovoitov <ast@kernel.org>,
Martin KaFai Lau <martin.lau@kernel.org>, bpf@vger.kernel.org
X-Mailer: b4 0.16.0
X-Developer-Signature: v=1; a=openpgp-sha256; l=2284; i=matttbe@kernel.org;
h=from:subject:message-id; bh=B2trs4kIXIiqPkIOyZnC9TAND7g5DiPoVSenkct0YWg=;
b=owGbwMvMwCVWo/Th0Gd3rumMp9WSGLJZ7LYXVK51/zCdbWmp03Y5r4sV/+UWfkr6tXB1/2G7U
pPlzCmLOkpZGMS4GGTFFFmk2yLzZz6v4i3x8rOAmcPKBDKEgYtTACZS2sbwmy3l2qQnoirpHp7T
l8zue3ClcOnVk7f8Hu4V5y4Jv9h+QYzhf1Bz+eEzz/0KP+2cEPyNU76kbOP//NvGU0/uX73M5lR
MDgsA
X-Developer-Key: i=matttbe@kernel.org; a=openpgp;
fpr=E8CB85F76877057A6E27F77AF6B7824F4269A073