Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3895071imu; Mon, 14 Jan 2019 10:57:20 -0800 (PST) X-Google-Smtp-Source: ALg8bN6lptnmSF8igYhZzucWqrarOrA6cBQb1GNP3xiOyiy/iHAET686RJ/k71Y+D7UME8J5riV7 X-Received: by 2002:a63:170c:: with SMTP id x12mr23587779pgl.364.1547492240226; Mon, 14 Jan 2019 10:57:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547492240; cv=none; d=google.com; s=arc-20160816; b=gqJRWqF+WMdP88f5tGijqmLcaXYtc5WeTcrUTNtTp/bjjc5nHRh+mzet1h367u4ZKq T29TRDN0DpEXYmd1mjXrg/1LzXQlgKQRAL6MAL1mLPeKQF6oE09SD4PX4T1yMxRleycK GXDPQvJ4mrb6FE2/zEiBYsiX7VhNdxIt9OwSu9qXgxWgtH9Tp9i+zo4KcNMtsTuMUYef GvxuJb46azk2qLmeGsehCUbtWwnygbNPr9560+8fl1rl+OXBVCzL3xi0V9N9BiM6bV9d Kozkaz//NDa7uz+GwOB/akJ2XXsOqpI0Yigt7c8TqxDTNY13Cde5QpBiY3tU4Lwkx1hA ++AA== 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=rxwmhzEifcDMBkohuOTiRUG40FjTRitTW5c1lFqf9Ik=; b=Q69Is25uwaHHPNfB9+8I/pHc2PRCJHheSWHXSx7Eyl1b1M72dluLe/PzVWae09wi20 fbi+v4AHvszKDc2qe+nqFwy/3BFBvwTNJgk66VbLUPi9/ArMpfMV8F9Ph++m/CV+IY0u mkfflGRsHXwE95luBoAV2tze8jxWV7JU+mZRqsWd7eHZLuGAer6dHNmwcyBME9jsPJ7A syyXevehR9Jj5tOqjBkH+g2ehjxdtkXpUYFADpFLPyD+EzpfF3DEf87ui4KX2W1ai6EM Q9x6xo2plMIxpIk300aKGPTw/uDlns9nxXl0Wq+LFFRu4vmoQIhrYQtJ1fRjBCdGVKTk ZyyQ== 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 t12si836532plr.311.2019.01.14.10.57.04; Mon, 14 Jan 2019 10:57:20 -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 S1726853AbfANSzl (ORCPT + 99 others); Mon, 14 Jan 2019 13:55:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47492 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726745AbfANSzl (ORCPT ); Mon, 14 Jan 2019 13:55:41 -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 B1CF8C0CB586; Mon, 14 Jan 2019 18:55:40 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-116-20.ams2.redhat.com [10.36.116.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E5CCB4C48E; Mon, 14 Jan 2019 18:55:09 +0000 (UTC) From: Florian Weimer To: Mathieu Desnoyers Cc: carlos , Joseph Myers , Szabolcs Nagy , libc-alpha , Thomas Gleixner , Ben Maurer , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Will Deacon , Dave Watson , Paul Turner , Rich Felker , linux-kernel , linux-api Subject: Re: [RFC PATCH glibc 1/4] glibc: Perform rseq(2) registration at nptl init and thread creation (v4) References: <20181204192141.4684-1-mathieu.desnoyers@efficios.com> <87h8fkz6qx.fsf@oldenburg2.str.redhat.com> <1681283664.1380.1547152315426.JavaMail.zimbra@efficios.com> Date: Mon, 14 Jan 2019 19:55:07 +0100 In-Reply-To: <1681283664.1380.1547152315426.JavaMail.zimbra@efficios.com> (Mathieu Desnoyers's message of "Thu, 10 Jan 2019 15:31:55 -0500 (EST)") Message-ID: <87fttv9iic.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (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.31]); Mon, 14 Jan 2019 18:55:41 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Mathieu Desnoyers: > Therefore, both symbols will end up in > sysdeps/unix/sysv/linux/Versions. I'm not sure what you mean by that. The physical location in the directory tree has little effect on which shared object the symbol is placed in; that will need other changes. >> By the way, you could avoid the need for unregistration if you allocated >> the rseq areas persistently, index by TID. They are quite small, so >> with the typical PID range, maybe the wasted memory due to changing TIDs >> would be acceptable? > > Would we be able to access those __rseq_abi as normal TLS IE model > variables ? The overhead of indexing an array matters for a > fast-path. No, that wouldn't be possible in this case. You would need another indirection. Thanks, Florian