public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC Patch net-next 0/2] net_sched: Move GSO segmentation to root qdisc
@ 2025-07-01 23:29 Cong Wang
  2025-07-01 23:29 ` [RFC Patch net-next 1/2] " Cong Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Cong Wang @ 2025-07-01 23:29 UTC (permalink / raw)
  To: netdev; +Cc: jhs, jiri, mincho, victor, Cong Wang

This patchset attempts to move the GSO segmentation in Qdisc layer from
child qdisc up to root qdisc. It fixes the complex handling of GSO
segmentation logic and unifies the code in a generic way. The end result
is cleaner (see the patch stat) and hopefully keeps the original logic
of handling GSO.

This is an architectural change, hence I am sending it as an RFC. Please
check each patch description for more details. Also note that although
this patchset alone could fix the UAF reported by Mingi, the original
UAF can also be fixed by Lion's patch [1], so this patchset is just an
improvement for handling GSO segmentation.

TODO: Add some selftests.

1. https://lore.kernel.org/netdev/d912cbd7-193b-4269-9857-525bee8bbb6a@gmail.com/

---
Cong Wang (2):
  net_sched: Move GSO segmentation to root qdisc
  net_sched: Propagate per-qdisc max_segment_size for GSO segmentation

 include/net/sch_generic.h |  4 +-
 net/core/dev.c            | 52 +++++++++++++++++++---
 net/sched/sch_api.c       | 14 ++++++
 net/sched/sch_cake.c      | 93 +++++++++++++--------------------------
 net/sched/sch_netem.c     | 32 +-------------
 net/sched/sch_taprio.c    | 76 +++++++-------------------------
 net/sched/sch_tbf.c       | 59 +++++--------------------
 7 files changed, 123 insertions(+), 207 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2026-03-26 10:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-01 23:29 [RFC Patch net-next 0/2] net_sched: Move GSO segmentation to root qdisc Cong Wang
2025-07-01 23:29 ` [RFC Patch net-next 1/2] " Cong Wang
2025-07-01 23:29 ` [RFC Patch net-next 2/2] net_sched: Propagate per-qdisc max_segment_size for GSO segmentation Cong Wang
2026-03-12 16:57 ` [RFC Patch net-next 0/2] net_sched: Move GSO segmentation to root qdisc Mingi Cho
2026-03-12 19:55   ` Cong Wang
2026-03-12 20:21   ` Jamal Hadi Salim
2026-03-13 13:38     ` Mingi Cho
2026-03-13 19:23       ` Jamal Hadi Salim
2026-03-26 10:29         ` Mingi Cho

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