From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6CC20211B4 for ; Mon, 14 Jan 2019 19:22:44 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=tNgsaFqGOWkmzDxP Rcp63D7zP46rvHqwPMJS6qHp9UcuMqEjNA40DLDdgJH9i5m5tjbcbTbcDN1DTpOS 0Igx9lj1aCWRjk7TT5oGKYyAt6LpVqrTRnbc4UiGQ3ZIaqrwbIhlUyKJJ3NEzhze mPuFjZFf6RjkdcLNIaiBp3lz9Ao= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:message-id:in-reply-to :references:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=2lLmHlbO+5dW0aIdVyYm0m nTCwI=; b=uym7Vzm3d8UpAKjBgr8h46VG0y/iBw+LHIReyFd8VORLzvrsoAhHBs cNq4DzOCKCEu71o2PIi2/NdLqTmWteYuKYlR6wzKUJHa6RXpGQ/whm8Gy+NmchaK XXgwNWqBSa7uXHyDeNWqjfDQkFFxKm8YmwQnNo8kfnMqaMFtZh27M= Received: (qmail 105540 invoked by alias); 14 Jan 2019 19:22:42 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 105527 invoked by uid 89); 14 Jan 2019 19:22:42 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail.efficios.com DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 005BCA3FDD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1547493758; bh=DpFoyr4ZaxTw8xyYjUlySVIEAvWzDWa4seh1yWPRLek=; h=Date:From:To:Message-ID:MIME-Version; b=KXSeCyeVJT4UUYzNDp0gLmauP1j0a/v80b+vMEPqRGhiibHs2d4cpgWhgj0p0euwG CqV1AXEnQFJYB8G3Oqy5+CfMWlZTauzQUmxkS+NFvCAwEqYpYKPAxJDozhnLFiFAte mF1mcQC6MzDT0LhJ9jh5eCpoANkbKTcFVbO+oPeJVcx6dwL71m4qYTLhB3Pe+vc/r6 dlvq9F1kiWVnDqDYA5D/LduAn7ibJqHdyC1ZeNAVVXr7t4zLdp21KgHPrKw8Kw+r1N BaIKb2csTAtD679g1dsWzHMVCLUMDiUQHTDnr1vOWRSoNzjqZoFmtXNFiQO6ugdUNU Q0M5DR2t3rcJA== Date: Mon, 14 Jan 2019 14:22:37 -0500 (EST) From: Mathieu Desnoyers To: Florian Weimer 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 Message-ID: <394676913.486.1547493757710.JavaMail.zimbra@efficios.com> In-Reply-To: <87fttv9iic.fsf@oldenburg2.str.redhat.com> References: <20181204192141.4684-1-mathieu.desnoyers@efficios.com> <87h8fkz6qx.fsf@oldenburg2.str.redhat.com> <1681283664.1380.1547152315426.JavaMail.zimbra@efficios.com> <87fttv9iic.fsf@oldenburg2.str.redhat.com> Subject: Re: [RFC PATCH glibc 1/4] glibc: Perform rseq(2) registration at nptl init and thread creation (v4) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit ----- On Jan 14, 2019, at 10:55 AM, Florian Weimer fweimer@redhat.com wrote: > * 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. I'm currently moving the symbol definitions to csu/rseq-sym.c. On Linux, its content is overridden by a new sysdeps/unix/sysv/linux/rseq-sym.c which contains both __rseq_abi and __rseq_refcount symbols. On other platforms, it is a stub file. >>> 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 for the clarification! Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com