Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH RFC net v10 0/6] more virtio-net csum hardening
@ 2026-12-03  1:53 Showta Ishizaki
  2026-12-03  1:53 ` [PATCH RFC net v10 2/6] um: vector: trim skbs before verifying the header Showta Ishizaki
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Showta Ishizaki @ 2026-12-03  1:53 UTC (permalink / raw)
  To: Michael S. Tsirkin, Willem de Bruijn, Jason Wang, netdev
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, David S. Miller,
	Andrew Lunn, Simon Horman, Eugenio Pérez, Xuan Zhuo,
	Richard Weinberger, Anton Ivanov, Johannes Berg, Jonathan Corbet,
	Shuah Khan, Randy Dunlap, Chris Arges, Paulos Yibelo,
	Björn Töpel, virtualization, linux-um, linux-doc,
	Showta Ishizaki

Michael's series again, now v10. Patches 1-4 and 6 are his; patch 5 is
mine. The only change since v9 is in patch 5.

Changes since v9:
- Patch 5: the non-GSO fallback summed skb->len - outer_th for the outer
  UDP checksum, which also covers trailing Ethernet padding, so a frame
  with non-zero padding got a wrong outer checksum. Sum uh->len instead,
  bounded so a length from the frame cannot over-read. Chris Arges found
  this in testing and sent the fix.

The two issues Michael listed as open in v7 are still open, hence the
RFC: the inner packet of a tunnel can have a valid header at
inner_nh_offset that overlaps the real transport header, and completing
the checksum at input breaks nf/BPF programs that edit the payload and
rely on CHECKSUM_PARTIAL.

Patches 1-4 and 6 are unchanged from v9 and were tested as described
there. For patch 5 I sent, through a tap bridged to a tap with no
offloads, a non-GSO UDP tunnel frame whose inner checksum is completed
in software (an inner more-fragments bit) with non-zero Ethernet
padding; without the fix the outer UDP checksum comes out wrong for both
a v4 and a v6 outer, with it they verify. Based on net e6474ead54b8, the
same base as v9; it also applies to current net (c1c39137dcc3).

Michael S. Tsirkin (5):
  net: account for ingress-resolved virtio net hdr state
  um: vector: trim skbs before verifying the header
  virtio_net: parse tunnel csum_start little-endian
  net: resolve uncommon partial checksums at ingress
  net: add a sysctl to opt out of virtio net hdr checksum validation

Showta Ishizaki (1):
  net: virtio: compute the outer checksum of non-GSO tunnel packets

 Documentation/admin-guide/sysctl/net.rst |  19 ++
 arch/um/drivers/vector_kern.c            |   6 +-
 arch/um/drivers/vector_transports.c      |   4 +-
 drivers/net/tap.c                        |   4 +-
 drivers/net/tun.c                        |  44 +++-
 drivers/net/tun_vnet.h                   |   4 +-
 drivers/net/virtio_net.c                 |   2 +-
 include/linux/virtio_net.h               | 263 ++++++++++++++++++++++-
 include/net/netns/core.h                 |   1 +
 net/core/dev.c                           |   7 +
 net/core/net_namespace.c                 |   1 +
 net/core/sysctl_net_core.c               |  50 +++++
 net/packet/af_packet.c                   |  21 +-
 13 files changed, 402 insertions(+), 24 deletions(-)


base-commit: e6474ead54b8acecb8b0462dde2d77f46d2b7dc1
-- 
2.54.0 (Apple Git-157)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-12-03  1:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  1:53 [PATCH RFC net v10 0/6] more virtio-net csum hardening Showta Ishizaki
2026-12-03  1:53 ` [PATCH RFC net v10 2/6] um: vector: trim skbs before verifying the header Showta Ishizaki
2026-12-03  1:53 ` [PATCH RFC net v10 5/6] net: virtio: compute the outer checksum of non-GSO tunnel packets Showta Ishizaki
2026-12-03  1:53 ` [PATCH RFC net v10 3/6] virtio_net: parse tunnel csum_start little-endian Showta Ishizaki
2026-12-03  1:53 ` [PATCH RFC net v10 6/6] net: add a sysctl to opt out of virtio net hdr checksum validation Showta Ishizaki
2026-12-03  1:53 ` [PATCH RFC net v10 4/6] net: resolve uncommon partial checksums at ingress Showta Ishizaki
2026-12-03  1:53 ` [PATCH RFC net v10 1/6] net: account for ingress-resolved virtio net hdr state Showta Ishizaki
2026-12-03  1:59 ` [PATCH RFC net v10 0/6] more virtio-net csum hardening netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox