Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2201000imm; Wed, 16 May 2018 09:19:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoiWjVPO4NYFgzPIzgC2SihxS3uX2M/RKBVFiISy6YS/RcvInj4sQB55k0rN638PSakzpGM X-Received: by 2002:a17:902:bf4a:: with SMTP id u10-v6mr1588670pls.322.1526487580433; Wed, 16 May 2018 09:19:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526487580; cv=none; d=google.com; s=arc-20160816; b=FmHzILS02i19kuZoC5em4UyPAS17JxVUhbdy7eGEx321r03yH4UJXFytZAHzqGY7xn 5cD14ZoMi0x7N4BWncOH5YxPdzf/KkKd9l9M5XpY4UrdV46WCHe02CRpwnrgUZeZD76e 1dN320t3bwFuJO1TLNQhQWi4DBUWy6KDNq+kPECewIpc7m4QSjIRQY+QbMPDvfRL2B1z yL0VOVQ4iKElSoWHZrJgJp6BMfZWgITaGVwbOzYvfnokORzayXxbTnMk3UBwcgNtseek +Y9IyLRMDaWvK3ZggkaA0EcV4WcdgQ8xYctPwcf4qMRiJG3nGi/GTMwKd21uGNQpF+I/ YkYQ== 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=RCpKzSzLqNUXWv6aLJOGZwgJNf3u15tuH2zQ7VGqZx8=; b=wYOFvh1asGCGdPITsLojpEnGgprMfOhNbMIlW+jhWV5XDl/ydQWZ7TVe26+/znNpTQ I1fxWU0n+x38fxpj4pxHN8g4EY+eVAAFuzgDRc+OlscFIt+/TFopswAB9JCwL+XxEaBG Cpt0TyVUnHC0IkQAjJL0CH4Fe+mjCsTT2KcTOeLlTI6dRMUaJMZGG5RyPHWDvrXWs085 0/V7UH/HxFOODII/Oj+ufGgTdcHNtxYdVMap0OYCjfvukfa2mdKSgEgeuzVQTVvGky3A jhH0W8XuScDsfv1B6+Q9YUKUYoSDtzjkww2KgjIne6vf9R3AR714p+P4XaKM9GAoWJUY ZZzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=WAdU0AIl; 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 203-v6si3009563pfz.160.2018.05.16.09.19.25; Wed, 16 May 2018 09:19:40 -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=WAdU0AIl; 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 S1752200AbeEPQTE (ORCPT + 99 others); Wed, 16 May 2018 12:19:04 -0400 Received: from merlin.infradead.org ([205.233.59.134]:45332 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953AbeEPQTC (ORCPT ); Wed, 16 May 2018 12:19:02 -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=RCpKzSzLqNUXWv6aLJOGZwgJNf3u15tuH2zQ7VGqZx8=; b=WAdU0AIlTDmbnG1LWV7WTcgqj tIaI8ddhAWfwErUCj7UL61uR7vUOdWLHtgm3ZJrp873UE0AA/+r3r41Fa6dJkG15jViItg1dZC6aP e2fhSl0K0m0lJsrF8X1j27/8kRoguPNc028veNx9iKkbea2JhsXnvHTL4cli/0yZsfnEBwFH6WoB7 ct9rlxmLYY3F7ACQMe0cU27vW/ZvwOxd/tov7QtLQi32yzK2Jm1wfmy13h7X/kECUl8MdFRT6TL1f nc9t+KANxIofq6NPhA3In4MWlE+e0/8D7JTp9yA8DJT+Z/Z2wgf5m/zm/ifFdbPNAnmZLauXzRZKD 351EVaoLQ==; 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 1fIz80-0000PL-6r; Wed, 16 May 2018 16:18:12 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id A8AA62029F1C0; Wed, 16 May 2018 18:18:09 +0200 (CEST) Date: Wed, 16 May 2018 18:18:09 +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 Subject: Re: [PATCH 03/14] arm: Add restartable sequences support Message-ID: <20180516161809.GH12198@hirez.programming.kicks-ass.net> References: <20180430224433.17407-1-mathieu.desnoyers@efficios.com> <20180430224433.17407-4-mathieu.desnoyers@efficios.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180430224433.17407-4-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:22PM -0400, Mathieu Desnoyers wrote: > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index a7f8e7f4b88f..4f5c386631d4 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -91,6 +91,7 @@ config ARM > select HAVE_PERF_USER_STACK_DUMP > select HAVE_RCU_TABLE_FREE if (SMP && ARM_LPAE) > select HAVE_REGS_AND_STACK_ACCESS_API > + select HAVE_RSEQ > select HAVE_SYSCALL_TRACEPOINTS > select HAVE_UID16 > select HAVE_VIRT_CPU_ACCOUNTING_GEN > diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c > index bd8810d4acb3..5879ab3f53c1 100644 > --- a/arch/arm/kernel/signal.c > +++ b/arch/arm/kernel/signal.c > @@ -541,6 +541,12 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs) > int ret; > > /* > + * Increment event counter and perform fixup for the pre-signal > + * frame. > + */ > + rseq_signal_deliver(regs); > + > + /* > * Set up the stack frame > */ > if (ksig->ka.sa.sa_flags & SA_SIGINFO) > @@ -660,6 +666,7 @@ do_work_pending(struct pt_regs *regs, unsigned int thread_flags, int syscall) > } else { > clear_thread_flag(TIF_NOTIFY_RESUME); > tracehook_notify_resume(regs); > + rseq_handle_notify_resume(regs); > } > } > local_irq_disable(); I think you forgot to hook up rseq_syscall() checking.