netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
To: Christian Heusel <christian@heusel.eu>,
	 Adrian Vladu <avladu@cloudbasesolutions.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
	 Greg KH <gregkh@linuxfoundation.org>,
	 "willemdebruijn.kernel@gmail.com"
	<willemdebruijn.kernel@gmail.com>,
	 "alexander.duyck@gmail.com" <alexander.duyck@gmail.com>,
	 "arefev@swemel.ru" <arefev@swemel.ru>,
	 "davem@davemloft.net" <davem@davemloft.net>,
	 "edumazet@google.com" <edumazet@google.com>,
	 "jasowang@redhat.com" <jasowang@redhat.com>,
	 "kuba@kernel.org" <kuba@kernel.org>,
	 "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
	 "pabeni@redhat.com" <pabeni@redhat.com>,
	 "stable@vger.kernel.org" <stable@vger.kernel.org>,
	 "willemb@google.com" <willemb@google.com>,
	 "regressions@lists.linux.dev" <regressions@lists.linux.dev>
Subject: Re: [PATCH net] net: drop bad gso csum_start and offset in virtio_net_hdr
Date: Wed, 14 Aug 2024 09:53:58 -0400	[thread overview]
Message-ID: <66bcb6f68172f_adbf529471@willemb.c.googlers.com.notmuch> (raw)
In-Reply-To: <ad4d96b7-d033-4292-86df-91b8d7b427c4@heusel.eu>

Christian Heusel wrote:
> On 24/08/14 10:10AM, Adrian Vladu wrote:
> > Hello,
> > 
> > The 6.6.y branch has the patch already in the stable queue -> https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/commit/?id=3e713b73c01fac163a5c8cb0953d1e300407a773, and it should be available in the 6.6.46 upcoming minor.
> > 
> > Thanks, Adrian.
> 
> Yeah it's also queued up for 6.10, which I both missed (sorry for that!).
> If I'm able to properly backport the patch for 6.1 I'll send that one,
> but my hopes are not too high that this will work ..

There are two conflicts.

The one in include/linux/virtio_net.h is resolved by first backporting
commit fc8b2a6194693 ("net: more strict VIRTIO_NET_HDR_GSO_UDP_L4
validation")

We did not backport that to stable because there was some slight risk
that applications might be affected. This has not surfaced.

The conflict in net/ipv4/udp_offload.c is not so easy to address.
There were lots of patches between v6.1 and linus/master, with far
fewer of these betwee v6.1 and linux-stable/linux-6.1.y.

We can also avoid the backport of fc8b2a6194693 and construct a custom
version for this older kernel. All this is needed in virtio_net.h is

+               case SKB_GSO_UDP_L4:
+               case SKB_GSO_TCPV4:
+               case SKB_GSO_TCPV6:
+                       if (skb->csum_offset != offsetof(struct tcphdr, check))

and in __udp_gso_segment

+       if (unlikely(skb_checksum_start(gso_skb) !=
+                    skb_transport_header(gso_skb)))
+               return ERR_PTR(-EINVAL);
+

The Fixes tag points to a commit introduced in 6.1. 6.6 is queued up,
so this is the only release for which we have to create a custom
patch, right?

Let me know if you will send this, or I should?


  reply	other threads:[~2024-08-14 13:54 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-26  2:32 [PATCH net] net: drop bad gso csum_start and offset in virtio_net_hdr Willem de Bruijn
2024-07-26  7:00 ` Eric Dumazet
2024-07-26 13:49   ` Willem de Bruijn
2024-07-26  8:23 ` Paolo Abeni
2024-07-26 13:52   ` Willem de Bruijn
2024-07-26 14:48     ` Paolo Abeni
2024-08-05 21:28 ` avladu
2024-08-07 14:12   ` Greg KH
2024-08-07 14:42     ` Adrian Vladu
2024-08-07 18:34     ` Christian Heusel
2024-08-08  6:38       ` Greg KH
2024-08-08  9:52         ` Christian Heusel
2024-08-08  9:57           ` Adrian Vladu
2024-08-14  9:46           ` Christian Heusel
2024-08-14  9:54             ` Michael S. Tsirkin
2024-08-14 10:05               ` Christian Heusel
2024-08-14 10:10                 ` Adrian Vladu
2024-08-14 10:24                   ` Christian Heusel
2024-08-14 13:53                     ` Willem de Bruijn [this message]
2024-08-21 12:57                       ` Vitaly Chikunov
2024-08-21 14:05                         ` Willem de Bruijn
2024-08-26 14:10                           ` Salvatore Bonaccorso
2024-08-26 20:07                             ` Salvatore Bonaccorso
2024-08-27 13:16                               ` Greg KH
2024-08-27 17:59                                 ` Vitaly Chikunov
2024-08-27 13:15                           ` Greg KH

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=66bcb6f68172f_adbf529471@willemb.c.googlers.com.notmuch \
    --to=willemdebruijn.kernel@gmail.com \
    --cc=alexander.duyck@gmail.com \
    --cc=arefev@swemel.ru \
    --cc=avladu@cloudbasesolutions.com \
    --cc=christian@heusel.eu \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=jasowang@redhat.com \
    --cc=kuba@kernel.org \
    --cc=mst@redhat.com \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=regressions@lists.linux.dev \
    --cc=stable@vger.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;
as well as URLs for NNTP newsgroup(s).