From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10523 Path: news.gmane.org!.POSTED!not-for-mail From: "LeMay, Michael" Newsgroups: gmane.linux.lib.musl.general Subject: [RFC PATCH 0/7] Segmentation-hardened SafeStack support Date: Tue, 27 Sep 2016 15:33:03 -0700 Message-ID: <2440e731-89e5-e674-9390-0de98533e744@intel.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1475015610 7413 195.159.176.226 (27 Sep 2016 22:33:30 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Sep 2016 22:33:30 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 To: "musl@lists.openwall.com" Original-X-From: musl-return-10536-gllmg-musl=m.gmane.org@lists.openwall.com Wed Sep 28 00:33:19 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bp0w8-0000Vj-Or for gllmg-musl@m.gmane.org; Wed, 28 Sep 2016 00:33:16 +0200 Original-Received: (qmail 30287 invoked by uid 550); 27 Sep 2016 22:33:17 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 30261 invoked from network); 27 Sep 2016 22:33:15 -0000 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,407,1470726000"; d="scan'208";a="14388700" Xref: news.gmane.org gmane.linux.lib.musl.general:10523 Archived-At: Here is the current revision of my patches for providing segmentation-hardened SafeStack support. See http://lists.llvm.org/pipermail/llvm-dev/2016-May/100346.html for information on the corresponding compiler patches. Comments appreciated. Michael LeMay (7): add --enable-safe-stack configuration option avoid invoking the vDSO when SafeStack is enabled disable check for buggy brk implementations when SafeStack is enabled add stack segment override prefix to i386 __clone support SafeStack in init and threading support dynamic linking with segmentation-hardened SafeStack add compiler flags to enable SafeStack Makefile | 8 ++ arch/i386/syscall_arch.h | 13 +++ configure | 5 + ldso/dlstart.c | 23 ++++- ldso/dynlink.c | 44 ++++++-- src/env/__libc_start_main.c | 19 ++++ src/env/__safestack.c | 241 ++++++++++++++++++++++++++++++++++++++++++++ src/internal/pthread_impl.h | 4 + src/malloc/expand_heap.c | 2 + src/thread/i386/clone.s | 2 +- src/thread/pthread_create.c | 72 ++++++++++++- 11 files changed, 420 insertions(+), 13 deletions(-) create mode 100644 src/env/__safestack.c -- 2.7.4