| To: | linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
|---|---|
| Subject: | tc stack overflow |
| From: | Thomas Heinz <creatix@xxxxxxxxx> |
| Date: | Sun, 06 Jul 2003 00:21:40 +0200 |
| Reply-to: | Thomas Heinz <creatix@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 |
Hi
Have you already crashed your kernel today? No? Well, try this one:
# tc qdisc add dev eth0 root handle 1: prio \
for i in `seq 500` ; do tc qdisc add dev eth0 \
parent $i:1 handle `expr $i + 1`: prio ; done ; \
ping 1.2.3.4
[replace eth0 by a device of your choice]
I think some of you are aware of the problem but strangely I didn't
find any mention on linux-kernel or linux-netdev or lartc.
The problem is that the depth of the classification tree is not limited
in any way and since for every qdisc the corresponding enqueue function
is called we have a stack overflow here.
IMO the problem could be fixed by adding a depth parameter to the
enqueue function. This way the function can decide whether it is save
to go deeper down the tree (maybe subject to a global policy).
So, what do you think about the issue? Do you care?
Regards,
Thomas
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH - RFC] [1/5] 64-bit network statistics - generic net, Ben Greear |
|---|---|
| Next by Date: | Re: [PATCH - RFC] [1/5] 64-bit network statistics - generic net, Francois Romieu |
| Previous by Thread: | [PATCH] 2.5.70 - display bootserver in /proc/net/pnp (net/ipv4/ipconfig.c) (fwd), James Morris |
| Next by Thread: | Re: [BUG]: problem when shutting down ppp connection since 2.5.70, Paul Rolland |
| Indexes: | [Date] [Thread] [Top] [All Lists] |