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

From: Joseph Myers
Date: Thu Dec 03 2020 - 14:27:31 EST


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@xxxxxxxxxxxxxxxx