Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp361064imm; Thu, 14 Jun 2018 22:12:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKqbJ6jb6tc9byA/5mFLGT134oZ3F0kjN0rWB1+i2vtuscVkV+mbyDDcKxeQwzQJxLkBlI7 X-Received: by 2002:a65:5b8b:: with SMTP id i11-v6mr163875pgr.225.1529039568234; Thu, 14 Jun 2018 22:12:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529039568; cv=none; d=google.com; s=arc-20160816; b=yBaAlFG+CaHEqonOMwMM3ZYtVD52d8ehPLnKdo0eBbs0umYSpHnz75aYLX1NtI9BH1 js8y7zpVKxsgTOvoQRv7m9acT327x+SMebuLJQZhCi/UklxcDJGk+gluE7RZiK3ZNGFZ ueKqm11A83HGa3MAzX8pjxuy0aIpu6EZ3z/NSjRCSfjeppDtPMODf+f5e0/rTHQraldh a4Q41Zw5DUovoTJe1d2KlD+vHB09dleBTSRzV6iyIHQ2V7ydKqUE/iQ5QqLV2dMOMnF6 5GFIk9NCuQW/ZhTqWqQIUXFGz82fw8TaM1P+Sd73/jZcpLIOyK/dyEHgaTzlCI3aKGFw 8p3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=VSmcfvC3lUqVdzW4FcQEalCjx/9K6P4zJVEbFQz1aPs=; b=WsKyQ2Nl97TuUDZxjySanKrftp8mf6tdn/TOObM2MX46g05GRuaSqtQdeWX1up07pd Hto37f5zkI5Xl7+3RhV5Pa6WBErGD6iMtb/XqoBIMrY1KAA9lZ35morRoY2ysKHu1Kej mw47XbFq6yFaDSIxB05TlbR46jrbwevks16htn7NZQoRId1NWSXFYo79frZnomXgp3Tm aasHbzT6RucueprMFtPSsXA2Lnd6xVLmkZAjXrZqUA0cosIs5NFOZ0ECE0UBRsn+97h4 MWttaa5LGJnzAvo83WOpsWorbHRusp+70ag3fGYkjmT5EdUPsUTpmXkv9VcLO9yn833m jE8A== 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 a6-v6si6844447plz.351.2018.06.14.22.12.03; Thu, 14 Jun 2018 22:12:48 -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; 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 S1755854AbeFOFJs (ORCPT + 99 others); Fri, 15 Jun 2018 01:09:48 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:53562 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755823AbeFOFJp (ORCPT ); Fri, 15 Jun 2018 01:09:45 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 98CC3B4DF; Fri, 15 Jun 2018 05:09:44 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-116-61.ams2.redhat.com [10.36.116.61]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1D0A12024CA1; Fri, 15 Jun 2018 05:09:42 +0000 (UTC) Subject: Re: Restartable Sequences system call merged into Linux To: Mathieu Desnoyers , Pavel Machek Cc: carlos , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Thomas Gleixner , linux-kernel , libc-alpha 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> From: Florian Weimer Message-ID: Date: Fri, 15 Jun 2018 07:09:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <894222691.12973.1528981314012.JavaMail.zimbra@efficios.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 15 Jun 2018 05:09:44 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 15 Jun 2018 05:09:44 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'fweimer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.) Thanks, Florian