Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3237324imu; Sat, 24 Nov 2018 00:47:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/VUBIS6eU0T32DbxE3fO2o60EAKppfAWU0eCCy/5nJwa8x+PuZWwsOJzzZ2IScFTUOpntYf X-Received: by 2002:a63:170c:: with SMTP id x12mr16692014pgl.364.1543049255881; Sat, 24 Nov 2018 00:47:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543049255; cv=none; d=google.com; s=arc-20160816; b=u/PDbb9//+pggI69+MR8Z3GKOonnF1NrDUTieEhmle4pxA9sz/UTNrZICvLuyjkzmt b8K4Szc7FqjQPshtMKWadxSZuKNPjNudr+NMUf/WjBHnTnLneWUMBed+OASU+JTvOdMa Kohw5AbUkXWlqY0zZg42Z57zOPs8XQUHI1g5PIxRQG1Ho1a4GdSBfinvk3yVy47D1yUN knia0Bk4+JNDq23H1q4Yxh1poNdK9Q11xqj5eiix38f4rmNEKUhav5JfPvmqtmiOc9x4 /HM44jm1sb88fooAcIa+s/nP5XDK+EShBSc5DHHyVhLWzVyxJhKYwY2KZOnJjFA+LniT CyBQ== 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=yMISA4O9e10qSqrqisC0DQkdzVX+tWtMXWOHjw09p6c=; b=IkC+nx+0NgdrWGy1eaW+Ub41qCd6kXJhQ6yHLuF6aGE71UfbAdeGX/F7VL0T2UFlxo 8NQdZLWQ3VyT6QXMG9NkwOhZ5QZdLEA2GmG+G0YE77cM09PNQ3wNcmwaiG2i98h42gyX qmZztLARyxuZ+BXoY6UKCeiYgZaaMXlx/TDUC2jbCbI0KC20x1d9laFycy0Wry4l2AJs De/Pjcvv4Xi9U8G+PJoFnt+x4ccvLeMnvUo8KxcdT0qdb37z+hZrEsGcJOFgxcToOYdp k8i3UYOpVnZfgrTgL1BDmK5Z0O54JJZnKN78PA2yBMzPKEq0HBRzBLVCUUf2ocIvqSR/ /pIQ== 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 az5si35675872plb.166.2018.11.24.00.47.21; Sat, 24 Nov 2018 00:47:35 -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 S2395140AbeKXErJ (ORCPT + 99 others); Fri, 23 Nov 2018 23:47:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41950 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730633AbeKXErJ (ORCPT ); Fri, 23 Nov 2018 23:47:09 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B52301555A; Fri, 23 Nov 2018 18:01:51 +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 904335C236; Fri, 23 Nov 2018 18:01:46 +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: <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> <87zhtzsngn.fsf@oldenburg.str.redhat.com> <20181123174438.GL23599@brightrain.aerifal.cx> Date: Fri, 23 Nov 2018 19:01:38 +0100 In-Reply-To: <20181123174438.GL23599@brightrain.aerifal.cx> (Rich Felker's message of "Fri, 23 Nov 2018 12:44:38 -0500") Message-ID: <871s7bsmf1.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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 23 Nov 2018 18:01:51 +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 06:39:04PM +0100, Florian Weimer wrote: >> * 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: >> >> > > C also leaves access to pretty much anything from a signal handler > undefined, but that makes signals basically useless. Access to atomic variables of thread storage duration is defined, though. Thanks, Florian