From: Harald Welte Subject: Re: [PATCH 1/4] fix leak of fragment queue at unloading nf_conntrack_ipv6 Date: Sun, 13 Nov 2005 11:08:37 +0100 Message-ID: <20051113100837.GG17476@sunbeam.de.gnumonks.org> References: <200511130850.jAD8ohfY012005@toshiba.co.jp> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3607uds81ZQvwCD0" Cc: netfilter-devel@lists.netfilter.org Return-path: To: Yasuyuki KOZAKAI Content-Disposition: inline In-Reply-To: <200511130850.jAD8ohfY012005@toshiba.co.jp> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org --3607uds81ZQvwCD0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 13, 2005 at 05:50:42PM +0900, Yasuyuki KOZAKAI wrote: >=20 > This makes nf_conntrack_ipv6 free all IPv6 fragment queues at unloading. > This also check inconsistency between memory tracking and actual usage > to avoid endless loop at eviction. I'm fine with this, but: > tmp =3D nf_ct_frag6_lru_list.next; > + if (tmp =3D=3D NULL) { > + if (net_ratelimit()) > + printk(KERN_ERR > + "nf_ct_reasm: no queue to be evicted"); > + return; > + } Why is it an error if we don't have a defrag queue at unloading time? Isn't it possible that we never process any fragments (or finished processing of all fragments some time ago) and thus have an empty queue? If I understand this correctly, it should be a DEBUG message, at most. Please comment. --=20 - Harald Welte http://netfilter.org/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D "Fragmentation is like classful addressing -- an interesting early architectural error that shows how much experimentation was going on while IP was being designed." -- Paul Vixie --3607uds81ZQvwCD0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFDdxClXaXGVTD0i/8RAuZIAJ9pfKU2ZNMMxWOkznxImiY18cHNCACggatr UF/icUKy+AS/3KCRi5QCg6I= =yv3n -----END PGP SIGNATURE----- --3607uds81ZQvwCD0--