Re: missing madvise functionality

From: Jeremy Fitzhardinge
Date: Tue Apr 03 2007 - 17:23:25 EST


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.

J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/