From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751817AbdI1HZr (ORCPT ); Thu, 28 Sep 2017 03:25:47 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:32917 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbdI1HZp (ORCPT ); Thu, 28 Sep 2017 03:25:45 -0400 X-Google-Smtp-Source: AOwi7QA7pvRyZQ7bKTHdjGHMpBv2zYpbG2De3TqufBr1gkgUNVFH5spBfyZ6i27svZjG26U1RNXvLg== Date: Thu, 28 Sep 2017 09:25:41 +0200 From: Ingo Molnar To: Masami Hiramatsu Cc: mingo@redhat.com, x86@kernel.org, Steven Rostedt , linux-kernel@vger.kernel.org, Peter Zijlstra , Ananth N Mavinakayanahalli , Thomas Gleixner , "H . Peter Anvin" , "Paul E . McKenney" , Alexei Starovoitov , Alexei Starovoitov Subject: Re: [PATCH -tip v3 6/7] kprobes/x86: Remove disable_irq from ftrace-based/optimized kprobe Message-ID: <20170928072541.daf7oqj6tkq4vmac@gmail.com> References: <150581509713.32348.1905525476438163954.stgit@devbox> <150581534039.32348.11331736206004264553.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <150581534039.32348.11331736206004264553.stgit@devbox> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Masami Hiramatsu wrote: > Actually kprobes doesn't need to disable irq if it is > called from ftrace/jump trampoline code because > Documentation/kprobes.txt says > > ----- > Probe handlers are run with preemption disabled. Depending on the > architecture and optimization state, handlers may also run with > interrupts disabled (e.g., kretprobe handlers and optimized kprobe > handlers run without interrupt disabled on x86/x86-64). > ----- > > So let's remove irq disabling from those handlers. > - local_irq_save(flags); The title is talking about disable_irq(): kprobes/x86: Remove disable_irq from ftrace-based/optimized kprobe ... but the patch is actually using local_irq_save(), which is an entirely different thing! You probably wanted to say: kprobes/x86: Remove irq disabling from ftrace-based/optimized kprobes Also note the plural of 'kprobes' when we refer to them as a generic thing. I fixed the title, but _please_ read changelogs more carefully before sending them. Thanks, Ingo