From: "Michael S. Tsirkin" <mst@redhat.com>
To: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Cc: Network Development <netdev@vger.kernel.org>,
David Miller <davem@davemloft.net>
Subject: Re: [PATCH net] net/packet: tpacket_rcv: do not increment ring index on drop
Date: Tue, 10 Mar 2020 02:46:10 -0400 [thread overview]
Message-ID: <20200310024417-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <CA+FuTSc9gdNO1O1HxOz+j-KVhL_+24LyQjb_gB0tF6uH++ykGg@mail.gmail.com>
On Mon, Mar 09, 2020 at 11:50:23AM -0400, Willem de Bruijn wrote:
> On Mon, Mar 9, 2020 at 11:42 AM Willem de Bruijn
> <willemdebruijn.kernel@gmail.com> wrote:
> >
> > On Mon, Mar 9, 2020 at 11:34 AM Willem de Bruijn
> > <willemdebruijn.kernel@gmail.com> wrote:
> > >
> > > From: Willem de Bruijn <willemb@google.com>
> > >
> > > In one error case, tpacket_rcv drops packets after incrementing the
> > > ring producer index.
> > >
> > > If this happens, it does not update tp_status to TP_STATUS_USER and
> > > thus the reader is stalled for an iteration of the ring, causing out
> > > of order arrival.
> > >
> > > The only such error path is when virtio_net_hdr_from_skb fails due
> > > to encountering an unknown GSO type.
> > >
> > > Signed-off-by: Willem de Bruijn <willemb@google.com>
> >
> >
> > Fixes: bfd5f4a3d605 ("packet: Add GSO/csum offload support.")
> >
> > I forgot to add the Fixes tag, sorry. This goes back to the
> > introduction of GSO support for virtio_net.
>
> The problem of blinding receivers to certain packet types goes back to
> that commit.
>
> But the specific issue of ring out of order arrival is added later,
> when vnet_hdr support is extended to tpacket_rcv:
>
> Fixes: 58d19b19cd99 ("packet: vnet_hdr support for tpacket_rcv")
In fact it looks like
commit 9fd1ff5d2ac7181844735806b0a703c942365291
Author: Steffen Klassert <steffen.klassert@secunet.com>
Date: Sat Jan 25 11:26:45 2020 +0100
udp: Support UDP fraglist GRO/GSO.
and
commit 90017accff61ae89283ad9a51f9ac46ca01633fb
Author: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: Thu Jun 2 15:05:43 2016 -0300
sctp: Add GSO support
both break userspace using virtio due to lack of fallback...
--
MST
next prev parent reply other threads:[~2020-03-10 6:46 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-09 15:34 [PATCH net] net/packet: tpacket_rcv: do not increment ring index on drop Willem de Bruijn
2020-03-09 15:42 ` Willem de Bruijn
2020-03-09 15:50 ` Willem de Bruijn
2020-03-10 6:46 ` Michael S. Tsirkin [this message]
2020-03-10 6:43 ` Michael S. Tsirkin
2020-03-10 12:49 ` Willem de Bruijn
2020-03-10 12:59 ` Michael S. Tsirkin
2020-03-10 14:16 ` Willem de Bruijn
2020-03-10 14:43 ` Michael S. Tsirkin
2020-03-10 15:38 ` Willem de Bruijn
2020-03-10 16:14 ` Willem de Bruijn
2020-03-10 21:29 ` Michael S. Tsirkin
2020-03-10 21:35 ` Willem de Bruijn
2020-03-10 21:57 ` Michael S. Tsirkin
2020-03-10 23:13 ` Willem de Bruijn
2020-03-11 7:56 ` Michael S. Tsirkin
2020-03-11 14:31 ` Willem de Bruijn
2020-03-11 21:25 ` Michael S. Tsirkin
2020-03-11 21:49 ` Willem de Bruijn
2020-03-12 6:13 ` David Miller
2020-03-12 6:27 ` Michael S. Tsirkin
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=20200310024417-mutt-send-email-mst@kernel.org \
--to=mst@redhat.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=willemdebruijn.kernel@gmail.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).