Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3235855imu; Sat, 24 Nov 2018 00:45:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/XG0HFV0ICT7uWAMS1PC8cPML03LC2P9Lmouy1BaYVdkYUoh5wi8/2p0kNz73Bh7bRHjWO5 X-Received: by 2002:a63:4d0e:: with SMTP id a14mr17383183pgb.408.1543049141686; Sat, 24 Nov 2018 00:45:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049141; cv=none; d=google.com; s=arc-20160816; b=SjO1vDbEk74zTPjS1OIi1lJdcoQPTr+0WkdFDJ5gFCuVlxQJ8CAHLOoMU9Z3q05Vy3 PVZTIzQE6piVYGrlDaLyv6pbda3OHweZ35tRrvYCXsZx5p+HRgb+/zrOr42O2vFesdUf O4C746JWQEAadvJFDPfiP0Bt3SiypOLqMZgv7MwfnfPQ81XMI+P2BouMb1IHLAe+eqDv h+OllbmtmeSgBOWItVAKuW1POHd+KRXjFDlIAs7WmCXRPM8vkHZPt/I1pYQWfL64ACXr tLGoriXLJaM88t4sItMh8RrkvYbP5gz/x184pUtDj5OZNG3Mo5sKKXVsb/0o4rF3/52h TXlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=gwrrJRLg8IcHz3zPR83YbcPOWYGVePcwSuQdBF3ABKs=; b=uXWGaPkvQUElOO+8z/cmG9desRI5EWfmLSE0MNUAlz8PNdET0Q3Rn+Q0Xxh0wT9xlK UNaPYcV0WarC2oyHiCHddKHHzBP62y4MnF05ZrZgMy6dcKBb7jL/i4c5jvypK24uU/5t NJBzLZsZ2EBLr6y9Fstz51W3GuOgaTNI346gKskx24y3Q4ReyvqFJO8jwG+hzzA2evjC D8Mn0xhDgwPvD7sjr1ZNYbH5/6T6VXlCXXNcOLg6egjIDyZqVPGcVabyk9iwJPOVUZ9l /NolsPONXCwWwg7KWlfKga0wmKnovrt1UTlPtD2IKQYj/jkI7VeWDhp7NVqetawCVWUD lh2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si15031197plg.318.2018.11.24.00.45.27; Sat, 24 Nov 2018 00:45:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440945AbeKXEYb (ORCPT + 99 others); Fri, 23 Nov 2018 23:24:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57728 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732362AbeKXEYb (ORCPT ); Fri, 23 Nov 2018 23:24:31 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 530C33084033; Fri, 23 Nov 2018 17:39:18 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-117-155.ams2.redhat.com [10.36.117.155]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 14B515D760; Fri, 23 Nov 2018 17:39:11 +0000 (UTC) From: Florian Weimer To: Rich Felker Cc: Mathieu Desnoyers , carlos , Joseph Myers , Szabolcs Nagy , libc-alpha , Thomas Gleixner , Ben Maurer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Will Deacon , Dave Watson , Paul Turner , linux-kernel , linux-api Subject: Re: [RFC PATCH v4 1/5] glibc: Perform rseq(2) registration at nptl init and thread creation References: <20181121183936.8176-1-mathieu.desnoyers@efficios.com> <686626451.10113.1542901620250.JavaMail.zimbra@efficios.com> <87wop5xeit.fsf@oldenburg.str.redhat.com> <1045257294.10291.1542905262086.JavaMail.zimbra@efficios.com> <87k1l5xd33.fsf@oldenburg.str.redhat.com> <20181122171010.GH23599@brightrain.aerifal.cx> <871s7cvt1l.fsf@oldenburg.str.redhat.com> <20181123142843.GJ23599@brightrain.aerifal.cx> <1150466925.11664.1542992720871.JavaMail.zimbra@efficios.com> <20181123173019.GK23599@brightrain.aerifal.cx> Date: Fri, 23 Nov 2018 18:39:04 +0100 In-Reply-To: <20181123173019.GK23599@brightrain.aerifal.cx> (Rich Felker's message of "Fri, 23 Nov 2018 12:30:19 -0500") Message-ID: <87zhtzsngn.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Fri, 23 Nov 2018 17:39:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rich Felker: > On Fri, Nov 23, 2018 at 12:05:20PM -0500, Mathieu Desnoyers wrote: >> There has been presumptions about signals being blocked when the thread >> exits throughout this email thread. Out of curiosity, what code is >> responsible for disabling signals in this situation ? Related to this, >> is it valid to access a IE model TLS variable from a signal handler at >> _any_ point where the signal handler nests over thread's execution ? >> This includes early start and just before invoking the exit system call. > > It should be valid to access *any* TLS object like this, but the > standards don't cover it well. C++ makes it undefined: Thanks, Florian