mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 15:24:02 -04:00
the patch that fixed an endless loop in_fq_pie_init() was not considering that 65535 is a valid class id. The correct bugfix for this infinite loop is to change 'idx' to become an u32, like Colin proposed in the past [1]. Fix this as follows: - restore 65536 as maximum possible values of 'flows_cnt' - use u32 'idx' when iterating on 'q->flows' - fix the TDC selftest This reverts commitbb2f930d6d. [1] https://lore.kernel.org/netdev/20210407163808.499027-1-colin.king@canonical.com/ CC: Colin Ian King <colin.king@canonical.com> CC: stable@vger.kernel.org Fixes:bb2f930d6d("net/sched: fix infinite loop in sch_fq_pie") Fixes:ec97ecf1eb("net: sched: add Flow Queue PIE packet scheduler") Signed-off-by: Davide Caratti <dcaratti@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
22 lines
610 B
JSON
22 lines
610 B
JSON
[
|
|
{
|
|
"id": "83be",
|
|
"name": "Create FQ-PIE with invalid number of flows",
|
|
"category": [
|
|
"qdisc",
|
|
"fq_pie"
|
|
],
|
|
"setup": [
|
|
"$IP link add dev $DUMMY type dummy || /bin/true"
|
|
],
|
|
"cmdUnderTest": "$TC qdisc add dev $DUMMY handle 1: root fq_pie flows 65536",
|
|
"expExitCode": "0",
|
|
"verifyCmd": "$TC qdisc show dev $DUMMY",
|
|
"matchPattern": "qdisc fq_pie 1: root refcnt 2 limit 10240p flows 65536",
|
|
"matchCount": "1",
|
|
"teardown": [
|
|
"$IP link del dev $DUMMY"
|
|
]
|
|
}
|
|
]
|