From owner-freebsd-security@FreeBSD.ORG Tue Jun 20 17:04:13 2006 Return-Path: X-Original-To: freebsd-security@freebsd.org Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C48F16A49E; Tue, 20 Jun 2006 17:04:13 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 147A443D46; Tue, 20 Jun 2006 17:04:11 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-1) with ESMTP id k5KH3x9T022957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 20 Jun 2006 20:04:01 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k5KH3rDx091106; Tue, 20 Jun 2006 20:03:53 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k5KH3ra4091105; Tue, 20 Jun 2006 20:03:53 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Tue, 20 Jun 2006 20:03:53 +0300 From: Giorgos Keramidas To: Dan Lukes , Jason Evans Message-ID: <20060620170353.GB90842@gothmog.pc> References: <20060618203903.31161.qmail@web30306.mail.mud.yahoo.com> <44967861.6070509@obluda.cz> <20060620125350.10d0c9ef.nick@nickwithers.com> <44980ECC.5000607@obluda.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44980ECC.5000607@obluda.cz> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-4.214, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.18, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No X-Mailman-Approved-At: Wed, 21 Jun 2006 02:00:27 +0000 Cc: freebsd-security@freebsd.org Subject: Re: memory pages nulling when releasing X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 17:04:13 -0000 On 2006-06-20 17:05, Dan Lukes wrote: >> There's "Z" malloc option that's used to initialise page with zeros >> instead of 0xd0 > > Difference betwen Z and J isn't the fill value only. Z apply > for allocations of new memory (when imalloc() called); J apply > on changes in allocated block size (e.g. realloc) and free. So > 'Z' doesn't "zero on free" but "zero on alloc". Well, things > aren't simple as Z implies J ... > > BTW, Z nor J doesn't imply 'R' despite of text of manual page. Are you sure? Then we should fix the manpage. Cc'ing Jason Evans, who may be interested too.