Samuel Thibault <email@example.com
>>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
Ok,thanks. So libraries and things are potentially expecting the memory to be 0, hence my troubles.
Timo Juhani Lindfors <firstname.lastname@example.org
> How did you disable it?
By removing __GFP_ZERO flag from alloc_page_vma function.