From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from albireo.enyo.de (albireo.enyo.de [37.24.231.21]) by sourceware.org (Postfix) with ESMTPS id 3C2C1384643E for ; Thu, 18 May 2023 18:06:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3C2C1384643E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=deneb.enyo.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=deneb.enyo.de Received: from [172.17.203.2] (port=56501 helo=deneb.enyo.de) by albireo.enyo.de ([172.17.140.2]) with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) id 1pzi1T-008CDl-9i; Thu, 18 May 2023 18:06:44 +0000 Received: from fw by deneb.enyo.de with local (Exim 4.96) (envelope-from ) id 1pzi1U-000Hcj-1j; Thu, 18 May 2023 20:06:44 +0200 From: Florian Weimer To: Mathieu Desnoyers Cc: "carlos@redhat.com" , libc-alpha Subject: Re: GNU libc support for extensible rseq ABI References: Date: Thu, 18 May 2023 20:06:44 +0200 In-Reply-To: (Mathieu Desnoyers's message of "Thu, 18 May 2023 13:48:18 -0400") Message-ID: <87o7mhms3v.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * Mathieu Desnoyers: > Hi Carlos, Florian, > > Now that the 6.3 Linux kernel is out, the ABI for extensible rseq is > frozen, and we could add support for it in glibc. It would be good to > upstream this support before we run out of room in the padding space we > currently re-use. > > What glibc release should we target for this ? It may be possible to hack this into the existing TLS allocator. See the loop in _dl_determine_tlsoffset. It should be possible to add the rseq area as another static TLS block (perhaps as the first one before the loop), with the size and alignment requested by the kernel. If we can make that work, it's going to be a fairly small patch that should be backportable as well. That could go into 2.38 or 2.39. If we need a new TLS allocator, it's definitely 2.39 material at this point, potentially later.