[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Physical page zeroing on allocation

Samuel Thibault <sthibault@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

Ok,thanks. So libraries and things are potentially expecting the memory to be 0, hence my troubles.

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

By removing __GFP_ZERO flag from alloc_page_vma function.



Reply to: