All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Edward Adam Davis <eadavis@qq.com>
Cc: davem@davemloft.net, edumazet@google.com, eperezma@redhat.com,
	horms@kernel.org, jasowang@redhat.com, kvm@vger.kernel.org,
	linux-kernel@vger.kernel.org, mst@redhat.com,
	netdev@vger.kernel.org, pabeni@redhat.com, sgarzare@redhat.com,
	stefanha@redhat.com,
	syzbot+ci3edb9412aeb2e703@syzkaller.appspotmail.com,
	syzbot@lists.linux.dev, syzbot@syzkaller.appspotmail.com,
	syzkaller-bugs@googlegroups.com, virtualization@lists.linux.dev,
	xuanzhuo@linux.alibaba.com
Subject: Re: [PATCH Next V2] net: restore the iterator to its original state when an error occurs
Date: Mon, 1 Dec 2025 11:15:57 -0800	[thread overview]
Message-ID: <20251201111557.15cb9415@kernel.org> (raw)
In-Reply-To: <tencent_7B73E6D013636363696CC3A34444F77AF705@qq.com>

On Mon,  1 Dec 2025 11:41:07 +0800 Edward Adam Davis wrote:
> On Fri, 28 Nov 2025 09:39:46 -0800, Jakub Kicinski wrote:
> > > In zerocopy_fill_skb_from_iter(), if two copy operations are performed
> > > and the first one succeeds while the second one fails, it returns a
> > > failure but the count in iterator has already been decremented due to
> > > the first successful copy. This ultimately affects the local variable
> > > rest_len in virtio_transport_send_pkt_info(), causing the remaining
> > > count in rest_len to be greater than the actual iterator count. As a
> > > result, packet sending operations continue even when the iterator count
> > > is zero, which further leads to skb->len being 0 and triggers the warning
> > > reported by syzbot [1].  
> > 
> > Please follow the subsystem guidelines for posting patches:
> > https://www.kernel.org/doc/html/next/process/maintainer-netdev.html
> > Your patch breaks zerocopy tests.  
> I see that they all timed out. I'm not familiar with this test, how can
> I get more details about it?

IIRC its was the packetdrill tests:

tools/testing/selftests/net/packetdrill/tcp_fastopen_server_basic-zero-payload.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_basic.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_batch.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_client.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_closed.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_epoll_edge.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_epoll_exclusive.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_epoll_oneshot.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_fastopen-client.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_fastopen-server.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_maxfrags.pkt
tools/testing/selftests/net/packetdrill/tcp_zerocopy_small.pkt

If you have the packetdrill command installed those _should_ be
relatively easy to run via standard kselftest commands

  reply	other threads:[~2025-12-01 19:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-28  1:44 [syzbot] [kvm?] [net?] [virt?] WARNING in virtio_transport_send_pkt_info (2) syzbot
2025-11-28  4:34 ` Edward Adam Davis
2025-11-28  6:47   ` syzbot
2025-11-28  7:55 ` Edward Adam Davis
2025-11-28  9:02   ` syzbot
2025-11-28  8:09 ` Edward Adam Davis
2025-11-28  9:18   ` syzbot
2025-11-28  8:41 ` [PATCH Next] net: restore the iterator to its original state when an error occurs Edward Adam Davis
2025-11-28 13:05   ` [syzbot ci] " syzbot ci
2025-11-28 13:35     ` [PATCH Next V2] " Edward Adam Davis
2025-11-28 17:39       ` Jakub Kicinski
2025-12-01  3:41         ` Edward Adam Davis
2025-12-01 19:15           ` Jakub Kicinski [this message]
2025-12-03 15:55 ` [syzbot] [kvm?] [net?] [virt?] WARNING in virtio_transport_send_pkt_info (2) Edward Adam Davis
2025-12-03 16:27   ` syzbot

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=20251201111557.15cb9415@kernel.org \
    --to=kuba@kernel.org \
    --cc=davem@davemloft.net \
    --cc=eadavis@qq.com \
    --cc=edumazet@google.com \
    --cc=eperezma@redhat.com \
    --cc=horms@kernel.org \
    --cc=jasowang@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sgarzare@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=syzbot+ci3edb9412aeb2e703@syzkaller.appspotmail.com \
    --cc=syzbot@lists.linux.dev \
    --cc=syzbot@syzkaller.appspotmail.com \
    --cc=syzkaller-bugs@googlegroups.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.