From owner-cvs-all@FreeBSD.ORG Sun Dec 19 19:43:04 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C8CC16A4D9; Sun, 19 Dec 2004 19:43:04 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C96A43D3F; Sun, 19 Dec 2004 19:43:04 +0000 (GMT) (envelope-from dhartmei@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iBJJh4vd070638; Sun, 19 Dec 2004 19:43:04 GMT (envelope-from dhartmei@repoman.freebsd.org) Received: (from dhartmei@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iBJJh4Mr070637; Sun, 19 Dec 2004 19:43:04 GMT (envelope-from dhartmei) Message-Id: <200412191943.iBJJh4Mr070637@repoman.freebsd.org> From: Daniel Hartmeier Date: Sun, 19 Dec 2004 19:43:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/contrib/pf/net pf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Dec 2004 19:43:04 -0000 dhartmei 2004-12-19 19:43:04 UTC FreeBSD src repository Modified files: sys/contrib/pf/net pf.c Log: Initialise init_addr in pf_map_addr() in the PF_POOL_ROUNDROBIN, prevents a possible endless loop in pf_get_sport() with 'static-port' ICMP state entries use the ICMP ID as port for the unique state key. When checking for a usable key, construct the key in the same way. Otherwise, a colliding key might be missed or a state insertion might be refused even though it could be inserted. The second case triggers the endless loop, possibly allowing a NATed LAN client to lock up the kernel. PR: kern/74930 Reported and tested by: Hugo Silva, Srebrenko Sehic MFC after: 3 days Revision Changes Path 1.25 +5 -3 src/sys/contrib/pf/net/pf.c