From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "H.J. Lu" Newsgroups: gmane.comp.lib.glibc.alpha Subject: Re: PING^2: [PATCH 0/2] nptl: Update struct pthread_unwind_buf Date: Sat, 24 Feb 2018 07:20:51 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1519485538 22335 195.159.176.226 (24 Feb 2018 15:18:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2018 15:18:58 +0000 (UTC) Cc: Florian Weimer , GNU C Library To: "Carlos O'Donell" Original-X-From: libc-alpha-return-90553-glibc-alpha=m.gmane.org@sourceware.org Sat Feb 24 16:18:54 2018 Return-path: Envelope-to: glibc-alpha@blaine.gmane.org DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; q=dns; s=default; b=NEgp FXc3nHHuPtg6pMhLxmy2vSF4M22kZcZBXMKTTeugoU04CmwkP/UdC7c2wAzdYAbn vgu1lt6Phy8zU44fR6ZuIgZzlIl2VpnvcWOW4JugaDWbpqqslutSXM6R1l0cOFcV oNDyjwxyXATCKDqvl2sDtptzE8OtO7gomwNQg+U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; s=default; bh=/0WHACPOa7 IYLIe5Oy0e2rnD1Ss=; b=Tev3LFKMZiy/dGbGUokciWooqZkE84u6oZWGsFEfLc PFZ2mY0TBQJ/FyYqSPGDdRDMWtz7ELveBdc0tDrgMCt4bisJE9uUGOfwy0Ctdj46 7DOjU4FGJ4Fap+cxx0MI8Vt1IfVaSOFPv3m/vNgldDLQ7TKxxodkuh4k+izgMHxc A= Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: libc-alpha-owner@sourceware.org Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-ot0-f195.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZX7iwYvJrz2ELPlXByaOad/4Nf3ORTO9pUaxb64hBZc=; b=AjTIE7Iq5fkcpEP2NSzMJW52BGmQZp7vV+SFjUtRksDhonlEu9Mjk9J4FPqxxYn0zM GHyihHV+v4AxQb73zdzdA9clyE3n2kr1ltJ+e1NbRmf9FHmfSEag8V1cd5Y2z7UvLqSV lSw9uVYRLxQhr+b0q6vv1hUDSRzgg8gOx3YnPx1KNDc2qkMjWqZfaAFGRLBzvbfx8Pty ad1eTyOtdyOOYSZvZ5QeW1KPrxJHj1I0yHN09p3pgMLJt2wU5FYhImgpPweOMFeeoYh0 uk7nCzAqkq2qCT+CvoJJqr7p8X3A+V2MjvuBMT1CfX1lZIifE6TceGKbFVAdiuhPr/Vc vJGA== X-Gm-Message-State: APf1xPD2m3yDTheyU8MRks+ta1qqouuZQTyTacexwP9oUBeVO943v9rJ 7oH5HiHjOI+2B6ZvXsOgqnn5zOJNdKgIP20KOR0= X-Google-Smtp-Source: AG47ELuI9nPfCyQTJ3H1zfI8pgavvHp2FLD6MBX5QBQ5ecfNK248Qar9HUzqfszzJBpmrmLDGtFYojHm6TvSZffWTQc= X-Received: by 10.157.82.104 with SMTP id q40mr3784529otg.332.1519485651827; Sat, 24 Feb 2018 07:20:51 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82885 Archived-At: Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epbbB-0005L9-D0 for glibc-alpha@blaine.gmane.org; Sat, 24 Feb 2018 16:18:53 +0100 Received: (qmail 15761 invoked by alias); 24 Feb 2018 15:20:55 -0000 Received: (qmail 15739 invoked by uid 89); 24 Feb 2018 15:20:55 -0000 On Fri, Feb 23, 2018 at 9:48 PM, Carlos O'Donell wrote: > On 02/21/2018 07:33 AM, H.J. Lu wrote: >> On Thu, Feb 15, 2018 at 12:02 PM, H.J. Lu wrote: >>> On Fri, Feb 9, 2018 at 7:24 AM, H.J. Lu wrote: >>>> On Fri, Feb 9, 2018 at 6:33 AM, Florian Weimer wrote: >>>>> On 02/09/2018 03:13 PM, H.J. Lu wrote: >>>>>> >>>>>> I built glibc master with gcc-8.0.1 -mcet -fcf-protection. Some object >>>>>> files do get CET marker as expected. But static executable isn't: >>>>> >>>>> >>>>> I said static libraries. If I compile this code (based on the example from >>>>> the manual page) on Fedora rawhide: >>>>> >>>> >>>> Glibc never provides binary compatibility with static libraries. My suggestions >>>> are >>>> >>>> 1. Recompile static libraries after CET is enabled in glibc. Or >>>> 2. Don't compile static libraries with CET. >>>> >>>> BTW, we don't have space to save shadow stack register with existing >>>> cancel buf. >>>> >>> >>> PING: >>> >>> https://sourceware.org/ml/libc-alpha/2018-02/msg00290.html >>> https://sourceware.org/ml/libc-alpha/2018-02/msg00291.html >>> >> >> PING. > > These patches are pending the conclusion of the discussion that the > shadow stack pointer does not need to be restored in the unwinding > use case, and need only be placed in such a location that if it is > written it writes within the size of the existing truncated unwind > buffer. > > Please see: > https://www.sourceware.org/ml/libc-alpha/2018-02/msg00679.html Please see: https://sourceware.org/ml/libc-alpha/2018-02/msg00696.html -- H.J.