All of lore.kernel.org
 help / color / mirror / Atom feed
* More on LIST_DELETE message with kernels 2.4.23 through 2.4.25
@ 2004-03-11 16:04 Jonathan Cooper
  2004-03-11 16:50 ` Jonathan Cooper
  2004-03-11 17:26 ` Jozsef Kadlecsik
  0 siblings, 2 replies; 24+ messages in thread
From: Jonathan Cooper @ 2004-03-11 16:04 UTC (permalink / raw)
  To: netfilter-devel

Specifically, the message:

kernel: LIST_DELETE: ip_conntrack_core.c:302
&ct->tuplehash[IP_CT_DIR_REPLY]'(d40acea4) not in ip_conntrack_hash[hr].

From doing a bit of googling it appears this problem has been around for
some time; hopefully my situation will help you track it down.

The machine exhibiting the problem has 2 network cards: an nForce2 card
(eth1) on the motherboard (connected to external network) and a sis900
(eth0) which is connected via crossover cable to another computer. This
connection is masqueraded.

It would appear that trying to access the machine via the masqueraded
interface leads to the message being produced after a delay of perhaps 2
minutes. Certainly this is the case when trying to access a webserver or
webcache on the machine directly via that interface. The connection times
out and shortly afterwards the message appears in syslog. DHCP & ICMP
appear to work OK. Also interestingly you will note from the iptables -L
output shown below that I have squid set up as a transparent proxy for
the masqueraded network using a redirect rule in the prerouting chain -
the computer that is being masqueraded can access webpages from the
outside world, so the redirect seems to avoid the problem.

Under the 2.4.23 and 2.4.24 kernels my machine would oops on reboot (just
after killing syslog) after the message had occurred. This has not (yet)
happened on 2.4.25. One common feature, that has occurred once under
2.4.23 and once under 2.4.25 is that after several occurrences of this
message the computer froze solid, with no keyboard, mouse or network
response.

I have experienced no problems of this nature with Debian's 2.4.22
kernel.

Experiments I have performed so far include:

* Delete the MASQUERADE rule. Same problem, although have not yet tried
this fresh after a reboot.

* Add an ACCEPT rule to the top of the FORWARD chain. Same problem. Have
tried this fresh after a reboot.

* Flush the FORWARD chain. Same problem, although have not yet tried
this fresh after a reboot.


(Under 2.4.25 I did notice that one failed connection appeared to be
producing multiple LIST_DELETE messages. However I did have the http
connection in question going through a local squid, so it could be that
that was making multiple tries to fetch the page. Stopping proxying for
local addresses appears to have returned us to the previously noted
behaviour.)


Excepts from my iptables configuration:
# iptables -L -n
[snip]
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
LOG        all  --  0.0.0.0/0            0.0.0.0/0           state
  INVALID LOG flags 0 level 4 prefix 'invalid-state: '
DROP       all  --  0.0.0.0/0            0.0.0.0/0           state
  INVALID
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           state
  RELATED,ESTABLISHED
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:6112
good-bad   all  --  192.168.1.0/24       0.0.0.0/0
good-vpn   all  --  192.168.1.0/24       0.0.0.0/0
vpn-good   all  --  0.0.0.0/0            0.0.0.0/0
bad-good   all  --  0.0.0.0/0            0.0.0.0/0
DROP       all  --  192.168.168.0/24     0.0.0.0/0
LOG        all  --  0.0.0.0/0            0.0.0.0/0           LOG flags 0
  level 4 prefix 'chain-jump: '
DROP       all  --  0.0.0.0/0            0.0.0.0/0
[snip]

# iptables -t nat -L -n
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination
REDIRECT   tcp  --  192.168.1.0/24       0.0.0.0/0           tcp dpt:80
  redir ports 8080
DNAT       udp  --  0.0.0.0/0            0.0.0.0/0           udp dpt:6112
  to:192.168.1.2:6112

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination
MASQUERADE  all  --  192.168.1.0/24       0.0.0.0/0

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

(The DNAT rule is to allow the other computer to create StarCraft games
on Battle.net.)


Output from scripts/ver_linux:
Linux finarfin 2.4.25 #1 Wed Mar 10 12:32:06 GMT 2004 i686 GNU/Linux

Gnu C                  3.3.3
Gnu make               3.80
binutils               2.14.90.0.7
util-linux             2.12
mount                  2.12
modutils               2.4.26
e2fsprogs              1.35-WIP
PPP                    2.4.2
Linux C Library        2.3.2
Dynamic linker (ldd)   2.3.2
Procps                 3.2.0
Net-tools              1.60
Console-tools          0.2.3
Sh-utils               5.0.91
Modules Loaded         nvidia parport_pc lp parport apm snd-seq-oss
snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-intel8x0 snd-pcm
snd-timer snd-ac97-codec snd-page-alloc snd-mpu401-uart snd-rawmidi
snd-seq-device snd soundcore ipt_limit ipt_REJECT ipt_MASQUERADE
ipt_REDIRECT ipt_LOG ipt_state iptable_nat ip_conntrack iptable_filter
ip_tables nls_cp437 vfat fat nls_iso8859-1 ntfs forcedeth ide-scsi
scsi_mod ide-cd cdrom keybdev input usb-ohci usbcore rtc


My 2.4.25 kernel config is at <http://jonc.me.uk/stuff/config-2.4.25>

Let me know if there's any other information you want, or any tests that
you would like me to run.

Jonathan.

-- 
Jonathan Cooper        MSN: msn@jonc.me.uk        jonc.me.uk/

Spotted at the railway station:
  Passengers are asked not to cross the lines - it takes ages for us to
  uncross them again.

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: More on LIST_DELETE message with kernels 2.4.23 through 2.4.25
@ 2004-04-01  3:10 wanghtb
  2004-04-01 20:52 ` Henrik Nordstrom
  0 siblings, 1 reply; 24+ messages in thread
From: wanghtb @ 2004-04-01  3:10 UTC (permalink / raw)
  To: netfilter-devel

And I think the compiling direction 
 "#ifndef CONFIG_IP_NF_NAT_LOCAL"
maybe not need, since in any situation, we should not 
use ip_conntrack_reply() to change a confirmed ct, which 
will make ct's hash value changed,  and make LIST_DELETE() dump a 
warning: this entry is not in the correct bucket list :-)

>  I think the patch is buggy. The check should be
>
> if (!(info->initialized & (1 << maniptype))
>    && !(ct->status & IPS_CONFIRMED))
>
>instead of
>
>  if (!(info->initialized & (1 << maniptype))
>      && ct->status & IPS_CONFIRMED)
>
>  Fixed patch attached. I've tested it on my UML testbed with stock
> 2.4.24, and seems to solve the problem.
>
> -- 
> Regards,
>   Krisztian KOVACS
>
>--=-+pqSK1ygFZXfde1OZN5T
>Content-Disposition: attachment; filename=renat_confirmed.patch
>Content-Type: text/plain; name=renat_confirmed.patch; charset=iso-8859-2
>Content-Transfer-Encoding: 7bit
>
>--- ip_nat_standalone.c.orig            Fri Nov 28 19:26:21 2003
>+++ ip_nat_standalone.c                 Thu Mar 25 16:43:29 2004
>@@ -114,7 +114,16 @@
>                                WRITE_LOCK(&ip_nat_lock);
>                                /* Seen it before?  This can happen for 
loopback, retrans,
>                                   or local packets.. */
>-                               if (!(info->initialized & (1 << 
maniptype))) {
>+                               if (!(info->initialized & (1 << 
maniptype))
>+#ifndef CONFIG_IP_NF_NAT_LOCAL
>+                                   /* If this session has already been 
confirmed we must not
>+                                    * touch it again even if there is no 
mapping set up.
>+                                    * Can only happen on local->local 
traffic with
>+                                    * CONFIG_IP_NF_NAT_LOCAL disabled.
>+                                    */
>+                                   && !(ct->status & IPS_CONFIRMED)
>+#endif
>+                                   ) {
>                                                unsigned int ret;
> 
>                                                if (ct->master
>
>--=-+pqSK1ygFZXfde1OZN5T--

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

end of thread, other threads:[~2004-04-01 20:52 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-11 16:04 More on LIST_DELETE message with kernels 2.4.23 through 2.4.25 Jonathan Cooper
2004-03-11 16:50 ` Jonathan Cooper
2004-03-11 21:17   ` Kovacs Krisztian
2004-03-12 11:39     ` Jonathan Cooper
2004-03-12 13:06     ` KOVACS Krisztian
2004-03-12 13:30       ` Jozsef Kadlecsik
2004-03-16 17:28         ` KOVACS Krisztian
2004-03-17  9:38           ` Vijaya Chandra Vupputuri
2004-03-17 10:51             ` Henrik Nordstrom
2004-03-17 11:16             ` KOVACS Krisztian
2004-03-17 11:48               ` KOVACS Krisztian
2004-03-17 13:04                 ` Henrik Nordstrom
2004-03-17 13:37                   ` KOVACS Krisztian
2004-03-17 16:35                     ` Henrik Nordstrom
2004-03-25 16:12                       ` KOVACS Krisztian
2004-03-25 17:40                         ` Henrik Nordstrom
2004-03-17 11:49               ` Vijaya Chandra Vupputuri
2004-03-11 17:26 ` Jozsef Kadlecsik
2004-03-11 19:33   ` Jonathan Cooper
2004-03-12  7:16     ` Jozsef Kadlecsik
2004-03-12  7:26       ` Henrik Nordstrom
2004-03-12 10:58       ` Jonathan Cooper
  -- strict thread matches above, loose matches on Subject: below --
2004-04-01  3:10 wanghtb
2004-04-01 20:52 ` Henrik Nordstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.