public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] Improved ALSR
@ 2020-10-04 13:09 Topi Miettinen
  2020-10-04 13:09 ` [RFC PATCH 1/3] csu: randomize location of TCB Topi Miettinen
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Topi Miettinen @ 2020-10-04 13:09 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.

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

 csu/libc-tls.c                          | 20 ++++++++++++++------
 elf/dl-sysdep.c                         |  2 ++
 malloc/arena.c                          |  5 ++++-
 malloc/malloc.c                         | 16 +++++++++++++---
 malloc/morecore.c                       |  2 ++
 sysdeps/unix/sysv/linux/dl-sysdep.c     |  2 ++
 sysdeps/unix/sysv/linux/mmap64.c        | 19 +++++++++++++++++++
 sysdeps/unix/sysv/linux/mmap_internal.h |  3 +++
 8 files changed, 59 insertions(+), 10 deletions(-)

-- 
2.28.0


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

end of thread, other threads:[~2020-11-30 11:39 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-04 13:09 [RFC PATCH 0/3] Improved ALSR Topi Miettinen
2020-10-04 13:09 ` [RFC PATCH 1/3] csu: randomize location of TCB Topi Miettinen
2020-11-24 18:44   ` Adhemerval Zanella
2020-10-04 13:09 ` [RFC PATCH 2/3] malloc: always use mmap() to improve ASLR Topi Miettinen
2020-10-04 13:09 ` [RFC PATCH 3/3] dl-sysdep: disable remaining calls to sbrk() Topi Miettinen
2020-11-23 16:06 ` [RFC PATCH 0/3] Improved ALSR Topi Miettinen
2020-11-23 16:41   ` Szabolcs Nagy
2020-11-23 17:55     ` Topi Miettinen
2020-11-23 21:45       ` Florian Weimer
2020-11-23 22:28         ` Topi Miettinen
2020-11-24 11:24           ` Florian Weimer
2020-11-24 11:59             ` Topi Miettinen
2020-11-24 14:29               ` Adhemerval Zanella
2020-11-30 10:28               ` Florian Weimer
2020-11-30 11:39                 ` Topi Miettinen
2020-11-23 16:44 ` Florian Weimer
2020-11-23 18:16   ` Topi Miettinen
2020-11-24  9:47     ` Szabolcs Nagy

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).