Article View: linux.kernel.netdev
Article #18159Re: [PATCH net 2/7] mptcp: push pending data after a sendmsg copy fault
From: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 22:29
Date: Tue, 17 Nov 2026 22:29
53 lines
9764 bytes
9764 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] mptcp: Fixes trailer in commit message cites 69800e516e96 instead
of d9ca1de8c0cd
--
> diff --git a/net/mptcp/protocol.c b/net/mptcp/protocol.c
> --- a/net/mptcp/protocol.c
> +++ b/net/mptcp/protocol.c
> @@ -2130,8 +2130,10 @@ static int mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
> return copied;
>
> do_error:
> - if (copied)
> + if (copied) {
> + __mptcp_push_pending(sk, msg->msg_flags);
> goto out;
> + }
>
> copied = sk_stream_error(sk, msg->msg_flags, ret);
> goto out;
>
[Severity: Low]
The Fixes tag looks off to me. Before 69800e516e96 ("mptcp: propagate
fastclose error"), a copy fault in mptcp_sendmsg() already set
ret = -EFAULT and jumped straight to out. The out label sat after the
if (copied) __mptcp_push_pending() block and returned copied ? : ret.
So with copied > 0, the already queued dfrag was left on rtx_queue
without a push even back then. 69800e516e96 only introduced do_error
to pass ret through sk_stream_error() when copied == 0. It kept the
existing if (copied) goto out; behaviour.
As far as I can tell, skipping the push on a partial copy error goes
back to d9ca1de8c0cd ("mptcp: move page frag allocation in
mptcp_sendmsg()"). That commit made mptcp_sendmsg() queue everything
first and only push after the loop.
With the current tag, stable tooling would miss kernels that have
d9ca1de8c0cd but not 69800e516e96.
Could you double check, and if you agree, point the Fixes tag at
d9ca1de8c0cd instead?
--
Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261116-net-mptcp-misc-fixes-7-4-rc4-v1-0-bf7656de653e%40kernel.org
Technical Details
Message-ID:
<179495458661.3136.9219707272531758975@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365673-linux-kernel-netdev=dewy.ruReferences:
<20261116-net-mptcp-misc-fixes-7-4-rc4-v1-2-bf7656de653e@kernel.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365673-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 2/7] mptcp: push pending data after a sendmsg copy fault Date: Tue, 17 Nov 2026 22:29:46 +0000 Organization: Usenet Network Message-ID: <179495458661.3136.9219707272531758975@kernel.org> References: <20261116-net-mptcp-misc-fixes-7-4-rc4-v1-2-bf7656de653e@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2443505"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:NfLoriMFKM7fKNjD8JYf+lqm+cI= sha256:VpG3lQp/iUFkbk2gNgVeyLqSf6hEHm/3TeMv0oKV6lE= sha1:WXPUzS1AYLjxAX22rhMauD1O5/M= sha256:w8yMnk7P0E8254dLA3Fw6xC3FkUn+5VgWyQmCH5UD5s= 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 0B0581150D3; Wed, 18 Nov 2026 01:30:17 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.4 X-Spam-Status: No, score=-3.4 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, URIBL_BLOCKED=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 aS0YtZ7-x0dC; Wed, 18 Nov 2026 01:30:08 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365673-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 E39B51150CE; Wed, 18 Nov 2026 01:29:55 +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 5B18437087; Tue, 17 Nov 2026 22:29:50 +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=1794954589; b=48GBtWkOFLlTT1k8WdzxIwGvCdi3nussQ5edmmjlTcwYjN8RVA1645l88d6Qlve0+ru+ rTJhxdV335ft+Q3xhOuooF/wF6owVvscdAm3oB4T+onrRbyNg3Tx6AxW+C0ZOaF5iQaW0 ozAhWHFGrLrSrY8FBmDBMamB100ZHRhQBYGn4enRlXtQFrWCRyEfZU7Q42B/jwcoE5gow rg3nAvwseOOjoWQ0KlOxiyPwrfJAQbw4+RgLFWE3Fq8XO68tGXdszwvVYP2qkYfQ2RH/K DSlG2EALdiSNavPZ21BweM+lNjbaWEYPtIWMp8lSNmLio5zMk9wURSC5LGOwf1csdMA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794954589; h=X-Original-To:Received:Received:DKIM-Signature:Subject:From:To:Cc: Date:Message-ID:In-Reply-To:References:X-sashiko-severity: Content-Type:Content-Transfer-Encoding:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version; bh=nJ50dWwrw6eP7lM7PGnaKKuzHTxZuNFJv4CpyDCuR8k=; b=CLHJvSPZw25oJwwa7E1tw6FYuaOgoI1pXkGkD3IiyLUzsvuK88XFetBd8Z7v635YybDG 0s7NkoMM308LZrbqpR65Jp5LzW+bHsb9usPap7hqdMPQk6K8H7vOFgnJIB9t9HTUR72nq vxirgz7fM3iuu1T0L4vpvV1VkfJwGOxEfCcCLIS/TYmlIfii2iYuPsJzQGJ1SZZiWhJBZ iDQoEQypQTRqnI+xl99/ELeTJ2tvGF2GXLbuWo93u+Jh9YO7nvSdpUv47aUhIFmLZFf+9 zlhMxwP7ETfRuk1E8AMUcTVaN7MmjQX5jP4UpAKFWI32QHqh53Fk7cwhMkOsi98VdZQ== 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=NP0byFfJ; 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 49181606A33B; Tue, 17 Nov 2026 22:29:49 +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=NP0byFfJ 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=1794954588; b=WgaGQSx30vJ1KroUmBIfizpl9x6X9mT2jGn5TJN0etiVB6k3OgCCysrNriWuep7bB76u hYBLdE//IVybYOd3dlh75OO5sBMFxwfaV0AYT+HwlnCdtRuO10XCEzxNJDwwdfeRqHxzD eCuyRp7+j/4vCxicVWfuPcefpxSl8mXsFD1+AxUuHTEmBgrGJmAafR3J0nifuh3bWUbJB YPopyJjWBwdYLElH4tTGI76zxc3KQnNrC5mCE7By+nFBSBH/8PYa6vhL2rQz+UqjjsCYj 9jKSNUtuJeLS+2N0g5aZORBi8y5LL1qN/8WnQNueSFWRp6j6cpn/flbkvU5wi++MPYw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794954588; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=nJ50dWwrw6eP7lM7PGnaKKuzHTxZuNFJv4CpyDCuR8k=; b=BKYnd4xBE6Igjmw2+7kNRSXFP7U3D7GKolcu25qoYCMD5h9vGEY+cwDTDQzXKBv1QR2K 3HPOxa9mClihXy7g7LLKI7Gta0k0S0xDqU6UDHT2qdJxgXe2BU971QTjs41NnJJCpG+A9 XrCLDWaTPquiUnw6wm3HfnXYhOrG90om9IZcieZuqWAzR5ddz7jN/ZMHBy/jhHN5XsMwe 7dxq/Txrim5fPm0KoDe343metrO34HAe94Ul76dWoOE+o36oVzZw+V3oFTQs8aJdc6QVD vVDI1GiZv+x1VBTLv/8UZXX7sxffW6FXdCQ3+HvtvMW3uLaLKst3pqtopbjSUATPg2A== 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=NP0byFfJ; 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 67EA7606A31C; Tue, 17 Nov 2026 22:29:48 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2749D1F000C5; Tue, 17 Nov 2026 22:29:47 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794954588; bh=nJ50dWwrw6eP7lM7PGnaKKuzHTxZuNFJv4CpyDCuR8k=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=NP0byFfJqLTtWq80K5MV0KlEcn0WEW2Rx+QgjSnN87b+LnlHAf36CoNWloi6fuaUs q1fZ1cgA5ogofiTUNcodn4b5M4/aAMOiWNLxi8gCMqQLxfrkdlgFAwqRdHCvUHky2N Kecif7O9nGcpWldlVwnvSllXRUoj5yG6MKdv6jeWosC8+/K5HH+urfrkbuZJZek9ex fbIcriHJgHiZ8tmYiXgwmV/5fMdYzTDKeHvM0U7zjrrk0STAL0rBtrVMT0z6pXHR6E 8Lyocfw8S4M9dBegu7Tby1F+9Jv5k3TBopuVfQ8SuorFgv9ElwpwTGqVp8RxpUkzPp SJyRxF3p+hHzg== X-Cc: martineau@kernel.org, geliang@kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, fw@strlen.de, dmytro@shytyi.net, netdev@vger.kernel.org, mptcp@lists.linux.dev, linux-kernel@vger.kernel.org, stable@vger.kernel.org, mason@kernel.org X-In-Reply-To: <20261116-net-mptcp-misc-fixes-7-4-rc4-v1-2-bf7656de653e@kernel.org> X-sashiko-severity: Low 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