Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1080061imm; Fri, 15 Jun 2018 10:51:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJzwRu5HrgTYiD5c9lnG46//Vlcor39Uf7jXr+yR7/87C2MC5vue3O+3ex/h/XnMuXzWosx X-Received: by 2002:a63:7459:: with SMTP id e25-v6mr2440531pgn.186.1529085069349; Fri, 15 Jun 2018 10:51:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529085069; cv=none; d=google.com; s=arc-20160816; b=yJk3aOBNBVDo5coBoTvp3QgIRkvxoXinJhkqzxNh5Q02VxmPhg9Dy18VlXgdm5xb0u 1FgtAVNtnSvqgeKZTcA3ArFTCB/dJHY4u2hL+K0Zg22U5aomuo1V4NwWpm0kdp7u6bzK 1OY+rdvTd40rVN5IuKXQ3ZytwWwuHVq/ro7KupvZdTqF+i3dZvBZlBQrpVVkSK043vMR Q22FZVTSjRVO6QOy+jDMVOtSN8XIlw1PA/cleCdeKfI0Osi62y6fvvSdMOibY4As1riA eCJWxTqjho5xGtUQe26JFdVXfnl3YqQjYGgPDI4ZYRMCAZU90C908NLaRhvCyvz/vuU+ xxJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter :arc-authentication-results; bh=ugdPHqB4NyO3WnoOGIXshz4+Q97pPFWbQNxYdkNKtao=; b=kKT7X20yXSBi/zCz4L1nXFgKULQcQjfvfd0JQGmVhP4pV57G58C6yYz8ncNeughEOm v9OyYBUbnW9DjENGAevxhYsWb5vjyz17C/IFZXVWje0s6z59qYGW1tyDlGM1clg5ADal KLtsBNij9Q2Q8dHDQ0Q1lbfWSq57c65xm5h/8B7poDSq/HoZgB8bcdGEKekE4gcpoork tCyMiH7oYsO3Jd30EJkVQo55tGJNbmy49UL9oOPG6s+wjSf+Cip4DNrtrG0wlIni+/rG Zk3pf5seds/+3ls1ayuV1roBjYSxs6JNWzBorMoh8aZYD6HutXHIOkEJAaLr6iGJrJwJ tIFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b="QHx/biTE"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c27-v6si7135684pgn.320.2018.06.15.10.50.53; Fri, 15 Jun 2018 10:51:09 -0700 (PDT) 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; dkim=pass header.i=@efficios.com header.s=default header.b="QHx/biTE"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936343AbeFORuT (ORCPT + 99 others); Fri, 15 Jun 2018 13:50:19 -0400 Received: from mail.efficios.com ([167.114.142.138]:50294 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932194AbeFORuS (ORCPT ); Fri, 15 Jun 2018 13:50:18 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 46AED22B6BD; Fri, 15 Jun 2018 13:50:18 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id IlI_9IyM5Puz; Fri, 15 Jun 2018 13:50:17 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id D91ED22B6BA; Fri, 15 Jun 2018 13:50:17 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com D91ED22B6BA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1529085017; bh=ugdPHqB4NyO3WnoOGIXshz4+Q97pPFWbQNxYdkNKtao=; h=Date:From:To:Message-ID:MIME-Version; b=QHx/biTEhrn4xilx6asQ3jJvfGiak5RsmmLpYTS2XaawS4AfraqsvB1dNjYMuquUs hVNFfw2DfyWyXBRy7lClHPnEzrTD7atA+xB5GU66enCwKTRBZnsLD7K8HWiyxh7Il0 MT0qnPlbP6atjPO4LFYUo/WVfrdbAnvU1Wz4da1xtpcE9kO778eg8OxL2R83PstdXY pVYZC2WLc+3KH9f9T4TWN5ZF06D2AK50VsyBDU8Pa08054dbWN4VFcS+rmMCjt81et 8lRckuQEX5Lm6U3u6LeChHNlPI+Vp0SxhmaO97eecSs1vEUPtjw1QeUH0YY0VtVBbn 0aIifCLRv62Tg== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id TZlTSmDtuOgA; Fri, 15 Jun 2018 13:50:17 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id C441D22B6B3; Fri, 15 Jun 2018 13:50:17 -0400 (EDT) Date: Fri, 15 Jun 2018 13:50:17 -0400 (EDT) From: Mathieu Desnoyers To: Florian Weimer Cc: Pavel Machek , carlos , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Thomas Gleixner , linux-kernel , libc-alpha Message-ID: <422468177.14427.1529085017684.JavaMail.zimbra@efficios.com> In-Reply-To: References: <1084280721.10859.1528746558696.JavaMail.zimbra@efficios.com> <31fc101a-295b-067b-1a82-7e9e509fc92f@redhat.com> <305409897.10888.1528747473727.JavaMail.zimbra@efficios.com> <091061df-3482-8762-30e4-feaf3417be11@redhat.com> <417742741.11550.1528821084084.JavaMail.zimbra@efficios.com> <20180614122759.GB8798@amd> <894222691.12973.1528981314012.JavaMail.zimbra@efficios.com> Subject: Re: Restartable Sequences system call merged into Linux MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.142.138] X-Mailer: Zimbra 8.8.8_GA_2096 (ZimbraWebClient - FF52 (Linux)/8.8.8_GA_1703) Thread-Topic: Restartable Sequences system call merged into Linux Thread-Index: FxHJxO2X/PkHE33fjREx7yFbJyZx8w== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Jun 15, 2018, at 1:09 AM, Florian Weimer fweimer@redhat.com wrote: > On 06/14/2018 03:01 PM, Mathieu Desnoyers wrote: >> Another alternative would be to somehow let glibc handle the registration, >> perhaps only doing it for applications expressing their interest for rseq. > > That's not really possible. We can't rely on the visibility of symbol > bindings due to lazy binding and hidden visibility. Registration of > intent by other means will not work because if it is done from user > code, some other library may have already launched a thread at this point. > > (It's also a moot point if we want to use restartable sequences in glibc > itself.) Considering that we can expect the glibc memory allocator to benefit from rseq to speed up its memory allocator, this means pretty much any application linked against glibc *will* end up using rseq indirectly. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com