From: Oliver Kurth Subject: Re: [Cybr.rdsw] [Cy.rdsw] serious problem with 2.4.24 combined with KVM switch (fwd) Date: Wed, 04 Feb 2004 15:05:53 +0100 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <1075903552.8033.17.camel@tammuz> References: <20040127124259.GP11761@sunbeam.de.gnumonks.org> <1075825496.23902.9.camel@tammuz> <20040203220020.GC25175@obroa-skai.de.gnumonks.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-WQGNwv2iTYj0DZJsuMtP" Cc: Marcelo Tosatti , Andreas Stempfhuber , Netfilter Development Mailinglist Return-path: To: Harald Welte In-Reply-To: <20040203220020.GC25175@obroa-skai.de.gnumonks.org> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org --=-WQGNwv2iTYj0DZJsuMtP Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 2004-02-03 at 23:00, Harald Welte wrote: > On Tue, Feb 03, 2004 at 05:24:57PM +0100, Oliver Kurth wrote: > > Hi Harald, > >=20 > > > > We are having a problem with 2.4.24 on cyclades germany, the box > > > > (firewall) is crashing in the netfilter code. > >=20 > > Anything new about that problem? Do you need more information? >=20 > sorry, I lost that issue because I'm extremely overloaded at the moment. >=20 > It seems like it crashes in the following piece of code (from > ip_conntrack_core.c) >=20 > /* If the expectation is dying, then this is a looser. */ > if (expected > && expected->expectant->helper->timeout > && !del_timer(&expected->timeout)) > expected =3D NULL; >=20 >=20 > 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. > 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=3Dy CONFIG_IP_NF_FTP=3Dy CONFIG_IP_NF_AMANDA=3Dy CONFIG_IP_NF_TFTP=3Dy CONFIG_IP_NF_IRC=3Dy # CONFIG_IP_NF_QUEUE is not set CONFIG_IP_NF_IPTABLES=3Dy CONFIG_IP_NF_MATCH_LIMIT=3Dy CONFIG_IP_NF_MATCH_MAC=3Dy CONFIG_IP_NF_MATCH_PKTTYPE=3Dy CONFIG_IP_NF_MATCH_MARK=3Dy CONFIG_IP_NF_MATCH_MULTIPORT=3Dy CONFIG_IP_NF_MATCH_TOS=3Dy CONFIG_IP_NF_MATCH_RECENT=3Dy CONFIG_IP_NF_MATCH_ECN=3Dy CONFIG_IP_NF_MATCH_DSCP=3Dy CONFIG_IP_NF_MATCH_AH_ESP=3Dy CONFIG_IP_NF_MATCH_LENGTH=3Dy CONFIG_IP_NF_MATCH_TTL=3Dy CONFIG_IP_NF_MATCH_TCPMSS=3Dy CONFIG_IP_NF_MATCH_HELPER=3Dy CONFIG_IP_NF_MATCH_STATE=3Dy CONFIG_IP_NF_MATCH_CONNTRACK=3Dy # CONFIG_IP_NF_MATCH_UNCLEAN is not set # CONFIG_IP_NF_MATCH_OWNER is not set CONFIG_IP_NF_FILTER=3Dy CONFIG_IP_NF_TARGET_REJECT=3Dy # CONFIG_IP_NF_TARGET_MIRROR is not set CONFIG_IP_NF_NAT=3Dy CONFIG_IP_NF_NAT_NEEDED=3Dy CONFIG_IP_NF_TARGET_MASQUERADE=3Dy CONFIG_IP_NF_TARGET_REDIRECT=3Dy CONFIG_IP_NF_NAT_AMANDA=3Dy # CONFIG_IP_NF_NAT_LOCAL is not set # CONFIG_IP_NF_NAT_SNMP_BASIC is not set CONFIG_IP_NF_NAT_IRC=3Dy CONFIG_IP_NF_NAT_FTP=3Dy CONFIG_IP_NF_NAT_TFTP=3Dy CONFIG_IP_NF_MANGLE=3Dy CONFIG_IP_NF_TARGET_TOS=3Dy CONFIG_IP_NF_TARGET_ECN=3Dy CONFIG_IP_NF_TARGET_DSCP=3Dy CONFIG_IP_NF_TARGET_MARK=3Dy CONFIG_IP_NF_TARGET_LOG=3Dy CONFIG_IP_NF_TARGET_ULOG=3Dy CONFIG_IP_NF_TARGET_TCPMSS=3Dy # CONFIG_IP_NF_ARPTABLES is not set > We haven't had something like this before. >=20 > 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. >=20 > if (expected > && expected->expectant->helper > && expected->expectant->helper->timeout > && !del_timer(&expected->timeout)) > expected =3D NULL; Greetings, Oliver --=20 Cyclades GmbH - Everywhere with Linux Oliver Kurth Cyclades GmbH Research & Development Rennweg 33 Fon/Fax: +49 (0) 8122 90999-34/-33 D-85435 Erding --=-WQGNwv2iTYj0DZJsuMtP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAIPxAUmVSJkUeqxsRAvBeAJ4jzHQsYUzROGZlxzrVv/CEl7chHQCdGmcL LtwPMEMYLlG7/ABKC0/DAr4= =261m -----END PGP SIGNATURE----- --=-WQGNwv2iTYj0DZJsuMtP--