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: [PATCH 0/2] nptl: Update struct pthread_unwind_buf Date: Fri, 9 Feb 2018 07:24:11 -0800 Message-ID: References: <20180201205757.51911-1-hjl.tools@gmail.com> <4abf9786-1879-f16c-5a01-3261cd718d63@redhat.com> <87inb7pug7.fsf@mid.deneb.enyo.de> <2a02aac9-6aa3-4dc6-b122-039ae85365e8@redhat.com> <87d11emoap.fsf@mid.deneb.enyo.de> <878tc2mkgr.fsf@mid.deneb.enyo.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1518189770 27755 195.159.176.226 (9 Feb 2018 15:22:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 9 Feb 2018 15:22:50 +0000 (UTC) Cc: "Carlos O'Donell" , GNU C Library To: Florian Weimer Original-X-From: libc-alpha-return-90191-glibc-alpha=m.gmane.org@sourceware.org Fri Feb 09 16:22:46 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=eZQ3 DPCbcbJpxNogijtt5g1fN7AcxtINOAetI2v9/ZFguvAmJLFvQQNH1AQPXZBRtgYC 2gV9VCYVHqdNDBbm7zHu0bbsNyUFesjOJQf4WEdsZgeBqxwkd/5v5rFaQH4XJOlm DnDdYoxh+w60h9XCWZA0+yPDM2m0ULSXKvCe57Q= 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=lyqvGZUrPW R4VRxO9Er0z1R1Mac=; b=Ly0lrrpV4LyVekyUfEGQLoY6gAI6lVYmoin2qKyKvf EC5TXlWE3aWtQbhMiilLNmk5tYwmNVGWiklUU3Av+GqnPN/H2dugGYiF7UMEwSah wbAiYskR1KRzi+q7OJD4Bg+HkXBbmyO9nGxj9YrqXDSONAKG3QI9OYUCxizbly3P 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-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:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=HptG4pzabWbzEKfZaAwFom5V1hFhHVI9T3v1wX+odkg=; b=Ah9V5VXgHpwYCdgVqTNiEzNxjL+TC/+ldB8tcv15wg0Dn6fTRv/iZJ5E7sIAK9Zyh3 lWY0nw48zQTaqEOi35j1u6lbt3PbCOTSnf3A54PMDVbQyzsX2a3A/A/Qtm82PAzxBBlr 2YPZTWFKFjsbwcCaA9teXRY0F6aGHEku8CyfqTirhADS2KQiCQ14cOoc4DBjVw9E+hXr ah/AO6gnJIbedn4w7uhrrgrNRmxq9YfoMSIHiT3X4KpAhU4hIQInP1BvviPLa+Mb5NZO 3KcwrhBgO60K0iY/lNZDw6hVNOT4Fj+kGqhfkGDYIYzioWxr/Kkibjcqi4vS2i9zeHtk FHoA== X-Gm-Message-State: APf1xPCv4JCcUGH/LZ57H1dOJRTnq26dn9G4+oyXYVt/5vbzLMtjIVNz TRJ9vwQHnNVBvmxdBYp6bTG2kUjioXjuR/gLYYHxhg== X-Google-Smtp-Source: AH8x224of9EW56fjU857VgNznd7Oy9JkzKGAafgmZGvh8S3d2kf0uFnQrAHi6l8WCohUxGXNKo2ZRqtfVjrZQa13bkU= X-Received: by 10.157.91.73 with SMTP id e9mr2564206otj.383.1518189852269; Fri, 09 Feb 2018 07:24:12 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82539 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 1ekAVU-00064x-4t for glibc-alpha@blaine.gmane.org; Fri, 09 Feb 2018 16:22:32 +0100 Received: (qmail 23236 invoked by alias); 9 Feb 2018 15:24:33 -0000 Received: (qmail 23160 invoked by uid 89); 9 Feb 2018 15:24:19 -0000 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. -- H.J.