serious problem with 2.4.24 combined with KVM switch (fwd)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): 1075825496.23902.9.camel@tammuz
Quoted 6 lines · Oliver Kurth
Hi Harald,
Quoted 2 lines
Quoted 2 lines
We are having a problem with 2.4.24 on cyclades germany, the box (firewall) is crashing in the netfilter code.
Anything new about that problem? Do you need more information?
sorry, I lost that issue because I'm extremely overloaded at the moment.
It seems like it crashes in the following piece of code (from ip_conntrack_core.c)
/* If the expectation is dying, then this is a looser. */
if (expected
&& expected->expectant->helper->timeout
&& !del_timer(&expected->timeout))
expected = NULL;To be more precise, it cannot dereference helper->timeout, since helper is NULL. I am extremely puzzled how you would end up with a conntrack expectation (which can only be caused by a helper) that has not assigned a helper.
Could you please tell me, which conntrack and/or NAT helpers you were using on that machine?
We haven't had something like this before.
As a workaround, you could add an additional check into that piece of code. At least it won't oops anymore, although it is still unclear how you end up with this kind of situation.
if (expected
&& expected->expectant->helper
&& expected->expectant->helper->timeout
&& !del_timer(&expected->timeout))
expected = NULL;Quoted 2 lines
Greetings,
Oliver
Signature · 3 lines
- Harald Welte <[email protected]> http://www.gnumonks.org/ ============================================================================ Programming is like sex: One mistake and you have to support it your lifetime
Quoted 20 lines · Harald Welte
Quoted 6 lines · Oliver Kurth
Hi Harald,
Quoted 2 lines
Quoted 2 lines
We are having a problem with 2.4.24 on cyclades germany, the box (firewall) is crashing in the netfilter code.
Anything new about that problem? Do you need more information?
sorry, I lost that issue because I'm extremely overloaded at the moment.
It seems like it crashes in the following piece of code (from
ip_conntrack_core.c)/* If the expectation is dying, then this is a looser. */ if (expected && expected->expectant->helper->timeout && !del_timer(&expected->timeout)) expected = NULL;
Quoted 4 lines
To be more precise, it cannot dereference
helper->timeout, since helper is NULL. I am extremely puzzled how you would end up with a conntrack expectation (which can only be caused by a helper) that has not assigned a helper.
I looked over the code, and could not find anything either, but I am not familar with it at all.
Quoted 2 lines
Could you please tell me, which conntrack and/or NAT helpers you were using on that machine?
The problem occurs when:
- a client broadcasts a tftp request, with source IP 192.168.160.255
- server in the same physical network, but logical network 192.168.10.0/24 replies
- the reply is routed through the gateway (which has an alias IP 192.168.160.1 netmask /24 on the same physical network, if this is relevant)
- gateway blocks with REJECT. This message ist still in the logs, but soon after that the kernel panics.
So, if a helper is causing the problem, it is probably the tftp helper. It may also be related to the problem that the client IP is ending with .255, which is the broadcast address for the gateway on that network.
I can send the firewall rules to you in a private mail, if you need it.
This is an ecxcerpt of .config:
#
# IP: Netfilter Configuration
#CONFIG_IP_NF_CONNTRACK=yCONFIG_IP_NF_FTP=yCONFIG_IP_NF_AMANDA=yCONFIG_IP_NF_TFTP=yCONFIG_IP_NF_IRC=y
# CONFIG_IP_NF_QUEUE is not setCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_LIMIT=yCONFIG_IP_NF_MATCH_MAC=yCONFIG_IP_NF_MATCH_PKTTYPE=yCONFIG_IP_NF_MATCH_MARK=yCONFIG_IP_NF_MATCH_MULTIPORT=yCONFIG_IP_NF_MATCH_TOS=yCONFIG_IP_NF_MATCH_RECENT=yCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_DSCP=yCONFIG_IP_NF_MATCH_AH_ESP=yCONFIG_IP_NF_MATCH_LENGTH=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_MATCH_TCPMSS=yCONFIG_IP_NF_MATCH_HELPER=yCONFIG_IP_NF_MATCH_STATE=yCONFIG_IP_NF_MATCH_CONNTRACK=y
# CONFIG_IP_NF_MATCH_UNCLEAN is not set
# CONFIG_IP_NF_MATCH_OWNER is not setCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=y
# CONFIG_IP_NF_TARGET_MIRROR is not setCONFIG_IP_NF_NAT=yCONFIG_IP_NF_NAT_NEEDED=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_NAT_AMANDA=y
# CONFIG_IP_NF_NAT_LOCAL is not set
# CONFIG_IP_NF_NAT_SNMP_BASIC is not setCONFIG_IP_NF_NAT_IRC=yCONFIG_IP_NF_NAT_FTP=yCONFIG_IP_NF_NAT_TFTP=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_TOS=yCONFIG_IP_NF_TARGET_ECN=yCONFIG_IP_NF_TARGET_DSCP=yCONFIG_IP_NF_TARGET_MARK=yCONFIG_IP_NF_TARGET_LOG=yCONFIG_IP_NF_TARGET_ULOG=yCONFIG_IP_NF_TARGET_TCPMSS=y
# CONFIG_IP_NF_ARPTABLES is not set
Quoted 11 lines
We haven't had something like this before.
As a workaround, you could add an additional check into that piece of code. At least it won't oops anymore, although it is still unclear how you end up with this kind of situation.
if (expected
&& expected->expectant->helper && expected->expectant->helper->timeout && !del_timer(&expected->timeout)) expected = NULL;
Greetings,
Oliver
Signature · 4 lines
Cyclades GmbH - Everywhere with Linux Oliver Kurth Cyclades GmbH Research & Development Rennweg 33 Fon/Fax: +49 (0) 8122 90999-34/-33 D-85435 Erding
Quoted 21 lines · Oliver Kurth
Quoted 20 lines · Harald Welte
Quoted 6 lines · Oliver Kurth
Hi Harald,
Quoted 2 lines
Quoted 2 lines
We are having a problem with 2.4.24 on cyclades germany, the box (firewall) is crashing in the netfilter code.
Anything new about that problem? Do you need more information?
sorry, I lost that issue because I'm extremely overloaded at the moment.
It seems like it crashes in the following piece of code (from
ip_conntrack_core.c)/* If the expectation is dying, then this is a looser. */ if (expected && expected->expectant->helper->timeout && !del_timer(&expected->timeout)) expected = NULL;
Quoted 4 lines
Quoted 4 lines
To be more precise, it cannot dereference
helper->timeout, since helper is NULL. I am extremely puzzled how you would end up with a conntrack expectation (which can only be caused by a helper) that has not assigned a helper.
I've encountered the same oops back in September 2003, you might be interested in the information I posted back then:
http://lists.netfilter.org/pipermail/netfilter-devel/2003-September/012590.html
It must be some kind of race condition, but I could not figure out what it could be.
Signature · 2 lines
Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1