mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "LeMay, Michael" <michael.lemay@intel.com>
To: "musl@lists.openwall.com" <musl@lists.openwall.com>
Subject: [RFC PATCH v3 0/2] SafeStack support
Date: Fri, 4 Nov 2016 20:31:57 +0000	[thread overview]
Message-ID: <390CE752059EB848A71F4F676EBAB76D3AC2987A@ORSMSX114.amr.corp.intel.com> (raw)

This first patchset adds architecture-independent support for SafeStack.  A separate patch adds support for segmentation-based SafeStack hardening.

v2 -> v3:
 - Further coalesced patches as they have become smaller and simpler.
 - Reduced the use of ifdefs.
 - Used musl-controlled macro in pthread_impl.h.
 - Revised definition of preinit_us.
 - Added __safestack_pthread_exit.
 - Fixed invalid preprocessor expression in traverses_stack_p.
 - Passed updated stack pointer to __clone during thread creation.
 - Updated __stack_base in __safestack_init_thread.
 - Simplified __sep_stack_seg_init and subroutines by requiring that LDT is empty prior to initialization.

Michael LeMay (2):
  support SafeStack
  add SafeStack build support

 Makefile                    |  51 +++++++++++++++++-
 configure                   |  10 ++++
 ldso/dynlink.c              |  13 +++++
 src/env/__libc_start_main.c |   5 ++
 src/internal/pthread_impl.h |  13 +++++
 src/internal/safe_stack.c   | 128 ++++++++++++++++++++++++++++++++++++++++++++
 src/malloc/expand_heap.c    |   2 +
 src/thread/pthread_create.c |  14 ++++-
 8 files changed, 234 insertions(+), 2 deletions(-)
 create mode 100644 src/internal/safe_stack.c

-- 
2.7.4


             reply	other threads:[~2016-11-04 20:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-04 20:31 LeMay, Michael [this message]
2016-11-05 22:57 ` Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=390CE752059EB848A71F4F676EBAB76D3AC2987A@ORSMSX114.amr.corp.intel.com \
    --to=michael.lemay@intel.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).