Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4517225imm; Mon, 11 Jun 2018 13:49:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJnhjJJjud6SX93WnC8B74L6JxSAd2GQel1X/OjQ3hMlbr5GjWyMPw+pVVTBKQcS+ldibru X-Received: by 2002:a17:902:8a87:: with SMTP id p7-v6mr702575plo.281.1528750158451; Mon, 11 Jun 2018 13:49:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528750158; cv=none; d=google.com; s=arc-20160816; b=He++5Bx5oFwXJSt9yEhlis5XwDhIW5CyDtV36Gt2rm3P1K90nYOcHPPw+TPNF7xIyF bLEX4BzakYxQdVE1oMX3ibG1Ntm0Baedi+3qa+chS6va2c+uemBMiySCnEN+8H14p9Td iR7YY+ZR2TNkdQ3APX+gnZyI/vjWTtXoSxAeqNKupcOUePdibhHZb8uQDo9kvfR1VSWc SU7bwQMU35v0hBcumrZPQSNS4aAfWlJQlTNgvTvQ3/ABukloDejMP7CkRjdnYuQjRJQl rCPpRp+mj5kdoM1JXobt4OjflDRcZ9OspIsFLUSZCxoJOQxr7r/sNmEn9yFm9YRIu3V2 Uz8g== 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=qagfOKKqIN+qJf5yZGDcg1GLb9cWdFXGsEWKP+GauwQ=; b=gUII5A0W7IvaXWYOF/vh7kfg/L96HG5a2vNQQHro8yOqU+fTA76hKfNaUa5lr3slKH WCZO65FrVtreQ/ayDfGECwHKo05mexvR6EW0LsbIqat4miHeyYHeiZ4vlRXRkOP21VgC 2V26DXHv9NUbCSgUEBp6V9lkH0gjMaRDR5R9skdpQk6UDM13oKmP3MgBt+WqxEPQANwG fypjnvGaEr8lVuW3biwqE0PKIKEI6IH1bpOA93rea9jUUDppPjr5H2mmjYK/UI04cCGo 8JX2a/DIKiQxQM0QBP08z2ekgladreIkmMOJu3PXN2/X+MbxpPxd+IiQrmhFh7gymSXV wWSw== 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 f59-v6si29545928plf.500.2018.06.11.13.49.04; Mon, 11 Jun 2018 13:49:18 -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 S934745AbeFKTzm (ORCPT + 99 others); Mon, 11 Jun 2018 15:55:42 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:59744 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934474AbeFKTzl (ORCPT ); Mon, 11 Jun 2018 15:55:41 -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 810E2FFB57; Mon, 11 Jun 2018 19:55:40 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-116-118.ams2.redhat.com [10.36.116.118]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 386F42022DF5; Mon, 11 Jun 2018 19:55:39 +0000 (UTC) Subject: Re: Restartable Sequences system call merged into Linux To: Mathieu Desnoyers , Carlos O'Donell Cc: Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Thomas Gleixner , linux-kernel , libc-alpha References: <1084280721.10859.1528746558696.JavaMail.zimbra@efficios.com> From: Florian Weimer Message-ID: <31fc101a-295b-067b-1a82-7e9e509fc92f@redhat.com> Date: Mon, 11 Jun 2018 21:55:38 +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: <1084280721.10859.1528746558696.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.2]); Mon, 11 Jun 2018 19:55:40 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Mon, 11 Jun 2018 19:55:40 +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/11/2018 09:49 PM, Mathieu Desnoyers wrote: > It should be noted that there can be only one rseq TLS area registered per thread, > which can then be used by many libraries and by the executable, so this is a > process-wide (per-thread) resource that we need to manage carefully. Is it possible to resize the area after thread creation, perhaps even from other threads? If there is only one contiguous area, this generally means there needs to be linker support, similar to what we have for initial-exec TLS today. Thanks, Florian