Article View: linux.kernel.netdev
Article #21591Re: [PATCH net-next v6 4/7] tcp: propagate skb_zcopy() uarg in tcp_mtu_probe()
From: netdev-bot+sashiko
Date: Tue, 24 Nov 2026 08:14
Date: Tue, 24 Nov 2026 08:14
56 lines
10406 bytes
10406 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] The commit message for "tcp: propagate skb_zcopy() uarg in tcp_mtu_probe()" says "Verified with the net_core KUnit test suite". -- tcp: propagate skb_zcopy() uarg in tcp_mtu_probe() This commit attaches the source skb's zerocopy uarg to the MTU probe skb in tcp_clone_payload(). It also makes tcp_can_coalesce_send_queue_head() refuse to coalesce skbs whose skb_zcopy() uargs differ. Together these stop the zerocopy completion from reaching userspace while the probe skb still references the user buffers. > This is a pre-existing issue found by manual code inspection and LLM > review; it was not triggered in production. Verified with the net_core > KUnit test suite; not tested on real hardware. [Severity: Low] Is the "Verified with the net_core KUnit test suite" statement accurate for this change? The net_core suite in net/core/net_test.c contains these cases: gso_test_func, ip_tunnel_flags_test_run, netmem_ref_test_page, netmem_ref_test_pp_page, netmem_ref_test_net_iov, netmem_ref_test_release_data, netmem_ref_test_skb_segment, netmem_ref_test_try_coalesce and netmem_ref_test_tcp_devmem_recv. The only TCP case, netmem_ref_test_tcp_devmem_recv, covers the receive side. It queues skbs on sk_receive_queue and calls kernel_recvmsg() with MSG_SOCK_DEVMEM. None of the cases transmit through tcp_write_xmit()->tcp_mtu_probe(). As a result, neither of the static helpers changed here, tcp_can_coalesce_send_queue_head() and tcp_clone_payload(), is ever called. No case sends MSG_ZEROCOPY or other uarg-bearing skbs through TCP either. This is still the case at the end of the series. The two later KUnit patches don't add a test for this path. net_test.c has no references to tcp_mtu_probe, tcp_clone_payload, tcp_can_coalesce_send_queue_head or MSG_ZEROCOPY. Its only skb_zcopy* use is a skb_zcopy_init() in an unrelated skb_zerocopy() rollback test. Could the message say the change was only compile and regression tested? Alternatively, it could cite a MSG_ZEROCOPY test with tcp_mtu_probing enabled that actually reaches tcp_mtu_probe(). -- Sashiko AI review ยท https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120201408.3445445-1-almasrymina%40google.com
Technical Details
Message-ID:
<179550806630.3135.7383663676671622660@kernel.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370092-linux-kernel-netdev=dewy.ruReferences:
<20261120201408.3445445-5-almasrymina@google.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-370092-linux-kernel-netdev=dewy.ru From: netdev-bot+sashiko@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v6 4/7] tcp: propagate skb_zcopy() uarg in tcp_mtu_probe() Date: Tue, 24 Nov 2026 08:14:26 +0000 Organization: Usenet Network Message-ID: <179550806630.3135.7383663676671622660@kernel.org> References: <20261120201408.3445445-5-almasrymina@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="4085962"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:TizXvxKGoLS7LWNZe5q66x46u+w= sha256:mNU1UJLIAdiccYDuAkqpi28bRMkc7qPIpQRpGhAL/B0= sha1:CeHbNNTesBraNAXv9k0aLzBpHUM= sha256:J8M8OpUQ+J3Ozyhczymne8Fn85F2bPFDoKr7fEVCQ+Y= 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 9F73D125DD7; Tue, 24 Nov 2026 11:14:44 +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 WQYP-gVwzqKa; Tue, 24 Nov 2026 11:14:41 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-370092-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 B44EA125DDD; Tue, 24 Nov 2026 11:14:32 +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 DE5D93222E; Tue, 24 Nov 2026 08:14:28 +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=1795508068; b=WCZwJSb1TTeYlshByEehU+YOTrrdCjX2TTOq2uCaHTfKRgJzxnzHv8AYJKV7S0vs5Frr 2NaoULjTiAi/5wFPN6lKdgVwE8SaO2JfKTLBvi2xKZUTzWkt4iwEpLwCWfIskRUEilZA+ KQXyaqFQ2CRhACWcQZnpvZKHjDy5RthkqZ/GrGJyNQfccKeIGDdNS2UTKGXWJ7ahCLasA SSwo2thfpobvipA0y41ME8TxF4y1VTcaDABAQvVHA/lRgqOBumGF5Q1h0xu6xLm/FHRHa NmD4I6A9v7fkH3mhKbPBC3wvB5bhtCSuu8Q86GDDxayPmaEusydPh5lFROtXfxeDMxQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795508068; 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=5yQbdgg/AhDIjxhPPZR540iJjRA1kmKFEWdr7jTy2bY=; b=NeCmqF04etnquhT+Uy9fK2J+dJ9ROYfJXRqpwHffpXW7JW5he6+YEr4cPrMV/QGF7OZv LwSl9/ImJKJ2AZvYM2q8QYFzWp9QGdsyPu6+f7dxdsHrazw1cIm13qjcqtN/rwIkU+4Yf +Yc75cGOMWGrwK64+eTa0SiAwjQWJfKptZsHJEng2CER23XT7ZwSWOad8oEWN8938Cylj KLg+84DrXaaVB10Ujei1QOL5eW3p2gvq83lHSknILCbdA67Gd11rAt+PKXrlke191fPgB M/2JfrBBlsccCqHSQZIHngPmSXln8TdocJIc9uzoc/XBMc7wCUJhfCioaT07udnRsZw== 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=RPAlbcpc; 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 B6C8D606A326; Tue, 24 Nov 2026 08:14:28 +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=RPAlbcpc 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=1795508067; b=YsRt3UAGHqzJ8Ggf8o8NT9+q7bh0kLLxY9he+jv/KmUaYSdTTyLn6DZJn0gDQoyc+BJX xxU5X4kbpG7R3Nr8C66AiOoOkDC+qUmNav3Ous7jjFTKED/J6B0WxPwIWpTNMRmlS2d0M 29HzzszQalIPln9CMfKba396+9GpII5vPbaVx6MhejOgG/ZaPqlU7w/s1hewfq3Zlnia0 h7pCgg2vGRwZWvCDlQ2/wx7dhUHSKT+Z6Ji6Ckr8ZeYa/IPqzmXz7QcW/bC/VorTRet8k zl+emGYTytnfKovfynynrSyh7zxqv3KKzFyMwZmhGrRdxMIYd2slpZEGJYSNp5tsZnw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795508067; 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=5yQbdgg/AhDIjxhPPZR540iJjRA1kmKFEWdr7jTy2bY=; b=lin/06fQk25kskOg4z6PDu1XQDBeGMtUsND3dcZ72FDs769eQOAfiEE+xKUEuTx5N1RU hVm8ZSwsxUDDjVOelPNJzYnec7wWIFmhzAHeUy8pNTEOFlPr0OzKYdRsyRStcn8jYxZZt a1zZFCvN6QS5MjUpfipEacpp6zg3w8TWcReF2rv98covvUKWla3rKGD0RmXYIK++OjcFz VPhjE20NjlxmgJJJP8xfJQm+q3OUik5QII+OUycmn+Ue35jAvZeHD9BpINh5NBO0wrcPc oO9PQ98jc+9N0H8t/clgMYg9jjj18/W9ANbDsMk9PihKkMFWPqjMF0KraXBFM1Eg5MQ== 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=RPAlbcpc; 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 D753A606A330 for <netdev@vger.kernel.org>; Tue, 24 Nov 2026 08:14:27 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id B17CF1F000C4; Tue, 24 Nov 2026 08:14:26 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795508067; bh=5yQbdgg/AhDIjxhPPZR540iJjRA1kmKFEWdr7jTy2bY=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=RPAlbcpcAfCc1Zv+JMFWyMT9Jj/d2i4qsSpoJQb7WnSsnHJvBRbWFmRWxJ90tGhwg kNVXhEHCxsnXFpyuS10clGIAztj0yzMdIVtyGGXzl5xZ7U4xyqu7y2BBv+iGr1I0vx 1v0OuUfmTArbXGulbqQ6C36JHC1NR0oZViXmCKvT3dBBKp8RomcfPzPC+BcxOA3bhI 1NaME2T/IFKgfOP9rtH/zb+RHwACe0ARP3owbtG0Ws4rbgZilG17P2jzLD8prl/div LFIXj/NXf0XnNgQGYCJ9gqeswazlAvjh+SwFYIBVgS4twtYPBw+pvwbe55VWiGMAoe 4Ad5Lb03leyAQ== X-Cc: netdev@vger.kernel.org, edumazet@kernel.org, ncardwell@google.com, kuniyu@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, sdf@fomichev.me, kaiyuanz@google.com, willemb@google.com, daniel@iogearbox.net, josef@toxicpanda.com, sdf.kernel@gmail.com, dtatulea@nvidia.com, asml.silence@gmail.com, bobbyeshleman@meta.com X-In-Reply-To: <20261120201408.3445445-5-almasrymina@google.com> 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