Netdev List
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] Guard against gso_segs overflows
@ 2026-07-23 15:51 Alice Mikityanska
  2026-07-23 15:51 ` [PATCH net-next 1/3] net: Guard for gso_segs overflow in skb_segment Alice Mikityanska
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alice Mikityanska @ 2026-07-23 15:51 UTC (permalink / raw)
  To: Paolo Abeni, Jakub Kicinski, Michael S. Tsirkin, Jason Wang
  Cc: Eric Dumazet, David S. Miller, Simon Horman, Xuan Zhuo,
	Eugenio Pérez, HanQuan, Hyunwoo Kim, Sabrina Dubroca,
	Jason Xing, Kuniyuki Iwashima, Björn Töpel,
	Sebastian Andrzej Siewior, 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
possible sources of too many GSO segments are also addressed:

- virtio-net blocks large packets (>64k) with extremely small (<8)
  gso_size.
- GRO aggregation checks the number of segments before extending the
  chain.

Feel free to drop patch 1 if you feel that patches 2 and 3 address all
possible cases, and extra robustness in skb_segment is not needed.

Alice Mikityanska (3):
  net: Guard for gso_segs overflow in skb_segment
  virtio-net: Block malformed packets that overflow gso_segs
  net: Limit to GSO_MAX_SEGS in skb_gro_receive

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

-- 
2.55.0


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

end of thread, other threads:[~2026-07-23 16:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 15:51 [PATCH net-next 0/3] Guard against gso_segs overflows Alice Mikityanska
2026-07-23 15:51 ` [PATCH net-next 1/3] net: Guard for gso_segs overflow in skb_segment Alice Mikityanska
2026-07-23 15:51 ` [PATCH net-next 2/3] virtio-net: Block malformed packets that overflow gso_segs Alice Mikityanska
2026-07-23 16:06   ` Eric Dumazet
2026-07-23 15:51 ` [PATCH net-next 3/3] net: Limit to GSO_MAX_SEGS in skb_gro_receive Alice Mikityanska

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