lkml.org 
[lkml]   [2006]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateMon, 19 Jun 2006 22:12:18 +0200
FromMichael Opdenacker <>
SubjectRe: Option to clear allocated kernel memory before freeing it?
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!)..

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-19 22:15    [from the cache]
©2003-2010