From owner-cvs-all@FreeBSD.ORG Sun Feb 17 18:34:17 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A1EF16A417; Sun, 17 Feb 2008 18:34:17 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7672A13C45B; Sun, 17 Feb 2008 18:34:17 +0000 (UTC) (envelope-from jasone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1HIYHj5067194; Sun, 17 Feb 2008 18:34:17 GMT (envelope-from jasone@repoman.freebsd.org) Received: (from jasone@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1HIYHkX067193; Sun, 17 Feb 2008 18:34:17 GMT (envelope-from jasone) Message-Id: <200802171834.m1HIYHkX067193@repoman.freebsd.org> From: Jason Evans Date: Sun, 17 Feb 2008 18:34:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libc/stdlib malloc.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Feb 2008 18:34:17 -0000 jasone 2008-02-17 18:34:17 UTC FreeBSD src repository Modified files: lib/libc/stdlib malloc.c Log: Fix a race condition in arena_ralloc() for shrinking in-place large reallocation, when junk filling is enabled. Junk filling must occur prior to shrinking, since any deallocated trailing pages are immediately available for use by other threads. Reported by: Mats Palmgren Revision Changes Path 1.166 +41 -25 src/lib/libc/stdlib/malloc.c