Re: memory pages nulling when releasing

看板FB_security作者時間19年前 (2006/06/18 20:53), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/27 (看更多)
Nick Borisov wrote: > Could you tell me if FreeBSD supports memory page nulling when > releasing it to prevent unauthorized access to data left in the page > after it's allocated again. Yes, FreeBSD has a mechanism for "zero-filling" used pages before they are allocated to another process, although this is normally deferred for a while to promote reuse of the page if the original process needs to use it again. > If it does, what sys calls etc provide that? > IMHO this is an important issue when operating data with different > sensivity levels. You can set some malloc() tunables to control some of this, although if you are trying to do secure programming of sensitive data, look towards mlock() to keep the data resident and unpageable to keep it out of the VM system and potentially the swapfile. Look at the source for GnuPG, for example, or OPIE... -- -Chuck _______________________________________________ freebsd-security@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-security To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"
文章代碼(AID): #14bKot00 (FB_security)
討論串 (同標題文章)
文章代碼(AID): #14bKot00 (FB_security)