From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751588AbeCJIWy (ORCPT ); Sat, 10 Mar 2018 03:22:54 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34231 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750829AbeCJIWx (ORCPT ); Sat, 10 Mar 2018 03:22:53 -0500 X-Google-Smtp-Source: AG47ELvUA/nNLtLKCkeS8isvlZhjTjn3NF8k8DLQfrVtP7BKnIsWB7j1XGtQI5BCmJr0Aclc0VBEkQ== Date: Sat, 10 Mar 2018 09:22:48 +0100 From: Ingo Molnar To: Masami Hiramatsu Cc: Thomas Gleixner , x86@kernel.org, Yang Bo , Ingo Molnar , "H . Peter Anvin" , linux-kernel@vger.kernel.org, Ananth N Mavinakayanahalli , Andrew Morton , Steven Rostedt , Laura Abbott , Josef Bacik , Alexei Starovoitov Subject: Re: [RFC PATCH -tip 8/9] error-injection: Fix to not enabling preemption in pre_handler Message-ID: <20180310082248.6inyi5rcxhay2e6v@gmail.com> References: <152059891712.4214.9539716544254881611.stgit@devbox> <152059915597.4214.4086303893931787678.stgit@devbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152059915597.4214.4086303893931787678.stgit@devbox> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Masami Hiramatsu wrote: > Since kprobes pre_handler doesn't need to recover preemption > even if it modifies regs->ip anymore, this fixes to remove > the preempt_enable_no_resched() from pre_handler. > > Signed-off-by: Masami Hiramatsu > --- > kernel/fail_function.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/kernel/fail_function.c b/kernel/fail_function.c > index 21b0122cb39c..b1713521f096 100644 > --- a/kernel/fail_function.c > +++ b/kernel/fail_function.c > @@ -176,7 +176,6 @@ static int fei_kprobe_handler(struct kprobe *kp, struct pt_regs *regs) > override_function_with_return(regs); > /* Kprobe specific fixup */ > reset_current_kprobe(); > - preempt_enable_no_resched(); > return 1; > } So where did the matching preempt_disable() get removed? If it's the 6/9 patch, then this patch (and 8/9) should very much be part of it. There should be no bisection breakage in the series. Thanks, Ingo