mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrei Vagin <avagin@gmail.com>
To: joshwash@google.com
Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org,
	 stable@kernel.org, Praveen Kaligineedi <pkaligineedi@google.com>,
	 Harshitha Ramamurthy <hramamurthy@google.com>,
	Eric Dumazet <edumazet@google.com>,
	 Jeroen de Borst <jeroendb@google.com>,
	Shailend Chand <shailend@google.com>,
	 Paolo Abeni <pabeni@redhat.com>,
	Willem de Bruijn <willemb@google.com>,
	 Rushil Gupta <rushilg@google.com>,
	Catherine Sullivan <csully@google.com>,
	Bailey Forrest <bcf@google.com>,
	 open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH net] gve: ignore nonrelevant GSO type bits when processing TSO headers
Date: Thu, 6 Jun 2024 15:16:56 -0700	[thread overview]
Message-ID: <CANaxB-wSegSBot-8YCeiw-CsfdubRJMacC6nmRPLyoD4eGSc-w@mail.gmail.com> (raw)
In-Reply-To: <20240606192139.1872461-1-joshwash@google.com>

On Thu, Jun 6, 2024 at 12:22 PM <joshwash@google.com> wrote:
>
> From: Joshua Washington <joshwash@google.com>
>
> TSO currently fails when the skb's gso_type field has more than one bit
> set.
>
> TSO packets can be passed from userspace using PF_PACKET, TUNTAP and a
> few others, using virtio_net_hdr (e.g., PACKET_VNET_HDR). This includes
> virtualization, such as QEMU, a real use-case.

Here is the bug report where this issue was triggered by gVisor:
https://github.com/google/gvisor/issues/10344

>
> The gso_type and gso_size fields as passed from userspace in
> virtio_net_hdr are not trusted blindly by the kernel. It adds gso_type
> |= SKB_GSO_DODGY to force the packet to enter the software GSO stack
> for verification.
>
> This issue might similarly come up when the CWR bit is set in the TCP
> header for congestion control, causing the SKB_GSO_TCP_ECN gso_type bit
> to be set.
>
> Fixes: a57e5de476be ("gve: DQO: Add TX path")
>
> Signed-off-by: Joshua Washington <joshwash@google.com>
> Reviewed-by: Praveen Kaligineedi <pkaligineedi@google.com>
> Reviewed-by: Harshitha Ramamurthy <hramamurthy@google.com>
> Suggested-by: Eric Dumazet <edumazet@google.com>

Acked-by: Andrei Vagin <avagin@gmail.com>

Thanks,
Andrei

  parent reply	other threads:[~2024-06-06 22:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-06 19:21 joshwash
2024-06-06 21:53 ` Willem de Bruijn
2024-06-06 22:16 ` Andrei Vagin [this message]
2024-06-07  6:09 ` [PATCH net v2] " joshwash
2024-06-07  6:35   ` Eric Dumazet
2024-06-07 14:07   ` Willem de Bruijn
2024-06-10 22:57   ` [PATCH net v3] " joshwash
2024-06-11  0:27     ` Jakub Kicinski
2024-06-11  2:26       ` Joshua Washington
2024-06-11  2:35         ` Jakub Kicinski
2024-06-12  3:00     ` patchwork-bot+netdevbpf

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=CANaxB-wSegSBot-8YCeiw-CsfdubRJMacC6nmRPLyoD4eGSc-w@mail.gmail.com \
    --to=avagin@gmail.com \
    --cc=bcf@google.com \
    --cc=csully@google.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hramamurthy@google.com \
    --cc=jeroendb@google.com \
    --cc=joshwash@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=pkaligineedi@google.com \
    --cc=rushilg@google.com \
    --cc=shailend@google.com \
    --cc=stable@kernel.org \
    --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

all inboxes | Powered by JetHome®