Re: [PATCH/RFC] Reduce call chain length in netfilter (was: Re: do_IRQ: stack overflow: 872..)

From
Martin Josefsson <hidden>
Date
2005-01-23 16:08:29
Also in
bridge
Reply to
Bart De Schuymer, 2005-01-23
On Sun, 2005-01-23 at 13:40 +0100, Bart De Schuymer wrote:
Hi Martin,
Hi Bart
quoted
I guess you never testcompiled with CONFIG_NETFILTER_DEBUG set :)
Oops, no. I was imagining I could code that without error...
There was another compile error with CONFIG_NETFILTER_DEBUG in the patch
(skb that should have been (*pskb)) :(
:)
quoted
quoted
+			if (verdict > NF_MAX_VERDICT) {
+				NFDEBUG("Evil return from %p(%u).\n",
+				        elem->hook, hook);
+				continue;
+			}
Maybe add unlikely() around the test?
OK. I added another one around another debugging if-statement.
I'm now running a kernel with this patch and everything seems to still
be working.
So unless someone else has something to comment I think this should be
applied.
The decrease in call-depth is important.

-- 
/Martin

Attachments

Thread (30 messages) 30 messages, 9 authors, last reply 2005-01-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help