From: Peter Staubach <staubach@redhat.com>
To: "Tomar, Nagendra" <nagendra_tomar@adaptec.com>
Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.arm.linux.org.uk
Subject: Re: Zeroed pages returned for heap
Date: Tue, 07 Jun 2005 11:57:06 -0400 [thread overview]
Message-ID: <42A5C3D2.9010209@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0506070936530.4569-100000@localhost.localdomain>
Nagendra Singh Tomar wrote:
>Hi all,
> The short version first.
>Is it OK for an application (a C library implementing malloc/calloc is
>also an application) to assume that the pages returned by the OS for heap
>allocation (either directly thru brk() or thru mmap(MAP_ANONYMOUS)) will
>be zero filled.
>
An application which makes assumptions about the contents of newly allocated
memory would seem to be making very dangerous assumptions.
Ignoring that, would it not be considered to be a security violation to hand
pieces of memory to applications without erasing the old contents of the
pages?
Thanx...
ps
next prev parent reply other threads:[~2005-06-07 16:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-07 4:23 Zeroed pages returned for heap Nagendra Singh Tomar
2005-06-07 8:53 ` Ulrich Drepper
2005-06-07 9:59 ` Nagendra Singh Tomar
2005-06-07 15:57 ` Peter Staubach [this message]
2005-06-08 4:08 ` Nagendra Singh Tomar
2005-06-09 10:14 ` Richard B. Johnson
2005-06-10 4:06 ` Nagendra Singh Tomar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42A5C3D2.9010209@redhat.com \
--to=staubach@redhat.com \
--cc=linux-arm-kernel@lists.arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=nagendra_tomar@adaptec.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.