Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4487870imm; Mon, 11 Jun 2018 13:12:55 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJdL+ho1RiQvxlSNgl0PmroHRsdH1R1V9IYHUf+ooD9seq/y6/hIRRRna8N9Q3J37aCv58x X-Received: by 2002:a17:902:6b8b:: with SMTP id p11-v6mr671346plk.212.1528747975880; Mon, 11 Jun 2018 13:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528747975; cv=none; d=google.com; s=arc-20160816; b=kJTCTasu2ra/+nQWmTk/z7A30EFL9rz1WrmQpAyN7kfgHauNZBD7ZQtQOqT4tocT84 ZQyB43cmKLzw2krKbmWdUL8g1Ep9w1JZhJEp26gCWtMRKN3oHmy1T7t+1BGXSaYBUs1T eos0AhYagDouA7qaRNTkjwtmfu9tHEfuP7314COMd3cMuf2MSyg7fED/HTEtHdqrSRi/ kW4hGem1mt+TxgxEe1S1JxHjnnKoHgOnFbyEsAr3/Lx7RSN968edF+hZsSOsSCd0zVlL oTy/5MlNkU5IZSmWcXuR+98uPP57YJvc6cmDCAcjjJBOCMecWOKoFt5zQQ/Qg5vwY8Z4 YC+w== 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=ILK2XKVdRd6EjsYTUwT5pnIka5COcALqHFTsCN1LG6s=; b=kPxsa31gJO4tP4ZH71icivCz1Uk0BTLhGXwsudQ1J3NnWQCJ0HDDT6ErxNE4Xyih1g blQJIhOdJXwc7EnELvmJ23YZm5NE63CMzp72b2/pVPYou35zTgNP/KpIa/28WNZlnWEe V3hCxoFcRbENfDk7a/AFttrFQ9ml8BhP2gkZdwX0jO/T8tYopvZnl6aAGVZ9RYHkTXHt Hgk+GbhPRut5XIvoHB+iq0HoGHBQ9ehNiMBsb7sqUdMfy8OyeWTKUWUU5ynJWYFEmiLy BT/v7mvBWsCoRiIrm0BmjFiE3tLHXxQ6mrZ9mFd2nSrDJXlKl2elDTyZSmRRTxG0lXwt 6UbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=O1C2p8oi; 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 t6-v6si1891435pgq.241.2018.06.11.13.12.41; Mon, 11 Jun 2018 13:12:55 -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=O1C2p8oi; 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 S933421AbeFKUEi (ORCPT + 99 others); Mon, 11 Jun 2018 16:04:38 -0400 Received: from mail.efficios.com ([167.114.142.138]:49166 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932139AbeFKUEf (ORCPT ); Mon, 11 Jun 2018 16:04:35 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 84B3D1BCA1E; Mon, 11 Jun 2018 16:04:34 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id bj48XmxqSzyl; Mon, 11 Jun 2018 16:04:34 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 07DF11BCA1B; Mon, 11 Jun 2018 16:04:34 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 07DF11BCA1B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1528747474; bh=ILK2XKVdRd6EjsYTUwT5pnIka5COcALqHFTsCN1LG6s=; h=Date:From:To:Message-ID:MIME-Version; b=O1C2p8oiGDHzOkfczH2ELHLr4BoJHQM18czFhKNiyK7K2zuCZZqWxjjmJGFpo4EFd sHwgnM/IeHir0QHUHaSznzx15BWJGqogsxilyEpRBFiqxVa/UoTXMuAWFMUjYIHhBu n4VS5WE4WV0vzhXLlkvhE7ENk3yDqKlBKLKia4pAy0Kg7Cnvp/wKbz08+kQqPfnnIc wUq40fxzWIfnzRRfQArkwn82KI6t0ZQw6p1frmy9AqPgh4nlChsTRXKezihovE6Wg4 IJks0Np3MoYIXHwRtzOmS/Z8rjMSV84ShT09pDimc3lQKI33YUQ+fG3rG5o+eNGM3b SCTjl3uTupu2w== 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 DuMJsdJj0jce; Mon, 11 Jun 2018 16:04:33 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id E47C31BCA12; Mon, 11 Jun 2018 16:04:33 -0400 (EDT) Date: Mon, 11 Jun 2018 16:04:33 -0400 (EDT) From: Mathieu Desnoyers To: Florian Weimer Cc: Carlos O'Donell , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Thomas Gleixner , linux-kernel , libc-alpha Message-ID: <305409897.10888.1528747473727.JavaMail.zimbra@efficios.com> In-Reply-To: <31fc101a-295b-067b-1a82-7e9e509fc92f@redhat.com> References: <1084280721.10859.1528746558696.JavaMail.zimbra@efficios.com> <31fc101a-295b-067b-1a82-7e9e509fc92f@redhat.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: zhJcsiSjFFTw3hSbC6qfc+ihAyNZFQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Jun 11, 2018, at 3:55 PM, Florian Weimer fweimer@redhat.com wrote: > 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? I'm not sure why we would want to resize it. The per-thread area is fixed-size. Its layout is here: include/uapi/linux/rseq.h: struct rseq The ABI is designed so that all users (program and libraries) can interact through this per-thread TLS area. > > 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. Not entirely sure what you imply by "one contiguous area". All we need is a single fixed-size TLS area for each thread. Thanks, Mathieu > > Thanks, > Florian -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com