From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753713AbaCXSx5 (ORCPT ); Mon, 24 Mar 2014 14:53:57 -0400 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.225]:30088 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753552AbaCXSx4 (ORCPT ); Mon, 24 Mar 2014 14:53:56 -0400 Date: Mon, 24 Mar 2014 14:53:51 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Andi Kleen , Ananth N Mavinakayanahalli , Peter Zijlstra , Frederic Weisbecker , x86@kernel.org, Sandeepa Prabhu , fche@redhat.com, mingo@redhat.com, Al Viro , systemtap@sourceware.org, "H. Peter Anvin" , Thomas Gleixner , Seiji Aguchi Subject: Re: [PATCH -tip v8 03/26] kprobes: Prohibit probing on .entry.text code Message-ID: <20140324145351.2c65e41f@gandalf.local.home> In-Reply-To: <532F8ED2.2030704@hitachi.com> References: <20140305115843.22766.8355.stgit@ltc230.yrl.intra.hitachi.co.jp> <20140305115904.22766.57607.stgit@ltc230.yrl.intra.hitachi.co.jp> <20140321180400.0c1b2969@gandalf.local.home> <532F8ED2.2030704@hitachi.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.130:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Mar 2014 10:48:02 +0900 Masami Hiramatsu wrote: > (2014/03/22 7:04), Steven Rostedt wrote: > > On Wed, 05 Mar 2014 20:59:04 +0900 > > Masami Hiramatsu wrote: > > > > > >> struct kprobe_insn_cache { > >> struct mutex mutex; > >> diff --git a/kernel/kprobes.c b/kernel/kprobes.c > >> index ceeadfc..5b5ac76 100644 > >> --- a/kernel/kprobes.c > >> +++ b/kernel/kprobes.c > >> @@ -96,9 +96,6 @@ static raw_spinlock_t *kretprobe_table_lock_ptr(unsigned long hash) > >> static struct kprobe_blackpoint kprobe_blacklist[] = { > >> {"preempt_schedule",}, > >> {"native_get_debugreg",}, > >> - {"irq_entries_start",}, > >> - {"common_interrupt",}, > >> - {"mcount",}, /* mcount can be called from everywhere */ > > > > Is mcount in the entry.text section? Also, what about ftrace_caller and > > friends. > > I saw mcount(and ftrace_caller) in arch/x86/kernel/entry_*.S, and > almost all code in it are in ".entry.text" section as far as I can see, > or do I miss something? > Ah, checking the System.map I guess we are OK. -- Steve