stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5.4.y 0/6] Backport few sch_sfq fixes
@ 2025-07-17 12:45 Harshit Mogalapalli
  2025-07-17 12:45 ` [PATCH 5.4.y 1/6] net_sched: sch_sfq: annotate data-races around q->perturb_period Harshit Mogalapalli
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Harshit Mogalapalli @ 2025-07-17 12:45 UTC (permalink / raw)
  To: stable; +Cc: edumazet, tavip, Harshit Mogalapalli

commit: 10685681bafc ("net_sched: sch_sfq: don't allow 1 packet limit")
fixes CVE-2024-57996 and commit: b3bf8f63e617 ("net_sched: sch_sfq: move
the limit validation") fixes CVE-2025-37752 and commit: 7ca52541c05c
("net_sched: sch_sfq: reject invalid perturb period") fixes
CVE-2025-38193.

Patches 3, 5, 6 are CVE fixes for above mentioned CVEs. Patch 1,2 and 4
are pulled in as stable-deps.

Testing performed on the patched 5.4.295 kernel with the above 5
patches: (Used latest upstream kselftests for tc-testing)

$ uname -a
Linux hamogala-kdevoci8-1 5.4.295-master.20250717.el8.rc2.x86_64 #1 SMP Thu Jul 17 00:57:21 PDT 2025 x86_64 x86_64 x86_64 GNU/Linux
$ python3.12 ./tdc.py -f tc-tests/qdiscs/sfq.json
 -- ns/SubPlugin.__init__
Test 7482: Create SFQ with default setting
Test c186: Create SFQ with limit setting
Test ae23: Create SFQ with perturb setting
Test a430: Create SFQ with quantum setting
Test 4539: Create SFQ with divisor setting
Test b089: Create SFQ with flows setting
Test 99a0: Create SFQ with depth setting
Test 7389: Create SFQ with headdrop setting
Test 6472: Create SFQ with redflowlimit setting
Test 8929: Show SFQ class
Test 4d6f: Check that limit of 1 is rejected
Test 7f8f: Check that a derived limit of 1 is rejected (limit 2 depth 1 flows 1)
Test 5168: Check that a derived limit of 1 is rejected (limit 2 depth 1 divisor 1)

All test results: 

1..13
ok 1 7482 - Create SFQ with default setting
ok 2 c186 - Create SFQ with limit setting
ok 3 ae23 - Create SFQ with perturb setting
ok 4 a430 - Create SFQ with quantum setting
ok 5 4539 - Create SFQ with divisor setting
ok 6 b089 - Create SFQ with flows setting
ok 7 99a0 - Create SFQ with depth setting
ok 8 7389 - Create SFQ with headdrop setting
ok 9 6472 - Create SFQ with redflowlimit setting
ok 10 8929 - Show SFQ class
ok 11 4d6f - Check that limit of 1 is rejected
ok 12 7f8f - Check that a derived limit of 1 is rejected (limit 2 depth 1 flows 1)
ok 13 5168 - Check that a derived limit of 1 is rejected (limit 2 depth 1 divisor 1)

Thanks,
Harshit


Eric Dumazet (3):
  net_sched: sch_sfq: annotate data-races around q->perturb_period
  net_sched: sch_sfq: handle bigger packets
  net_sched: sch_sfq: reject invalid perturb period

Octavian Purdila (3):
  net_sched: sch_sfq: don't allow 1 packet limit
  net_sched: sch_sfq: use a temporary work area for validating
    configuration
  net_sched: sch_sfq: move the limit validation

 net/sched/sch_sfq.c | 114 +++++++++++++++++++++++++++++---------------
 1 file changed, 75 insertions(+), 39 deletions(-)

-- 
2.47.1


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

end of thread, other threads:[~2025-07-18  1:34 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-17 12:45 [PATCH 5.4.y 0/6] Backport few sch_sfq fixes Harshit Mogalapalli
2025-07-17 12:45 ` [PATCH 5.4.y 1/6] net_sched: sch_sfq: annotate data-races around q->perturb_period Harshit Mogalapalli
2025-07-18  1:34   ` Sasha Levin
2025-07-17 12:45 ` [PATCH 5.4.y 2/6] net_sched: sch_sfq: handle bigger packets Harshit Mogalapalli
2025-07-18  1:34   ` Sasha Levin
2025-07-17 12:45 ` [PATCH 5.4.y 3/6] net_sched: sch_sfq: don't allow 1 packet limit Harshit Mogalapalli
2025-07-18  1:34   ` Sasha Levin
2025-07-17 12:45 ` [PATCH 5.4.y 4/6] net_sched: sch_sfq: use a temporary work area for validating configuration Harshit Mogalapalli
2025-07-18  1:34   ` Sasha Levin
2025-07-17 12:45 ` [PATCH 5.4.y 5/6] net_sched: sch_sfq: move the limit validation Harshit Mogalapalli
2025-07-18  1:34   ` Sasha Levin
2025-07-17 12:45 ` [PATCH 5.4.y 6/6] net_sched: sch_sfq: reject invalid perturb period Harshit Mogalapalli
2025-07-18  1:34   ` Sasha Levin

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