Eric Dumazet
93f54354cc
fq_codel: reject silly quantum parameters
...
[ Upstream commit c7c5e6ff533fe1f9afef7d2fa46678987a1335a7 ]
syzbot found that forcing a big quantum attribute would crash hosts fast,
essentially using this:
tc qd replace dev eth0 root fq_codel quantum 4294967295
This is because fq_codel_dequeue() would have to loop
~2^31 times in :
if (flow->deficit <= 0) {
flow->deficit += q->quantum;
list_move_tail(&flow->flowchain, &q->old_flows);
goto begin;
}
SFQ max quantum is 2^19 (half a megabyte)
Lets adopt a max quantum of one megabyte for FQ_CODEL.
Fixes: 4b549a2ef4 ("fq_codel: Fair Queue Codel AQM")
Signed-off-by: Eric Dumazet <[email protected] >
Reported-by: syzbot <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2021-09-22 12:26:45 +02:00
..
act_api.c
net_sched: check error pointer in tcf_dump_walker()
2021-08-04 12:27:37 +02:00
act_bpf.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_connmark.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_csum.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_ct.c
net/sched: act_ct: fix err check for nf_conntrack_confirm
2021-07-25 14:35:14 +02:00
act_ctinfo.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_gact.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_ife.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_ipt.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_meta_mark.c
act_meta_skbprio.c
act_meta_skbtcindex.c
act_mirred.c
net: sched: act_mirred: Reset ct info when mirror/redirect skb
2021-08-18 08:56:59 +02:00
act_mpls.c
net/sched: act_mpls: ensure LSE is pullable before reading it
2020-12-08 10:40:27 +01:00
act_nat.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_pedit.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_police.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_sample.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_simple.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_skbedit.c
net_sched: defer tcf_idr_insert() in tcf_action_init_1()
2020-10-14 10:33:06 +02:00
act_skbmod.c
net/sched: act_skbmod: Skip non-Ethernet packets
2021-07-28 13:30:57 +02:00
act_tunnel_key.c
net/sched: act_tunnel_key: fix OOB write in case of IPv6 ERSPAN tunnels
2020-10-29 09:57:26 +01:00
act_vlan.c
net/sched: act_vlan: Fix modify to allow 0
2021-07-14 16:53:27 +02:00
cls_api.c
net: sched: cls_api: Fix the the wrong parameter
2021-07-28 13:30:58 +02:00
cls_basic.c
cls_bpf.c
cls_cgroup.c
cls_flow.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
cls_flower.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
cls_fw.c
cls_matchall.c
cls_route.c
cls_rsvp.c
cls_rsvp.h
cls_rsvp6.c
cls_tcindex.c
net: sched: fix memory leak in tcindex_partial_destroy_work
2021-07-28 13:30:56 +02:00
cls_u32.c
em_canid.c
em_cmp.c
em_ipset.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
em_ipt.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
em_meta.c
sched: consistently handle layer3 header accesses in the presence of VLANs
2020-07-22 09:32:48 +02:00
em_nbyte.c
em_text.c
em_u32.c
ematch.c
Kconfig
Makefile
sch_api.c
net: sched: avoid duplicates in classes dump
2021-03-17 17:03:35 +01:00
sch_atm.c
net_sched: fix a memory leak in atm_tc_init()
2020-07-22 09:32:48 +02:00
sch_blackhole.c
sch_cake.c
sch_cake: Fix out of bounds when parsing TCP options and header
2021-06-23 14:41:25 +02:00
sch_cbq.c
net: sched: Fix qdisc_rate_table refcount leak when get tcf_block failed
2021-09-15 09:47:38 +02:00
sch_cbs.c
sch_choke.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_codel.c
sch_drr.c
sch_dsmark.c
sch_dsmark: fix a NULL deref in qdisc_reset()
2021-06-03 08:59:15 +02:00
sch_etf.c
sch_fifo.c
sch_fq.c
sch_fq_codel.c
fq_codel: reject silly quantum parameters
2021-09-22 12:26:45 +02:00
sch_generic.c
net: sched: fix tx action reschedule issue with stopped queue
2021-06-03 08:59:13 +02:00
sch_gred.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_hfsc.c
sch_hhf.c
sch_htb.c
sch_ingress.c
sch_mq.c
sch_mqprio.c
sch_multiq.c
sch_netem.c
netem: fix zero division in tabledist
2020-11-01 12:01:03 +01:00
sch_pie.c
sch_plug.c
sch_prio.c
sch_qfq.c
pkt_sched: sch_qfq: fix qfq_change_class() error path
2021-07-14 16:53:31 +02:00
sch_red.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_sfb.c
sch_sfq.c
net: sched: validate stab values
2021-03-30 14:35:25 +02:00
sch_skbprio.c
sch_taprio.c
fix array-index-out-of-bounds in taprio_change
2021-09-22 12:26:36 +02:00
sch_tbf.c
sch_teql.c
net: sched: sch_teql: fix null-pointer dereference
2021-04-14 08:24:12 +02:00