netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net v3 0/2] Guard against gso_segs overflows
@ 2026-08-22 12:01 Alice Mikityanska
  2026-08-22 12:01 ` [PATCH net v3 1/2] virtio-net: Ensure that TCP packets don't overflow gso_segs Alice Mikityanska
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alice Mikityanska @ 2026-08-22 12:01 UTC (permalink / raw)
  To: Paolo Abeni, Jakub Kicinski, Eric Dumazet, Willem de Bruijn,
	Michael S. Tsirkin, Jason Wang
  Cc: David S. Miller, Simon Horman, Xuan Zhuo, Eugenio Pérez,
	Jason Xing, Kuniyuki Iwashima, Björn Töpel,
	Jiayuan Chen, netdev, Alice Mikityanska

From: Alice Mikityanska <alice@isovalent.com>

This series is a follow-up on the discussion:

https://lore.kernel.org/netdev/CAD0BsJWzSr2zduf5v3mVC4zd=Lj6ZAoC+V42-VBdg42aDY8XXw@mail.gmail.com/T/#m1e22fca273c36cc8844e516505d3251cc1418fea

skb_segment is patched to avoid possible overflows in partial GSO. The
primary possible source of too many GSO segments is also addressed:
virtio-net clamps gso_size to >=8 in TCP, as suggested by Eric.

v3 changes: Reordered the patches, added WARN to skb_segment.

v2: https://lore.kernel.org/netdev/20260813174613.2920246-1-alice.kernel@fastmail.im/

v2 changes: dropped new checks in fastpath from skb_gro_receive and
__virtio_net_hdr_to_skb, replaced the latter with a silent clamp for
gso_size, kept the cheap guard in skb_segment.

v1: https://lore.kernel.org/netdev/20260723155145.158572-1-alice.kernel@fastmail.im/

Alice Mikityanska (2):
  virtio-net: Ensure that TCP packets don't overflow gso_segs
  net: Guard for gso_segs overflow in skb_segment

 include/linux/virtio_net.h | 4 ++++
 net/core/skbuff.c          | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-08-27 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-22 12:01 [PATCH net v3 0/2] Guard against gso_segs overflows Alice Mikityanska
2026-08-22 12:01 ` [PATCH net v3 1/2] virtio-net: Ensure that TCP packets don't overflow gso_segs Alice Mikityanska
2026-08-22 12:01 ` [PATCH net v3 2/2] net: Guard for gso_segs overflow in skb_segment Alice Mikityanska
2026-08-27 13:50 ` [PATCH net v3 0/2] Guard against gso_segs overflows patchwork-bot+netdevbpf

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).