Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp105707imj; Wed, 13 Feb 2019 05:29:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IZiKjwQUSDt5eUawOlQ3gpP0wz4O2IuSfoC2GLCXqkSVoUkWpx6aCGvAkQxRFXc3gKgte0T X-Received: by 2002:a63:ef47:: with SMTP id c7mr501689pgk.386.1550064597404; Wed, 13 Feb 2019 05:29:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550064597; cv=none; d=google.com; s=arc-20160816; b=VTbHJEuDW+DPq9VbZgFlJYBsUNxa5ZhM2IBZlyKGx5aNPUfsGvCmC6icNh3pVLbQ3/ fNl315kygUANexbFR10mi2CDLEjpFq6QuBUttwbWWMZc5RtwGRYEC6nnRH9mx6O7m3WU XiIbyN9Z5+vIgrHL79ZJPFH6P+b/r9LAmXreBK1dnyYO63TzOfa1lo9Xa8TNjsdWcfsq /hEtVgUQOPdx1LVr8+gtzPSV52Ke2KSYxoUQeLOSuZyRoVhup/WDhoKdzBZeCnde8E8h fuG62tTaLCKTNcknGOcj8WePgwyY7MqbMsKs4kaP26vvSy43b/vsR2e6FnZ2YGz+R1ff ftyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=gq0GoX1vk5NnPD5ugnPPGO4Ae4+B7mtcbIU6MCoCuB8=; b=k/u1trVfg9rRu3iOcqYO+0AYV7gd2ZSSzfHnD1r2fhIxocH4G5bRmbIizWmb2/+P5/ uHmHzHhMJ+wHSSxXotY827Bn5aVp37x1e24TJ5Mk3zCiB+skXdfQFwxw5QMvW7PDMHR8 mJy45jABOSGOvJoMTtpFU6pEjxZkKIPazNVrWQTVmkiYWS3Ct38kr6ETsvEVSXm/aok5 TgYHBy//cMReNWLdRhOm+XzjDgFl5HFDtQBDEE0FCV/WaXBpiPNXf6VCjnBNdW6T/0ch wsrVcSZWzfNv57KqMhox5eGfY/+YgtHG8lLoHMcmik63MjzPwhPDTyMNHBz6OFvzjDAs JiDQ== ARC-Authentication-Results: i=1; mx.google.com; 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 bg3si13314258plb.363.2019.02.13.05.29.37; Wed, 13 Feb 2019 05:29:57 -0800 (PST) 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; 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 S2391184AbfBMJDy (ORCPT + 99 others); Wed, 13 Feb 2019 04:03:54 -0500 Received: from terminus.zytor.com ([198.137.202.136]:39079 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727458AbfBMJDy (ORCPT ); Wed, 13 Feb 2019 04:03:54 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x1D93GHM196526 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 13 Feb 2019 01:03:16 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x1D93GH1196523; Wed, 13 Feb 2019 01:03:16 -0800 Date: Wed, 13 Feb 2019 01:03:16 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Masami Hiramatsu Message-ID: Cc: righi.andrea@gmail.com, acme@redhat.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, peterz@infradead.org, mhiramat@kernel.org, mathieu.desnoyers@efficios.com, mingo@kernel.org, hpa@zytor.com, alexander.shishkin@linux.intel.com, torvalds@linux-foundation.org, jolsa@redhat.com, tglx@linutronix.de Reply-To: righi.andrea@gmail.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, mhiramat@kernel.org, mingo@kernel.org, alexander.shishkin@linux.intel.com, hpa@zytor.com, jolsa@redhat.com, acme@redhat.com, peterz@infradead.org, mathieu.desnoyers@efficios.com, tglx@linutronix.de, torvalds@linux-foundation.org In-Reply-To: <154998807741.31052.11229157537816341591.stgit@devbox> References: <154998807741.31052.11229157537816341591.stgit@devbox> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] kprobes: Prohibit probing on RCU debug routine Git-Commit-ID: a39f15b9644fac3f950f522c39e667c3af25c588 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-0.8 required=5.0 tests=ALL_TRUSTED,BAYES_00, FREEMAIL_FORGED_REPLYTO,T_DATE_IN_FUTURE_96_Q autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: a39f15b9644fac3f950f522c39e667c3af25c588 Gitweb: https://git.kernel.org/tip/a39f15b9644fac3f950f522c39e667c3af25c588 Author: Masami Hiramatsu AuthorDate: Wed, 13 Feb 2019 01:14:37 +0900 Committer: Ingo Molnar CommitDate: Wed, 13 Feb 2019 08:16:40 +0100 kprobes: Prohibit probing on RCU debug routine Since kprobe itself depends on RCU, probing on RCU debug routine can cause recursive breakpoint bugs. Prohibit probing on RCU debug routines. int3 ->do_int3() ->ist_enter() ->RCU_LOCKDEP_WARN() ->debug_lockdep_rcu_enabled() -> int3 Signed-off-by: Masami Hiramatsu Cc: Alexander Shishkin Cc: Andrea Righi Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Linus Torvalds Cc: Mathieu Desnoyers Cc: Peter Zijlstra Cc: Steven Rostedt Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/154998807741.31052.11229157537816341591.stgit@devbox Signed-off-by: Ingo Molnar --- kernel/rcu/update.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 1971869c4072..f4ca36d92138 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -52,6 +52,7 @@ #include #include #include +#include #define CREATE_TRACE_POINTS @@ -249,6 +250,7 @@ int notrace debug_lockdep_rcu_enabled(void) current->lockdep_recursion == 0; } EXPORT_SYMBOL_GPL(debug_lockdep_rcu_enabled); +NOKPROBE_SYMBOL(debug_lockdep_rcu_enabled); /** * rcu_read_lock_held() - might we be in RCU read-side critical section?