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 04:55:12 -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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1519563197 1268 195.159.176.226 (25 Feb 2018 12:53:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 25 Feb 2018 12:53:17 +0000 (UTC) Cc: "Carlos O'Donell" , GNU C Library To: Florian Weimer Original-X-From: libc-alpha-return-90560-glibc-alpha=m.gmane.org@sourceware.org Sun Feb 25 13:53:13 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=okLK 8pl8MtxWCIo0kUuGbCnBXrH8rdIehmSfQ9N6EftcCKH+hfBmK8IAli0OPKfSUI5Q ZL1wrYJxNFQ+JrSLX6RkCirVPE+JFasNCSX8mGzvB2mO+ChiWpijdYQFfV9veA74 l4NZm4Sw37r69eLeZ9Ge+d4jmFNFPHctmTH5AEM= 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=0yK9a4bNPj RId1tlW1scTx8Kb78=; b=qa5YIO4RsJBmAPftY4PjDSXYK/Bl9bTFuGyc3OlEfn PMj7LQXL6K4J5IBvQ2z1ekEfjdVw42aJDoXLZhuk9amIAqhyaRMm+q/XJRcm4BWs kqq1nrivR5Y4yLLdqMpFy9mOTXeRLwDon94X69NtEbbXdDwt8XjfxuXfEgZuNX+L s= 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-f181.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=Nz+pPSTQfVQoQ2NxVvEGIeGrWaOnXDo1KKK1vgMx5+s=; b=Lj2Wg5YeL9FzY2ht95HOZzPZavuGmQbpiyKamlgNfwGlK6dUDt1H6WljfSUsUG1t+V HHDhUpbBtakPdIAfCA97avHXx3mMoU51rcSXsAo49QtsJQg3VpmPw0IfRuz1y081TBPD JlkpKVAHmUv1YcvJE0Om5HLtNs/AzKPB9/poM/fUs6wPD2gW6itgvVT7oA10zq8Efq7I 1G2fHEJIhreZKIE2ijgCLQ6NlWGVE82K7la8b6S49c4vteU5x7YpS9RRRoYMlSgL8yYo BZY22l6uISCy6hJ8Sa86487Ja4dJpknZH+azc7qHNzs4U1DaF7ZGPKFWzA/BpdHD8Wf9 uUTA== X-Gm-Message-State: APf1xPB+dG9qjmEBmnRikP7D99IbiFiA+BkC0AlITjtFzfAQu5aI2sup 9vPahFGukPxVUETCmpk9vV0gM85fJjDX3yuST9l06g== X-Google-Smtp-Source: AG47ELuKCzZZe+U73Tc812jzJdySzX2iOlo8UKbNIlSpVU88mmtOuBBYG74wMNnEmf4w9Xt6mcI/qgQVV3afHVBlOwo= X-Received: by 10.157.20.142 with SMTP id d14mr5105562ote.204.1519563312743; Sun, 25 Feb 2018 04:55:12 -0800 (PST) In-Reply-To: Xref: news.gmane.org gmane.comp.lib.glibc.alpha:82892 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 1epvnk-0008EU-Vr for glibc-alpha@blaine.gmane.org; Sun, 25 Feb 2018 13:53:13 +0100 Received: (qmail 120201 invoked by alias); 25 Feb 2018 12:55:16 -0000 Received: (qmail 120192 invoked by uid 89); 25 Feb 2018 12:55:15 -0000 On Sun, Feb 25, 2018 at 4:53 AM, H.J. Lu wrote: > On Sun, Feb 25, 2018 at 3:59 AM, Florian Weimer wrote: >> * H. J. Lu: >> >>> On Sun, Feb 25, 2018 at 1:26 AM, Florian Weimer wrote: >>>> * H. J. Lu: >>>> >>>>> What have I done wrong? >>>> >>>> My understanding (shared by Carlos as far as I know) is that you do >>>> not need to restore the shadow stack pointer when unwinding for >>>> cancellation or thread exit. >>> >>> It may be true for thread exit. Are you saying that a function will never >>> return after cancellation point? >> >> That's certainly the intent. Cancellation is supposed to be >> unstoppable. > > The question is what happens after cancellation. Can a function return > after cancellation? > Let me rephrase. Can a function, which contains cancellation points, return to its caller after cancellation happened? -- H.J.