From owner-cvs-all@FreeBSD.ORG Tue Sep 30 18:21:38 2003 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 25FD116A4BF; Tue, 30 Sep 2003 18:21:38 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE1B343FB1; Tue, 30 Sep 2003 18:21:37 -0700 (PDT) (envelope-from gallatin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h911LbXJ044558; Tue, 30 Sep 2003 18:21:37 -0700 (PDT) (envelope-from gallatin@repoman.freebsd.org) Received: (from gallatin@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h911LbnC044557; Tue, 30 Sep 2003 18:21:37 -0700 (PDT) (envelope-from gallatin) Message-Id: <200310010121.h911LbnC044557@repoman.freebsd.org> From: Andrew Gallatin Date: Tue, 30 Sep 2003 18:21:37 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sys/vm vm_map.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: Wed, 01 Oct 2003 01:21:38 -0000 gallatin 2003/09/30 18:21:37 PDT FreeBSD src repository Modified files: (Branch: RELENG_4) sys/vm vm_map.c Log: Fix a bug which was introduced in version 1.187.2.16 of sys/vm/vm_map.c and affects the unwiring memory: The map entries are processed in a loop, checking to make sure the entry is wired and asserting it has a wired count. However, another loop was inserted more-or-less in the middle of the of the unwiring path. This loop picks up the "entry" loop variable from the first loop without first setting it to start_entry. Naturally, the second loop is never entered and the pages backing the entries are never unwired. This can lead to a leak of wired pages. Reviewed by: alc Approved by: re (murray) Revision Changes Path 1.187.2.21 +1 -0 src/sys/vm/vm_map.c