From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Weimer Subject: Re: [RFC PATCH v4 1/5] glibc: Perform rseq(2) registration at nptl init and thread creation Date: Fri, 23 Nov 2018 19:01:38 +0100 Message-ID: <871s7bsmf1.fsf@oldenburg.str.redhat.com> 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> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org In-Reply-To: <20181123174438.GL23599@brightrain.aerifal.cx> (Rich Felker's message of "Fri, 23 Nov 2018 12:44:38 -0500") 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 List-Id: linux-api@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