public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Option to clear allocated kernel memory before freeing it?
@ 2006-06-19 14:48 Michael Opdenacker
  2006-06-19 15:32 ` Chase Venters
  2006-06-19 15:51 ` linux-os (Dick Johnson)
  0 siblings, 2 replies; 4+ messages in thread
From: Michael Opdenacker @ 2006-06-19 14:48 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello,

Would it make sense to implement a kernel option that would clear kernel 
memory before freeing it (by kfree or free_page(s))?

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.

Tough clearing memory should be efficient (thanks to the use of 
memset(), optimized for each platform), there would of course be a 
significant performance hit. However, this could be acceptable for 
systems with strong security requirements...

What do you think? If this idea makes sense, I'll be glad to help in 
implementing it.

    Thanks in advance,

    Cheers,

    Michael.

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-06-19 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox