Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2465208imm; Wed, 16 May 2018 13:20:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFi4xdwZmpFUxtQoIMEZU1DEYKQootI/AM98zT32jyZbFfSa2Vo+RC9qCC9+hXZ78nAGOn X-Received: by 2002:a17:902:74c9:: with SMTP id f9-v6mr2361730plt.385.1526502012155; Wed, 16 May 2018 13:20:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526502012; cv=none; d=google.com; s=arc-20160816; b=JS4Cw6SomVD2uZT/B2yHvt5jUtpUqu60vaP1aFlcJMKHV9EiPrML+0J6VoH/4+TGR0 ot4P8Tc/UvN3JyaBL3T4CSCN7vWlod5lTTce3j1dx4JMhUmxF0elh9Y1QSj08OCPZ8PU BsGcemmnYQJlvdEGkFxYLv3gTYZvp09MJGl2fkN4efI3vCsoSsCxteRunt7mqvjPACZh zFzOgUojAImLiX1gbx85CXRl907MMGd/uoCWM6Zz3QqqAJ7m8i0dKIARyxOtq7Am7NBL IfrdO72a5efBCAod5+8QrWIMcYs4HenAsVi1+yQh1WTago4llWq605BxfDCHOZWN5UEM yddg== 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=6ZpHF5+Ty+i+lsscsnzfbISQTJjmuLrweVfZP/9yDhQ=; b=r5WYCsma+jbCaGEljnt59RTuAI+sic3wpKC7dYbxZwI6OZRx9qjWKSgjsncJV1DNvx srWgzlv6ct3coGSkBRtOP2y00zS7enSDVxI+pP77sOeN7XBmqD7ePzH1FZhfvaMPm3NU z07fSLNmxSKqshNXdjPsUb8fMo/e4S0ZrfLQ/hvyEpIWRH9V4a8cGeoppwjSnh1rjGit ExdykaKa6l3AuSAIJxMXEb9b0bSZyrKq6XYNeR9k8IkAQzfZhrblMqXf1s7ZQIleg9Pb 60HHCxjFPFAbfM0mQkSJTYXDai1Hxp87z3Mu+xHvCEWceQ9ELGilD80dhXaZvTkFg3ZY 9puQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=rMJuSsxs; 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 w9-v6si3230187plp.389.2018.05.16.13.19.57; Wed, 16 May 2018 13:20:12 -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=rMJuSsxs; 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 S1751228AbeEPUSk (ORCPT + 99 others); Wed, 16 May 2018 16:18:40 -0400 Received: from mail.efficios.com ([167.114.142.138]:33180 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751096AbeEPUSi (ORCPT ); Wed, 16 May 2018 16:18:38 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 2312E1C06D2; Wed, 16 May 2018 16:18:38 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id uZIUqCP0pNtF; Wed, 16 May 2018 16:18:37 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 5B91A1C06CF; Wed, 16 May 2018 16:18:37 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 5B91A1C06CF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1526501917; bh=6ZpHF5+Ty+i+lsscsnzfbISQTJjmuLrweVfZP/9yDhQ=; h=Date:From:To:Message-ID:MIME-Version; b=rMJuSsxseOdYZRqcUrByUw39Q16yCg9gw2QPyM8pT6UjxgwvSLpvDV3QDzeB5DG7Z TcIu9C1Zm8ORtUuKZocHA4ZCXUF6WGZTOPXeqtE/dfAlDFIy5yoWdi8qaQu45HTc6E fMoY21uNnGYG84+wrlxAkSKMsUjFJ5+O6ckUEj80My5apaejLIO2bb/FtICW2WqVlW WQaBGw3Fh3K3Z82Mw7RQkq7k1zyw67NqVpjtlH82m7CChxYLBHOa8Y2arVXj3U1HIC /xCOGlb8VSIuo5oG2PB2MzXZcFuY2YW/xL9Rb737L8BtAc8jImYkEAu3mpsgFghPRx vIyegxdwpVb+A== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail02.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id AkTAVPrU91iu; Wed, 16 May 2018 16:18:37 -0400 (EDT) Received: from mail02.efficios.com (mail02.efficios.com [167.114.142.138]) by mail.efficios.com (Postfix) with ESMTP id 3FCEB1C06C4; Wed, 16 May 2018 16:18:37 -0400 (EDT) Date: Wed, 16 May 2018 16:18:37 -0400 (EDT) From: Mathieu Desnoyers To: Peter Zijlstra Cc: "Paul E. McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel , linux-api , Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , Alexander Viro Message-ID: <387129913.1919.1526501917147.JavaMail.zimbra@efficios.com> In-Reply-To: <20180516162454.GJ12198@hirez.programming.kicks-ass.net> References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> <20180430224433.17407-3-mathieu.desnoyers@efficios.com> <20180516162454.GJ12198@hirez.programming.kicks-ass.net> Subject: Re: [PATCH 02/14] rseq: Introduce restartable sequences system call (v13) 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_2026 (ZimbraWebClient - FF52 (Linux)/8.8.8_GA_2031) Thread-Topic: rseq: Introduce restartable sequences system call (v13) Thread-Index: AbSayWb6gH/6TCIUVZyQPLeP52FGeg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On May 16, 2018, at 12:24 PM, Peter Zijlstra peterz@infradead.org wrote: > On Mon, Apr 30, 2018 at 06:44:21PM -0400, Mathieu Desnoyers wrote: >> Expose a new system call allowing each thread to register one userspace >> memory area to be used as an ABI between kernel and user-space for two >> purposes: user-space restartable sequences and quick access to read the >> current CPU number value from user-space. > >> --- >> MAINTAINERS | 11 ++ >> arch/Kconfig | 7 + >> fs/exec.c | 1 + >> include/linux/sched.h | 134 +++++++++++++++++ >> include/linux/syscalls.h | 4 +- >> include/trace/events/rseq.h | 57 +++++++ >> include/uapi/linux/rseq.h | 133 +++++++++++++++++ >> init/Kconfig | 23 +++ >> kernel/Makefile | 1 + >> kernel/fork.c | 2 + >> kernel/rseq.c | 357 ++++++++++++++++++++++++++++++++++++++++++++ >> kernel/sched/core.c | 2 + >> kernel/sys_ni.c | 3 + >> 13 files changed, 734 insertions(+), 1 deletion(-) >> create mode 100644 include/trace/events/rseq.h >> create mode 100644 include/uapi/linux/rseq.h >> create mode 100644 kernel/rseq.c >> > > Acked-by: Peter Zijlstra (Intel) Thanks Peter ! Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com