From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Carlos O'Donell Newsgroups: gmane.comp.lib.glibc.alpha Subject: Re: PING^2: [PATCH 0/2] nptl: Update struct pthread_unwind_buf Date: Fri, 23 Feb 2018 21:48:41 -0800 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1519451215 4499 195.159.176.226 (24 Feb 2018 05:46:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2018 05:46:55 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 Cc: GNU C Library To: "H.J. Lu" , Florian Weimer Original-X-From: libc-alpha-return-90536-glibc-alpha=m.gmane.org@sourceware.org Sat Feb 24 06:46:51 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:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=Ai9IxE6BO+QVA1ZU +jnGOPnPy7wU5GsP2+ij2zAZLkfYK/S1zmXJVs//uyOinw8iTkdZln87tqpZN81T SiCgTwy1F0CQ7cHaARFiJQlsnaZoTMwuvol9Nkgy6V2KcDlemblDZjQLDJnL7AIe PhL/uZ7RPBFqH2reJCAGnHDgHSM= 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:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=F7Q9p8We/3CuBPTSNoTmZK +XOtM=; b=WHewGPTAro14lfswlGr1SBkE0u6MF4IqLPX5cymaYHSMTdc+/U6hiM 2Es33O1HkRRUwHBWDAno/uvkKyP6f+XX1+3T00BbjBZIj9K6nWfMLIzSpWBT7d4e BzeVYSLCTuP3AzKcbu8yz3MSHDpyOBd62uADR+tPtfbmvFs7UAv54= 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=-0.9 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy= X-HELO: mail-qk0-f194.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=fKvc/srrpMcc6GSc7KI3M7Rmx/hz196UxoCcqSUEr/s=; b=by8zmkCA11TdlXxNI1KtJqeWrSbJMbkj9VbPJuk+fKd8z0fapX5b1bIVlZSawypBdR +cFTrqyTOuY7p538u304t0XsyjjxgSSAQshhjKbBSVI34INYXrXm8/zcTxP1utcCEZIy T1zBC5zt+PsDUiWAc7KxzSl6S0N1ldIy4U7wfQ9iSdBvBcXPDEdQCN5yhJIblzDIfMgY CdmU18OCOCVB9bqUdmcCw9foMlaUxHcwJ5anaidfz7tFfCMa1w4k1fgDsO0leDSPUPj3 J9QP1ccBZ2meU2QmwzlH7QDxawyM53Te8FWDk4JajFszbNo246Iuonw73h+z18k6rsce VUrw== X-Gm-Message-State: APf1xPAAvl/wD9TvLK+pXPJ8PQdYh9AVnXod5J4aE+aRm/6S5K7PJSMi 1v+Ibl/eb3yP2n7fegWlqDnjzK+7J+Y= X-Google-Smtp-Source: AG47ELv5g1IEUNXY5Bb6fMg/ohQam1ngBVBBEhg8YMa+ozCHSx1wkswZ2gw01M7pavEh7Lnj8gJqhQ== X-Received: by 10.55.8.132 with SMTP id 126mr6216397qki.10.1519451324400; Fri, 23 Feb 2018 21:48:44 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82868 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 1epSfa-0000bf-Ug for glibc-alpha@blaine.gmane.org; Sat, 24 Feb 2018 06:46:51 +0100 Received: (qmail 114332 invoked by alias); 24 Feb 2018 05:48:53 -0000 Received: (qmail 114250 invoked by uid 89); 24 Feb 2018 05:48:47 -0000 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 -- Cheers, Carlos.