Thread (3 messages) flat view 3 messages, 3 authors, 2012-09-12

Re: [PATCH] net-sched: sch_cbq: avoid infinite loop

From: David Miller <davem@davemloft.net>
Date: 2012-09-12 02:21:36

From: Eric Dumazet <redacted>
Date: Wed, 12 Sep 2012 01:11:12 +0200
From: Eric Dumazet <edumazet@google.com>

Its possible to setup a bad cbq configuration leading to
an infinite loop in cbq_classify()

DEV_OUT=eth0
ICMP="match ip protocol 1 0xff"
U32="protocol ip u32"
DST="match ip dst"
tc qdisc add dev $DEV_OUT root handle 1: cbq avpkt 1000 \
	bandwidth 100mbit
tc class add dev $DEV_OUT parent 1: classid 1:1 cbq \
	rate 512kbit allot 1500 prio 5 bounded isolated
tc filter add dev $DEV_OUT parent 1: prio 3 $U32 \
	$ICMP $DST 192.168.3.234 flowid 1:

Reported-by: Denys Fedoryschenko <redacted>
Tested-by: Denys Fedoryschenko <redacted>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Applied and queued up for -stable, thanks Eric.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help