Re: [PATCH v5] mm: Optional full ASLR for mmap(), mremap(), vdso and stack

Joseph Myers
2020-12-03T19:27:45Z

On Thu, 3 Dec 2020, Florian Weimer wrote:

> My knowledge of probability theory is quite limited, so I have to rely
> on simulations. But I think you would see a 40 GiB gap somewhere for a
> 47-bit address space with 32K allocations, most of the time. Which is
> not too bad.

This is very close to a Poisson process (if the number of small
allocations being distributed independently in the address space is
large), so the probability that any given gap is at least x times the mean
gap is about exp(-x).

--
Joseph S. Myers
joseph@codesourcery.com