From: Jakub Kicinski <kuba@kernel.org>
To: Edward Adam Davis <eadavis@qq.com>
Cc: syzbot+ci3edb9412aeb2e703@syzkaller.appspotmail.com,
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@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: Fri, 28 Nov 2025 09:39:46 -0800 [thread overview]
Message-ID: <20251128093946.18c645c6@kernel.org> (raw)
In-Reply-To: <tencent_BA768766163C533724966E36344AAE754709@qq.com>
On Fri, 28 Nov 2025 21:35:57 +0800 Edward Adam Davis 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.
next prev parent reply other threads:[~2025-11-28 17:39 UTC|newest]
Thread overview: 7+ 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 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 [this message]
2025-12-01 3:41 ` Edward Adam Davis
2025-12-01 19:15 ` Jakub Kicinski
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=20251128093946.18c645c6@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).