From mboxrd@z Thu Jan 1 00:00:00 1970 From: Malte =?iso-8859-1?q?Schr=F6der?= Subject: Re: [BUG] panic 2.6.20-rc3 in nf_conntrack Date: Wed, 3 Jan 2007 20:18:47 +0100 Message-ID: <200701032018.51184.MalteSch@gmx.de> References: <200701020228_MC3-1-D707-115D@compuserve.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2684199.Im7JhXbk7i"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Cc: Chuck Ebbert <76306.1226@compuserve.com>, linux-kernel@vger.kernel.org, Patrick McHardy , berni@birkenwald.de, netfilter-devel@lists.netfilter.org Return-path: To: Martin Josefsson In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org --nextPart2684199.Im7JhXbk7i Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 03 January 2007 09:34, Martin Josefsson wrote: > I saw your (correct) analysis after having made the patch below, it has > been tested successfully by Bernhard Schmidt. (Netfilter bugzilla #528) > > Check the return value of nfct_nat() in device_cmp(), we might very well > have non NAT conntrack entries as well. > I was not capable to reproduce the problem. Thanks :) > Signed-off-by: Martin Josefsson > > --- linux-2.6.20-rc3/net/ipv4/netfilter/ipt_MASQUERADE.c.orig 2007-01-02 > 22:47:14.000000000 +0100 +++ > linux-2.6.20-rc3/net/ipv4/netfilter/ipt_MASQUERADE.c 2007-01-02 > 22:57:11.000000000 +0100 @@ -127,10 +127,13 @@ > static inline int > device_cmp(struct ip_conntrack *i, void *ifindex) > { > + int ret; > #ifdef CONFIG_NF_NAT_NEEDED > struct nf_conn_nat *nat =3D nfct_nat(i); > + > + if (!nat) > + return 0; > #endif > - int ret; > > read_lock_bh(&masq_lock); > #ifdef CONFIG_NF_NAT_NEEDED =2D-=20 =2D-------------------------------------- Malte Schr=F6der MalteSch@gmx.de ICQ# 68121508 =2D-------------------------------------- --nextPart2684199.Im7JhXbk7i Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBFnAGb4q3E2oMjYtURAqkpAJ9QhAejAG/O3pkP1pSwy9j6aAsNbQCfYokT 5/C4cjWTyICS2WUKBubm57U= =jjFi -----END PGP SIGNATURE----- --nextPart2684199.Im7JhXbk7i--