public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Improved ASLR
@ 2020-11-25 11:36 Topi Miettinen
  2020-11-25 11:36 ` [PATCH 1/3] csu: randomize location of TCB Topi Miettinen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Topi Miettinen @ 2020-11-25 11:36 UTC (permalink / raw)
  To: libc-alpha; +Cc: Topi Miettinen

Problem with using sbrk() for allocations is that the location of the
memory is relatively predicatable since it's always located next to
data segment. This series makes malloc() and TCB use mmap() instead,
except when instructed by tunable glibc.malloc.use_sbrk.

Topi Miettinen (3):
  csu: randomize location of TCB
  malloc: use mmap() to improve ASLR
  dl-sysdep: disable remaining calls to sbrk()

 csu/libc-tls.c                          | 48 +++++++++++++++++++++----
 elf/dl-sysdep.c                         | 11 +++++-
 elf/dl-tunables.list                    |  7 ++++
 malloc/arena.c                          | 11 ++++--
 malloc/morecore.c                       | 10 ++++++
 manual/tunables.texi                    |  5 +++
 sysdeps/unix/sysv/linux/dl-sysdep.c     | 10 ++++++
 sysdeps/unix/sysv/linux/mmap64.c        | 19 ++++++++++
 sysdeps/unix/sysv/linux/mmap_internal.h |  5 +++
 9 files changed, 117 insertions(+), 9 deletions(-)


base-commit: aa7e05c3043302403e91b85c4aea39e0aac6c7c8
-- 
2.29.2


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-11-25 17:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 11:36 [PATCH 0/3] Improved ASLR Topi Miettinen
2020-11-25 11:36 ` [PATCH 1/3] csu: randomize location of TCB Topi Miettinen
2020-11-25 13:18   ` Adhemerval Zanella
2020-11-25 13:43     ` Topi Miettinen
2020-11-25 17:49   ` Topi Miettinen
2020-11-25 11:36 ` [PATCH 2/3] malloc: use mmap() to improve ASLR Topi Miettinen
2020-11-25 11:36 ` [PATCH 3/3] dl-sysdep: disable remaining calls to sbrk() Topi Miettinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).