mbox series

[5.15,0/4] Backport fix for net: missing check virtio

Message ID 20240909182506.270136-1-willemdebruijn.kernel@gmail.com (mailing list archive)
Headers show
Series Backport fix for net: missing check virtio | expand

Message

Willem de Bruijn Sept. 9, 2024, 6:22 p.m. UTC
From: Willem de Bruijn <willemb@google.com>

Backport the following commit, because it fixes an existing backport
that has caused multiple reports of breakage on 5.15 based kernels:

  net: drop bad gso csum_start and offset in virtio_net_hdr


To backport without conflicts, also backport its two dependencies:

  net: more strict VIRTIO_NET_HDR_GSO_UDP_L4 validation
  gso: fix dodgy bit handling for GSO_UDP_L4


Also backport the one patch in netdev-net/main that references one
of the above in its Fixes tag:

  net: change maximum number of UDP segments to 128


All four patches also exist in 6.1.109

 include/linux/udp.h                  |  2 +-
 include/linux/virtio_net.h           | 35 +++++++++++++++++-----------
 net/ipv4/tcp_offload.c               |  3 +++
 net/ipv4/udp_offload.c               | 17 +++++++++++---
 tools/testing/selftests/net/udpgso.c |  2 +-
 5 files changed, 40 insertions(+), 19 deletions(-)

Comments

Greg KH Sept. 10, 2024, 7:30 a.m. UTC | #1
On Mon, Sep 09, 2024 at 02:22:44PM -0400, Willem de Bruijn wrote:
> From: Willem de Bruijn <willemb@google.com>
> 
> Backport the following commit, because it fixes an existing backport
> that has caused multiple reports of breakage on 5.15 based kernels:
> 
>   net: drop bad gso csum_start and offset in virtio_net_hdr
> 
> 
> To backport without conflicts, also backport its two dependencies:
> 
>   net: more strict VIRTIO_NET_HDR_GSO_UDP_L4 validation
>   gso: fix dodgy bit handling for GSO_UDP_L4
> 
> 
> Also backport the one patch in netdev-net/main that references one
> of the above in its Fixes tag:
> 
>   net: change maximum number of UDP segments to 128
> 
> 
> All four patches also exist in 6.1.109
> 
>  include/linux/udp.h                  |  2 +-
>  include/linux/virtio_net.h           | 35 +++++++++++++++++-----------
>  net/ipv4/tcp_offload.c               |  3 +++
>  net/ipv4/udp_offload.c               | 17 +++++++++++---
>  tools/testing/selftests/net/udpgso.c |  2 +-
>  5 files changed, 40 insertions(+), 19 deletions(-)
> 
> -- 
> 2.46.0.598.g6f2099f65c-goog

all now queued up, thanks!

greg k-h