* Last night Linus bk - netfilter busted?
@ 2005-03-11 7:23 Dmitry Torokhov
2005-03-11 14:00 ` Patrick McHardy
0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Torokhov @ 2005-03-11 7:23 UTC (permalink / raw)
To: netdev; +Cc: LKML
Hi,
My box gets stuck while booting (actually starting ntpd) whith tonight
pull from Linus. It looks like it is spinning in ipt_do_table when I do
SysRq-P. No call trace though.
Anyone else seeing it? Any ideas?
--
Dmitry
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 7:23 Last night Linus bk - netfilter busted? Dmitry Torokhov
@ 2005-03-11 14:00 ` Patrick McHardy
2005-03-11 18:51 ` David S. Miller
0 siblings, 1 reply; 9+ messages in thread
From: Patrick McHardy @ 2005-03-11 14:00 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: netdev, LKML, Netfilter Development Mailinglist
Dmitry Torokhov wrote:
> My box gets stuck while booting (actually starting ntpd) whith tonight
> pull from Linus. It looks like it is spinning in ipt_do_table when I do
> SysRq-P. No call trace though.
Please post your ruleset and .config. A backtrace would also be
useful.
> Anyone else seeing it? Any ideas?
Works fine here. You could try if reverting one of these two patches
helps (second one only if its a SMP box).
ChangeSet@1.2010, 2005-03-09 20:28:17-08:00, bdschuym@pandora.be
[NETFILTER]: Reduce call chain length in netfilter (take 2)
ChangeSet@1.1982.114.20, 2005-03-03 23:15:48+01:00, ak@suse.de
[NETFILTER]: Reduce netfilter memory use on MP systems
Regards
Patrick
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 14:00 ` Patrick McHardy
@ 2005-03-11 18:51 ` David S. Miller
2005-03-11 18:56 ` Dmitry Torokhov
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: David S. Miller @ 2005-03-11 18:51 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netdev, dtor_core, netfilter-devel, linux-kernel
On Fri, 11 Mar 2005 15:00:56 +0100
Patrick McHardy <kaber@trash.net> wrote:
> Works fine here. You could try if reverting one of these two patches
> helps (second one only if its a SMP box).
>
> ChangeSet@1.2010, 2005-03-09 20:28:17-08:00, bdschuym@pandora.be
> [NETFILTER]: Reduce call chain length in netfilter (take 2)
It's this change, I know it is, because Linus sees the same problem
on his workstation.
You wouldn't happen to be seeing this problem on a PPC box would
you? Since Linus's machine is a PPC machine too, that would support
my theory that this could be a compiler issue on that platform.
Damn, wait, Patrick, I think I know what's happening. The iptables
IPT_* verdicts are dependant upon the NF_* values, and they don't
cope with Bart's changes I bet. Can you figure out what the exact
error would be? This kind of issue would explain the looping inside
of ipt_do_table(), wouldn't it?
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 18:51 ` David S. Miller
@ 2005-03-11 18:56 ` Dmitry Torokhov
2005-03-11 19:27 ` Sergey Vlasov
2005-03-11 20:49 ` Patrick McHardy
2 siblings, 0 replies; 9+ messages in thread
From: Dmitry Torokhov @ 2005-03-11 18:56 UTC (permalink / raw)
To: David S. Miller; +Cc: Patrick McHardy, netdev, linux-kernel, netfilter-devel
On Friday 11 March 2005 13:51, David S. Miller wrote:
> On Fri, 11 Mar 2005 15:00:56 +0100
> Patrick McHardy <kaber@trash.net> wrote:
>
> > Works fine here. You could try if reverting one of these two patches
> > helps (second one only if its a SMP box).
> >
> > ChangeSet@1.2010, 2005-03-09 20:28:17-08:00, bdschuym@pandora.be
> > [NETFILTER]: Reduce call chain length in netfilter (take 2)
>
> It's this change, I know it is, because Linus sees the same problem
> on his workstation.
>
> You wouldn't happen to be seeing this problem on a PPC box would
> you? Since Linus's machine is a PPC machine too, that would support
> my theory that this could be a compiler issue on that platform.
>
No, it is regular PIII laptop (preempt, UP).
> Damn, wait, Patrick, I think I know what's happening. The iptables
> IPT_* verdicts are dependant upon the NF_* values, and they don't
> cope with Bart's changes I bet. Can you figure out what the exact
> error would be? This kind of issue would explain the looping inside
> of ipt_do_table(), wouldn't it?
>
--
Dmitry
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 18:51 ` David S. Miller
2005-03-11 18:56 ` Dmitry Torokhov
@ 2005-03-11 19:27 ` Sergey Vlasov
2005-03-11 20:49 ` Patrick McHardy
2 siblings, 0 replies; 9+ messages in thread
From: Sergey Vlasov @ 2005-03-11 19:27 UTC (permalink / raw)
To: David S. Miller
Cc: Patrick McHardy, netdev, dtor_core, netfilter-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1307 bytes --]
On Fri, 11 Mar 2005 10:51:36 -0800 David S. Miller wrote:
> On Fri, 11 Mar 2005 15:00:56 +0100
> Patrick McHardy <kaber@trash.net> wrote:
>
> > Works fine here. You could try if reverting one of these two patches
> > helps (second one only if its a SMP box).
> >
> > ChangeSet@1.2010, 2005-03-09 20:28:17-08:00, bdschuym@pandora.be
> > [NETFILTER]: Reduce call chain length in netfilter (take 2)
>
> It's this change, I know it is, because Linus sees the same problem
> on his workstation.
>
> You wouldn't happen to be seeing this problem on a PPC box would
> you? Since Linus's machine is a PPC machine too, that would support
> my theory that this could be a compiler issue on that platform.
>
> Damn, wait, Patrick, I think I know what's happening. The iptables
> IPT_* verdicts are dependant upon the NF_* values, and they don't
> cope with Bart's changes I bet. Can you figure out what the exact
> error would be? This kind of issue would explain the looping inside
> of ipt_do_table(), wouldn't it?
This is not just some buggy code - that patch also breaks interfaces:
include/linux/netfilter_ipv4/ip_tables.h:
#define IPT_RETURN (-NF_MAX_VERDICT - 1)
And this value is visible in userspace. Therefore we cannot modify
NF_MAX_VERDICT without breaking all existing iptables binaries.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 18:51 ` David S. Miller
2005-03-11 18:56 ` Dmitry Torokhov
2005-03-11 19:27 ` Sergey Vlasov
@ 2005-03-11 20:49 ` Patrick McHardy
2005-03-11 21:21 ` Herbert Xu
2 siblings, 1 reply; 9+ messages in thread
From: Patrick McHardy @ 2005-03-11 20:49 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, dtor_core, netfilter-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 561 bytes --]
David S. Miller wrote:
> Damn, wait, Patrick, I think I know what's happening. The iptables
> IPT_* verdicts are dependant upon the NF_* values, and they don't
> cope with Bart's changes I bet. Can you figure out what the exact
> error would be? This kind of issue would explain the looping inside
> of ipt_do_table(), wouldn't it?
You're right, good catch. IPT_RETURN is interpreted internally by
ip_tables, but since the value changed it isn't recognized by ip_tables
anymore and returned to nf_iterate() as NF_REPEAT. This patch restores
the old value.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 1594 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/03/11 21:41:01+01:00 kaber@coreworks.de
# [NETFILTER]: Fix iptables userspace compatibility breakage
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# include/linux/netfilter_ipv6/ip6_tables.h
# 2005/03/11 21:40:52+01:00 kaber@coreworks.de +1 -1
# [NETFILTER]: Fix iptables userspace compatibility breakage
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# include/linux/netfilter_ipv4/ip_tables.h
# 2005/03/11 21:40:52+01:00 kaber@coreworks.de +1 -1
# [NETFILTER]: Fix iptables userspace compatibility breakage
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h
--- a/include/linux/netfilter_ipv4/ip_tables.h 2005-03-11 21:41:32 +01:00
+++ b/include/linux/netfilter_ipv4/ip_tables.h 2005-03-11 21:41:32 +01:00
@@ -166,7 +166,7 @@
#define IPT_CONTINUE 0xFFFFFFFF
/* For standard target */
-#define IPT_RETURN (-NF_MAX_VERDICT - 1)
+#define IPT_RETURN (-NF_REPEAT - 1)
/* TCP matching stuff */
struct ipt_tcp
diff -Nru a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h
--- a/include/linux/netfilter_ipv6/ip6_tables.h 2005-03-11 21:41:32 +01:00
+++ b/include/linux/netfilter_ipv6/ip6_tables.h 2005-03-11 21:41:32 +01:00
@@ -166,7 +166,7 @@
#define IP6T_CONTINUE 0xFFFFFFFF
/* For standard target */
-#define IP6T_RETURN (-NF_MAX_VERDICT - 1)
+#define IP6T_RETURN (-NF_REPEAT - 1)
/* TCP matching stuff */
struct ip6t_tcp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 20:49 ` Patrick McHardy
@ 2005-03-11 21:21 ` Herbert Xu
2005-03-11 22:55 ` Patrick McHardy
0 siblings, 1 reply; 9+ messages in thread
From: Herbert Xu @ 2005-03-11 21:21 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netdev, dtor_core, netfilter-devel, linux-kernel
Patrick McHardy <kaber@trash.net> wrote:
>
> You're right, good catch. IPT_RETURN is interpreted internally by
> ip_tables, but since the value changed it isn't recognized by ip_tables
> anymore and returned to nf_iterate() as NF_REPEAT. This patch restores
> the old value.
Please fix netfilter_arp while you're at it since it does exactly
the same thing.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 21:21 ` Herbert Xu
@ 2005-03-11 22:55 ` Patrick McHardy
2005-03-13 6:54 ` Dmitry Torokhov
0 siblings, 1 reply; 9+ messages in thread
From: Patrick McHardy @ 2005-03-11 22:55 UTC (permalink / raw)
To: Herbert Xu; +Cc: netdev, dtor_core, netfilter-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 418 bytes --]
Herbert Xu wrote:
> Patrick McHardy <kaber@trash.net> wrote:
>
>>You're right, good catch. IPT_RETURN is interpreted internally by
>>ip_tables, but since the value changed it isn't recognized by ip_tables
>>anymore and returned to nf_iterate() as NF_REPEAT. This patch restores
>>the old value.
>
>
> Please fix netfilter_arp while you're at it since it does exactly
> the same thing.
New patch attached, thanks.
[-- Attachment #2: x --]
[-- Type: text/plain, Size: 2287 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2005/03/11 23:54:54+01:00 kaber@coreworks.de
# [NETFILTER]: Fix iptables userspace compatibility breakage
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# include/linux/netfilter_ipv6/ip6_tables.h
# 2005/03/11 23:54:44+01:00 kaber@coreworks.de +1 -1
# [NETFILTER]: Fix iptables userspace compatibility breakage
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# include/linux/netfilter_ipv4/ip_tables.h
# 2005/03/11 23:54:44+01:00 kaber@coreworks.de +1 -1
# [NETFILTER]: Fix iptables userspace compatibility breakage
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# include/linux/netfilter_arp/arp_tables.h
# 2005/03/11 23:54:44+01:00 kaber@coreworks.de +1 -1
# [NETFILTER]: Fix iptables userspace compatibility breakage
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/include/linux/netfilter_arp/arp_tables.h b/include/linux/netfilter_arp/arp_tables.h
--- a/include/linux/netfilter_arp/arp_tables.h 2005-03-11 23:55:09 +01:00
+++ b/include/linux/netfilter_arp/arp_tables.h 2005-03-11 23:55:09 +01:00
@@ -154,7 +154,7 @@
#define ARPT_CONTINUE 0xFFFFFFFF
/* For standard target */
-#define ARPT_RETURN (-NF_MAX_VERDICT - 1)
+#define ARPT_RETURN (-NF_REPEAT - 1)
/* The argument to ARPT_SO_GET_INFO */
struct arpt_getinfo
diff -Nru a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h
--- a/include/linux/netfilter_ipv4/ip_tables.h 2005-03-11 23:55:09 +01:00
+++ b/include/linux/netfilter_ipv4/ip_tables.h 2005-03-11 23:55:09 +01:00
@@ -166,7 +166,7 @@
#define IPT_CONTINUE 0xFFFFFFFF
/* For standard target */
-#define IPT_RETURN (-NF_MAX_VERDICT - 1)
+#define IPT_RETURN (-NF_REPEAT - 1)
/* TCP matching stuff */
struct ipt_tcp
diff -Nru a/include/linux/netfilter_ipv6/ip6_tables.h b/include/linux/netfilter_ipv6/ip6_tables.h
--- a/include/linux/netfilter_ipv6/ip6_tables.h 2005-03-11 23:55:09 +01:00
+++ b/include/linux/netfilter_ipv6/ip6_tables.h 2005-03-11 23:55:09 +01:00
@@ -166,7 +166,7 @@
#define IP6T_CONTINUE 0xFFFFFFFF
/* For standard target */
-#define IP6T_RETURN (-NF_MAX_VERDICT - 1)
+#define IP6T_RETURN (-NF_REPEAT - 1)
/* TCP matching stuff */
struct ip6t_tcp
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Last night Linus bk - netfilter busted?
2005-03-11 22:55 ` Patrick McHardy
@ 2005-03-13 6:54 ` Dmitry Torokhov
0 siblings, 0 replies; 9+ messages in thread
From: Dmitry Torokhov @ 2005-03-13 6:54 UTC (permalink / raw)
To: Patrick McHardy; +Cc: Herbert Xu, davem, netdev, linux-kernel, netfilter-devel
On Friday 11 March 2005 17:55, Patrick McHardy wrote:
> Herbert Xu wrote:
> > Patrick McHardy <kaber@trash.net> wrote:
> >
> >>You're right, good catch. IPT_RETURN is interpreted internally by
> >>ip_tables, but since the value changed it isn't recognized by ip_tables
> >>anymore and returned to nf_iterate() as NF_REPEAT. This patch restores
> >>the old value.
> >
> >
> > Please fix netfilter_arp while you're at it since it does exactly
> > the same thing.
>
> New patch attached, thanks.
>
If this is of any interest, yesterday's pull from Linux plus this patch
seem to be working fine here.
Thank you.
--
Dmitry
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2005-03-13 6:54 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-11 7:23 Last night Linus bk - netfilter busted? Dmitry Torokhov
2005-03-11 14:00 ` Patrick McHardy
2005-03-11 18:51 ` David S. Miller
2005-03-11 18:56 ` Dmitry Torokhov
2005-03-11 19:27 ` Sergey Vlasov
2005-03-11 20:49 ` Patrick McHardy
2005-03-11 21:21 ` Herbert Xu
2005-03-11 22:55 ` Patrick McHardy
2005-03-13 6:54 ` Dmitry Torokhov
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).