From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3vJ3vd2JvjzDq60 for ; Wed, 8 Feb 2017 12:46:04 +1100 (AEDT) Date: Wed, 8 Feb 2017 10:45:52 +0900 From: Masami Hiramatsu To: "Naveen N. Rao" Cc: ananth@linux.vnet.ibm.com, mingo@kernel.org, mpe@ellerman.id.au, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify Message-Id: <20170208104552.497ea03171826cfb9e63b557@kernel.org> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 8 Feb 2017 01:24:14 +0530 "Naveen N. Rao" wrote: > kprobe_exceptions_notify() is not used on some of the architectures such > as arm[64] and powerpc anymore. Introduce a weak variant for such > architectures. > Good catch! Acked-by: Masami Hiramatsu for all patches in this series. Thank you! > Signed-off-by: Naveen N. Rao > --- > kernel/kprobes.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index 43460104f119..60a702a05684 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -1705,6 +1705,12 @@ void unregister_kprobes(struct kprobe **kps, int num) > } > EXPORT_SYMBOL_GPL(unregister_kprobes); > > +int __weak __kprobes kprobe_exceptions_notify(struct notifier_block *self, > + unsigned long val, void *data) > +{ > + return NOTIFY_DONE; > +} > + > static struct notifier_block kprobe_exceptions_nb = { > .notifier_call = kprobe_exceptions_notify, > .priority = 0x7fffffff /* we need to be notified first */ > -- > 2.11.0 > -- Masami Hiramatsu From mboxrd@z Thu Jan 1 00:00:00 1970 From: mhiramat@kernel.org (Masami Hiramatsu) Date: Wed, 8 Feb 2017 10:45:52 +0900 Subject: [PATCH 1/3] kprobes: introduce weak variant of kprobe_exceptions_notify In-Reply-To: References: Message-ID: <20170208104552.497ea03171826cfb9e63b557@kernel.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, 8 Feb 2017 01:24:14 +0530 "Naveen N. Rao" wrote: > kprobe_exceptions_notify() is not used on some of the architectures such > as arm[64] and powerpc anymore. Introduce a weak variant for such > architectures. > Good catch! Acked-by: Masami Hiramatsu for all patches in this series. Thank you! > Signed-off-by: Naveen N. Rao > --- > kernel/kprobes.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index 43460104f119..60a702a05684 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -1705,6 +1705,12 @@ void unregister_kprobes(struct kprobe **kps, int num) > } > EXPORT_SYMBOL_GPL(unregister_kprobes); > > +int __weak __kprobes kprobe_exceptions_notify(struct notifier_block *self, > + unsigned long val, void *data) > +{ > + return NOTIFY_DONE; > +} > + > static struct notifier_block kprobe_exceptions_nb = { > .notifier_call = kprobe_exceptions_notify, > .priority = 0x7fffffff /* we need to be notified first */ > -- > 2.11.0 > -- Masami Hiramatsu