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: Sun, 25 Feb 2018 05:49:40 -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> <90d3ee18-c292-117f-a0c1-7822e340ca02@redhat.com> <87a7vyjsqv.fsf@mid.deneb.enyo.de> <87vaelbetu.fsf@mid.deneb.enyo.de> <87fu5pb7ql.fsf@mid.deneb.enyo.de> <877er1b4zp.fsf@mid.deneb.enyo.de> <87371pb3ga.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 1519566466 14063 195.159.176.226 (25 Feb 2018 13:47:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Feb 2018 13:47:46 +0000 (UTC) Cc: "Carlos O'Donell" , GNU C Library To: Florian Weimer Original-X-From: libc-alpha-return-90565-glibc-alpha=m.gmane.org@sourceware.org Sun Feb 25 14:47:42 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=qoDs lrTigrDX86YQpP0AE38ihGSr0chxswThOka7px25/6+JNscarxtoAXq3sH0SBIZT oJraTuiFiDrhGU+pWjFoWLaHGECbHLhummXcJiui/P2WLrrklBFhFwNyop/ntiQq PXY+i3dM1r0QHf1yzhQ2QkxCMk2g/jnPHf8yxCk= 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=JuC26VmMgu LK1DBZjBJEDB/PXSk=; b=ZlljG/Rs4WcUlyEe1DKworjIfl1enWwwtmPP0oFBxM 27pHhJGl1c8BusKCbBqzFgdKzzebgeuFftvES0ibaCjKQV87KriO0Bg/iuQRGEGV Uel/8iF3DraU1qDhPJszZ3p2mKZLpVQqNJOoXw5v+koqQXJtXDVJ3ZnIyGQSkAUd U= 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=our 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=hmtDCJTGp61r0qe4nzJAJ5kmpviapxIz0Y3PdjiWSgE=; b=e6TKCpnaKgAMhA3jol0atSy5DQ+ip/glc8mbGDM+EuLRNlff6RlzyvO9D7/jPZX2bb PF/78CKOUuz5weORAUS7e4xTlKJEyfSOO7wjlNpdRaOMLrlesnQd7Mo4lBqabDzmKbnZ ShLSmL6znIdJy4LnR1AnsweecU3UC8RTIcfh5U87XyWL6QAju6wdWLOALCMlUiX0LydR xI3SeUhvYdUtMvDMBz4Hu9wlpADkeWCwCTJfWygDDNIePt5W6L4Bxcn+A4zirn0J0Dr5 g8S2YVeA7LcxbhCQ4MYmqDTpaWfIe2uiKwmZKTZVKnhrnEObSkdExNIQtSRSbPR80mab YW+A== X-Gm-Message-State: APf1xPBngZXv6YK5EElKId2cCJ65TIrtuuNb3y/heMai7wDXsMGyW3tb pnfBEoQzvr7RS+CV5L/uqXwWFay181dMbfCMvjQ= X-Google-Smtp-Source: AG47ELsJDSWpG/G3hwH4/LX/o1BzeNR/GuyZ44WrbZDA6/y3uA7wy4ZX1s1pq5cd6ZmTsaMqLiddRA7h7pAGyGFwAfo= X-Received: by 10.157.65.187 with SMTP id p56mr5699539ote.123.1519566580856; Sun, 25 Feb 2018 05:49:40 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82897 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 1epweT-00039p-GC for glibc-alpha@blaine.gmane.org; Sun, 25 Feb 2018 14:47:41 +0100 Received: (qmail 46392 invoked by alias); 25 Feb 2018 13:49:44 -0000 Received: (qmail 46383 invoked by uid 89); 25 Feb 2018 13:49:44 -0000 On Sun, Feb 25, 2018 at 5:36 AM, H.J. Lu wrote: > On Sun, Feb 25, 2018 at 5:31 AM, Florian Weimer wrote: >> * H. J. Lu: >> >>> libpthread cancellation implementation passes cancel_jmp_buf to >>> libgcc unwinder, >> >> Oh. Where does it do that? If you mean _Unwind_ForcedUnwind, I think >> that's just an opaque closure argument for the callback. > > Yes. Libgcc unwinder needs to deal with it. > Because of libgcc unwinder, provide another set of setjmp/longjmp without saving and restoring shadow stack register for thread cancellation won't solve our problem. -- H.J.