Re: missing madvise functionality

Rik van Riel
2007-04-03T21:29:06Z

Jeremy Fitzhardinge wrote:
> Eric Dumazet wrote:
>> mmap()/brk() must give fresh NULL pages, but maybe
>> madvise(MADV_DONTNEED) can relax this requirement (if the pages were
>> reclaimed, then a page fault could bring a new page with random content)
>
> Only if those pages were originally from that process. Otherwise you've
> got a bit of an information leak there.

Or from another process by the same user, in the same security
context. That gets a bit more complex though :)

--
Politics is the struggle between those who want to make their country
the best in the world, and those who believe it already is. Each group
calls the other unpatriotic.