Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2209086imm; Wed, 16 May 2018 09:26:16 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqto9J8oczfzvxDmEJxw31W4E1bAZPvuzP7rNt0hQzgiQ6dSs2dzTj7jR2Tc6VVVA13Gto4 X-Received: by 2002:a17:902:7582:: with SMTP id j2-v6mr1582867pll.65.1526487976175; Wed, 16 May 2018 09:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526487976; cv=none; d=google.com; s=arc-20160816; b=wXBo2sz2CktGqogI868naguzCutWCTlISIYEOozRdDD5Rsy/I1aZveimG2Rp9LgcoY h4ks2ODoa0aKZbFBZZ/4rkxZt+U9Hs/ThRVP43DIMjRm1aTLp/U+eWSxS+CX98A8wEZQ YbrTc8CshcyFbR2h3uWRaIUzlevJQzCBi1mbHFDfEqH7MXWk3SVwdJgVW0YS5Hlj+xGI 8BQOM415uFjT0e9pyPPDtewE1Os3YOMMvazwvWFjT1tLMPRWtdDdQA4HZyw6MPdbfROQ 1eRNArUZatWUBxvR86ovPPyrBQkLKb+IfS2A8d5TTF/EOrjyH2Jv2U4NQtLBtGrAqty+ wpjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=IcuacNuAF7xtpSI1aLNRxhwX1JOqPldQfGDryOhJoKI=; b=rKecyuQfvPLAmOpTB7YUGBwUPFD8lelEKecmbB86I+6C+nnVdWD6f423FbYcgyx10U hZ7g2JbjNVa8I3iDajhd/9PDIG1KiEgUYmHqZN9OLn4r6XsKQYmimOMR0JPA3KbAnBql 6d1Q8Ywwpwzpu3f2vpgwlV3OgfbTimulNpFK/6UbTIwOpGfUcMLTCY9dLtt2vhnkh2eU /RhgLAwixVMgzCSvNz/ElmcxN4oigh7DB6hFyJ/UCTqD7NxbDpxYFS0pegtLHQE47Vug iK5i+e11Zyp/1pye78iq9lDlXIltM5CvoHeh6kt5A+oTss9aJhcjNyihL0Ezht4h30Kf BG6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KdwTq7re; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z3-v6si2805593plb.228.2018.05.16.09.26.00; Wed, 16 May 2018 09:26:16 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=KdwTq7re; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbeEPQZu (ORCPT + 99 others); Wed, 16 May 2018 12:25:50 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45448 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbeEPQZt (ORCPT ); Wed, 16 May 2018 12:25:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IcuacNuAF7xtpSI1aLNRxhwX1JOqPldQfGDryOhJoKI=; b=KdwTq7reIBgQKF/nlkriQktxm 8qKC41GdtBD6juO2WzVyMehSoMndtBNPP5QnZR4zkfyRn41PBvKoLSXO/7oTxtw4jwbff/utt9dXT 2vBjdjzQBwQmHWmGqHL4bqBVBBP5XWentStEdEGNx19ytd78MRirew8wREM6YHMTTU/vbLrzXZAhw cQIOS+8kQC9dpsow9cbhljKKv/bGleO2Nu52Ss/RZ8acbrlT3EzNkWnObbw7gbx603P6wHcj30WLF KppXp7Fsd39uJbf3Wjbj9kFvY946RbhKOl5wT7kmFE4SkKGZjEsJ4i+1k3jiputs5b3fgManfVRVk psfb+sfoA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fIzEW-0000WN-3e; Wed, 16 May 2018 16:24:56 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D67702029F1C0; Wed, 16 May 2018 18:24:54 +0200 (CEST) Date: Wed, 16 May 2018 18:24:54 +0200 From: Peter Zijlstra To: Mathieu Desnoyers Cc: "Paul E . McKenney" , Boqun Feng , Andy Lutomirski , Dave Watson , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Paul Turner , Andrew Morton , Russell King , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andrew Hunter , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , Alexander Viro Subject: Re: [PATCH 02/14] rseq: Introduce restartable sequences system call (v13) Message-ID: <20180516162454.GJ12198@hirez.programming.kicks-ass.net> References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> <20180430224433.17407-3-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180430224433.17407-3-mathieu.desnoyers@efficios.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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)