All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Opdenacker <michael-lists@free-electrons.com>
To: "linux-os (Dick Johnson)" <linux-os@analogic.com>,
	chase.venters@clientec.com
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Option to clear allocated kernel memory before freeing it?
Date: Mon, 19 Jun 2006 22:12:18 +0200	[thread overview]
Message-ID: <44970522.9030404@free-electrons.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0606191145470.4384@chaos.analogic.com>

Chase, Dick,
> No. Memory is cleared before being mapped to user-space. Memory
> that is allocated for use by the kernel is never cleared by default.
> To do so would waste valuable time for nothing gained.
>
>   
>> Unless I'm missing something, uncleared memory previously used for
>> kernel allocations could later be recycled for user allocations, making
>> it possible for a user program to access sensitive driver data if it's
>> lucky.
>>     
>
> Wrong. You are missing a lot.
>   
Oops, I realize I was really missing a lot! Thank you very much for 
leading me to the right path!

    Cheers,

    Michael.

-- 
Michael Opdenacker, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1000 pages!)..


      reply	other threads:[~2006-06-19 20:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-19 14:48 Option to clear allocated kernel memory before freeing it? Michael Opdenacker
2006-06-19 15:32 ` Chase Venters
2006-06-19 15:51 ` linux-os (Dick Johnson)
2006-06-19 20:12   ` Michael Opdenacker [this message]

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=44970522.9030404@free-electrons.com \
    --to=michael-lists@free-electrons.com \
    --cc=chase.venters@clientec.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-os@analogic.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.