LWN.net Logo

Sanitizing kernel memory

Sanitizing kernel memory

Posted Jun 4, 2009 18:30 UTC (Thu) by oak (subscriber, #2786)
In reply to: Sanitizing kernel memory by etienne_lorrain@yahoo.fr
Parent article: Sanitizing kernel memory

> On the other side, if a function allocates more than it will use

I think all the user-space allocated pages point to the same zeroed/shared
physical page until they're written to?


(Log in to post comments)

Sanitizing kernel memory

Posted Jun 9, 2009 12:28 UTC (Tue) by etienne_lorrain@yahoo.fr (guest, #38022) [Link]

> user-space allocated pages
We were talking about kernel-space allocated memory...
Having a stock of cleared pages for user-space would probably also be an improvement (when user-space writes its first byte on a page), as long as clearing those pages does not wipe the memory cache (i.e. DMA to memory instead of processor writing).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds