From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754575AbcHBGuI (ORCPT ); Tue, 2 Aug 2016 02:50:08 -0400 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33282 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbcHBGuA (ORCPT ); Tue, 2 Aug 2016 02:50:00 -0400 From: Pratyush Anand To: linux-kernel@vger.kernel.org Cc: oleg@redhat.com, srikar@linux.vnet.ibm.com, Pratyush Anand , Alexander Shishkin , Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra Subject: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL Date: Tue, 2 Aug 2016 12:14:06 +0530 Message-Id: <66dfa2cb82fc306d42e51adf0f5d819b4695644e.1470120173.git.panand@redhat.com> X-Mailer: git-send-email 2.5.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org uprobe_pre_sstep_notifier and uprobe_post_sstep_notifier are called from debug exception handler, so blacklist them for kprobing. Signed-off-by: Pratyush Anand --- kernel/events/uprobes.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index b7a525ab2083..206e594cb65e 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c @@ -37,6 +37,7 @@ #include #include #include +#include #include @@ -1997,6 +1998,7 @@ int uprobe_pre_sstep_notifier(struct pt_regs *regs) set_thread_flag(TIF_UPROBE); return 1; } +NOKPROBE_SYMBOL(uprobe_pre_sstep_notifier); /* * uprobe_post_sstep_notifier gets called in interrupt context as part of notifier @@ -2014,6 +2016,7 @@ int uprobe_post_sstep_notifier(struct pt_regs *regs) set_thread_flag(TIF_UPROBE); return 1; } +NOKPROBE_SYMBOL(uprobe_post_sstep_notifier); static struct notifier_block uprobe_exception_nb = { .notifier_call = arch_uprobe_exception_notify, -- 2.5.5