Netdev List
 help / color / mirror / Atom feed
From: netdev-bot+sashiko@kernel.org
To: almasrymina@google.com
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
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	[thread overview]
Message-ID: <179550806630.3135.7383663676671622660@kernel.org> (raw)
In-Reply-To: <20261120201408.3445445-5-almasrymina@google.com>

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

  reply	other threads:[~2026-11-24  8:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-20 20:14 [PATCH net-next v6 0/7] net: prevent mixing incompatible memory providers in skbs Mina Almasry
2026-11-20 20:14 ` [PATCH net-next v6 1/7] net: fix skb->unreadable propagation in skb_split() and skb_shift() Mina Almasry
2026-11-20 20:14 ` [PATCH net-next v6 2/7] net: devmem: prevent mixing TX bindings and reject non-devmem xmit Mina Almasry
2026-11-23 17:29   ` Stanislav Fomichev
2026-11-20 20:14 ` [PATCH net-next v6 3/7] tcp: fix unreadable net_iov handling in tcp_clone_payload() Mina Almasry
2026-11-23 17:29   ` Stanislav Fomichev
2026-11-24  8:14   ` netdev-bot+sashiko
2026-11-20 20:14 ` [PATCH net-next v6 4/7] tcp: propagate skb_zcopy() uarg in tcp_mtu_probe() Mina Almasry
2026-11-24  8:14   ` netdev-bot+sashiko [this message]
2026-11-20 20:14 ` [PATCH net-next v6 5/7] net: kunit: attach net_iov frags to target skbs in unreadable tests Mina Almasry
2026-11-23 17:29   ` Stanislav Fomichev
2026-11-24  8:14   ` netdev-bot+sashiko
2026-11-20 20:14 ` [PATCH net-next v6 6/7] net: prevent mixing frags from different memory providers or bindings Mina Almasry
2026-11-23 17:30   ` Stanislav Fomichev
2026-11-24  8:14   ` netdev-bot+sashiko
2026-11-20 20:14 ` [PATCH net-next v6 7/7] net: kunit: test incompatible memory provider rejection Mina Almasry
2026-11-23 17:31   ` Stanislav Fomichev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179550806630.3135.7383663676671622660@kernel.org \
    --to=netdev-bot+sashiko@kernel.org \
    --cc=almasrymina@google.com \
    --cc=asml.silence@gmail.com \
    --cc=bobbyeshleman@meta.com \
    --cc=daniel@iogearbox.net \
    --cc=davem@davemloft.net \
    --cc=dtatulea@nvidia.com \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=josef@toxicpanda.com \
    --cc=kaiyuanz@google.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=ncardwell@google.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sdf.kernel@gmail.com \
    --cc=sdf@fomichev.me \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox