User: Password:
Subscribe / Log in / New account

Zeroing freed memory

Zeroing freed memory

Posted Nov 13, 2008 9:19 UTC (Thu) by dlang (subscriber, #313)
In reply to: Zeroing freed memory by Felix_the_Mac
Parent article: /dev/ksm: dynamic memory sharing

zeroing the memory when it's freed is better from a security point of view, but it's expensive to do.

since it may sometimes not need to be zeroed (besides the kernel uses noted in post above, if the page is going to be used to hold the executable code to be run, just load the appropriate code in the page, there's no benifit to zeroing it out first) and other times it can be zeroed when the system is idle, linux does the more efficant thing and zeros the page with as little impact tot he rest of the system as possible.

(Log in to post comments)

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