From owner-freebsd-net@FreeBSD.ORG Thu Mar 9 08:32:33 2006 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FB6716A420; Thu, 9 Mar 2006 08:32:33 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BDB443D45; Thu, 9 Mar 2006 08:32:31 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k298WVkD008699; Thu, 9 Mar 2006 10:32:31 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ip.net.ua [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 73741-02; Thu, 9 Mar 2006 10:32:02 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id k298VKKQ008656 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 9 Mar 2006 10:31:21 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.4/8.13.4) id k298VaoJ045402; Thu, 9 Mar 2006 10:31:36 +0200 (EET) (envelope-from ru) Date: Thu, 9 Mar 2006 10:31:35 +0200 From: Ruslan Ermilov To: Nikos Vassiliadis Message-ID: <20060309083135.GH54826@ip.net.ua> References: <200603081532.46119.nvass@teledomenet.gr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="N8ia4yKhAKKETby7" Content-Disposition: inline In-Reply-To: <200603081532.46119.nvass@teledomenet.gr> User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at ip.net.ua Cc: freebsd-net@FreeBSD.org, Gleb Smirnoff Subject: Re: invalid table number causes ipfw to lock X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 08:32:33 -0000 --N8ia4yKhAKKETby7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 08, 2006 at 03:32:45PM +0200, Nikos Vassiliadis wrote: > Hello, >=20 > Is this known? >=20 Yes. > root@brad:0:~# ipfw table 260 list > ipfw: getsockopt(IP_FW_TABLE_GETSIZE): Invalid argument > root@brad:0:~# ipfw table 26 list >=20 > and it locks there, ipfw processes stay forever in state D. > This is a recent RELENG_6. >=20 : RCS file: /junk/freebsd/cvs/src/sys/netinet/ip_fw2.c,v : Working file: ip_fw2.c : head: 1.127 : branch: : locks: strict : access list: : keyword substitution: kv : total revisions: 183; selected revisions: 183 : description: : ---------------------------- : revision 1.127 : date: 2006/03/03 12:10:59; author: glebius; state: Exp; lines: +5 -7 : - Do not leak read lock in IP_FW_TABLE_GETSIZE case of ipfw_ctl(). : - Acquire read (not write) lock in case of IP_FW_TABLE_LIST. :=20 : In collaboration with: ru I don't know when Gleb plans for an MFC. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --N8ia4yKhAKKETby7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFED+fnqRfpzJluFF4RAiLWAJ48KVqYxGVtvfukygcRhSu+xT1YPQCdEq6H SKvm2MoxNM1qDcQ2Ei9kjko= =Iqcv -----END PGP SIGNATURE----- --N8ia4yKhAKKETby7--