Re: Physical page zeroing on allocation

2013-04-03 Thread Viacheslav Fedorov
Samuel Thibault writes: >>when allocating an anonymous physical page on a Page Fault, >> why does kernel have to fill it with zeroes? >> I understand it has something to do with security. >See man mmap. Anonymous memory is explicitly documented as being set to >0. >Samuel Ok,thanks. So libraries

Physical page zeroing on allocation

2013-04-01 Thread Viacheslav Fedorov
Hey guys, I was wondering, when allocating an anonymous physical page on a Page Fault, why does kernel have to fill it with zeroes? I understand it has something to do with security. But let's say I trust my environment. Then why when I disable zeroing of the allocated pages, the applications cras