netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] net/sched: sch_hfsc: safely allow 'rt' inner curves
@ 2023-10-13 15:10 Pedro Tammela
  2023-10-13 15:10 ` [PATCH net 1/2] Revert "net/sched: sch_hfsc: Ensure inner classes have fsc curve" Pedro Tammela
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Pedro Tammela @ 2023-10-13 15:10 UTC (permalink / raw)
  To: netdev
  Cc: jhs, xiyou.wangcong, jiri, davem, edumazet, kuba, pabeni,
	Pedro Tammela

As reported [1] disallowing 'rt' inner curves breaks already existing
scripts. Even though it doesn't make sense 'qdisc wise' users have been
relying on this behaviour since the qdisc inception.

We need users to update the scripts/applications to use 'sc' or 'ls'
as a inner curve instead of 'rt', but also avoid the UAF found by
Budimir, which was present since the qdisc inception.

Instead of raising an error when classes are added with a 'rt' as a
parent, upgrade the 'rt' to an 'sc' on the fly, avoiding the UAF, and set
a warning for the user. Hopefully the warning laso triggers users to update
their scripts/applications.

[1] https://lore.kernel.org/all/297D84E3-736E-4AB4-B825-264279E2043C@flyingcircus.io/

Pedro Tammela (2):
  Revert "net/sched: sch_hfsc: Ensure inner classes have fsc curve"
  net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner
    curve

 net/sched/sch_hfsc.c | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-10-17  1:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13 15:10 [PATCH net 0/2] net/sched: sch_hfsc: safely allow 'rt' inner curves Pedro Tammela
2023-10-13 15:10 ` [PATCH net 1/2] Revert "net/sched: sch_hfsc: Ensure inner classes have fsc curve" Pedro Tammela
2023-10-13 15:10 ` [PATCH net 2/2] net/sched: sch_hfsc: upgrade 'rt' to 'sc' when it becomes a inner curve Pedro Tammela
2023-10-17  1:17   ` Jakub Kicinski
2023-10-16  9:48 ` [PATCH net 0/2] net/sched: sch_hfsc: safely allow 'rt' inner curves Jamal Hadi Salim
2023-10-16  9:50   ` Christian Theune

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