[RFC PATCH 0/3] Improved ALSR

Florian Weimer fweimer@redhat.com
Mon Nov 30 10:28:54 GMT 2020


* Topi Miettinen:

> FYI, the effect of full ASLR of mmap() by kernel also seems small:
>
> # echo 3 >/proc/sys/kernel/randomize_va_space
> # time ./malloc-vs-sbrk
>
> real    0m19.489s
> user    0m1.263s
> sys     0m18.211s
> # time ./malloc-vs-sbrk 1
>
> real    0m19.532s
> user    0m1.148s
> sys     0m18.366s

The value 3 doesn't do anything in a mainline kernel.

I think you will see rather catastrophic effects if you have a workload
that triggers TLB misses.  I expect that the cost of walking page tables
increases dramatically with full ASLR.

Thanks,
Florian
-- 
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill



More information about the Libc-alpha mailing list