Samuel Thibault <sthiba...@debian.org> 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 and things are potentially expecting the memory to
be 0, hence my troubles.


Timo Juhani Lindfors <timo.lindf...@iki.fi> writes:
> How did you disable it?

By removing __GFP_ZERO flag from alloc_page_vma function.

Thanks,

Viacheslav

Reply via email to