From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21201 invoked by alias); 11 Nov 2014 21:33:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 21117 invoked by uid 89); 11 Nov 2014 21:33:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Nov 2014 21:33:39 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-FEM-02.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1XoJ4A-0001RO-Jk from joseph_myers@mentor.com ; Tue, 11 Nov 2014 13:33:34 -0800 Received: from digraph.polyomino.org.uk (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.3.181.6; Tue, 11 Nov 2014 21:33:33 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.82) (envelope-from ) id 1XoJ48-0005iI-KF; Tue, 11 Nov 2014 21:33:32 +0000 Date: Tue, 11 Nov 2014 21:37:00 -0000 From: Joseph Myers To: Andi Kleen CC: "H.J. Lu" , Ilya Enkovich , GCC Patches Subject: Re: [PATCH, MPX runtime 1/2] Integrate MPX runtime library In-Reply-To: <20141111212426.GJ12538@two.firstfloor.org> Message-ID: References: <20141111153449.GB52080@msticlxl57.ims.intel.com> <87r3x9a7yt.fsf@tassilo.jf.intel.com> <20141111210127.GI12538@two.firstfloor.org> <20141111212426.GJ12538@two.firstfloor.org> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2014-11/txt/msg01090.txt.bz2 On Tue, 11 Nov 2014, Andi Kleen wrote: > On Tue, Nov 11, 2014 at 01:04:42PM -0800, H.J. Lu wrote: > > On Tue, Nov 11, 2014 at 1:01 PM, Andi Kleen wrote: > > >> It is similar to libsanitizer. Put it in glibc isn't going to work well > > >> for MPX. > > > > > > Can you explain it more please? > > > > > > > Are you suggesting putting MPX run-time in glibc? Will we have > > 2 glibc, one with MPX run-time and one without MPX run-time? > > No, I just think signal chaining should be in glibc. I do wonder whether the signal handler needs to be enabled by default or whether there should simply be a function __mpx_handle_sigsegv provided with instructions to the user on how it can be used to get extra MPX-related information when SIGSEGV occurs (in which case it's entirely the user's responsibility to write a handler calling their own handler and the MPX one, if desired). Or an LD_PRELOAD library like libSegFault. -- Joseph S. Myers joseph@codesourcery.com