linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: tc stack overflow
       [not found] <200307081640.UAA28623@th.inr.ac.ru>
@ 2003-07-08 16:47 ` kuznet
  0 siblings, 0 replies; 2+ messages in thread
From: kuznet @ 2003-07-08 16:47 UTC (permalink / raw)
  To: linux-kernel; +Cc: creatix

Hello!

> # 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]

... or replace too complicated script with cp /dev/zero /dev/mem. :-)


> So, what do you think about the issue? Do you care?

I do not. Yes, it is real design mistake, recursion is always evil.
Maybe, it will be remade some day. But until that day it does not matter.

Alexey

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

* tc stack overflow
@ 2003-07-05 22:21 Thomas Heinz
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Heinz @ 2003-07-05 22:21 UTC (permalink / raw)
  To: linux-kernel, netdev

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


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

end of thread, other threads:[~2003-07-08 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200307081640.UAA28623@th.inr.ac.ru>
2003-07-08 16:47 ` tc stack overflow kuznet
2003-07-05 22:21 Thomas Heinz

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