From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756513AbcHBUlb (ORCPT ); Tue, 2 Aug 2016 16:41:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32980 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752631AbcHBUlY (ORCPT ); Tue, 2 Aug 2016 16:41:24 -0400 Date: Tue, 2 Aug 2016 22:30:35 +0200 From: Oleg Nesterov To: Pratyush Anand , Ananth Mavinakayanahalli , Masami Hiramatsu Cc: linux-kernel@vger.kernel.org, srikar@linux.vnet.ibm.com, Alexander Shishkin , Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra Subject: Re: [PATCH] uprobe: Add uprobe_pre/post_sstep_notifier to NOKPROBE_SYMBOL Message-ID: <20160802203035.GA8335@redhat.com> References: <66dfa2cb82fc306d42e51adf0f5d819b4695644e.1470120173.git.panand@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66dfa2cb82fc306d42e51adf0f5d819b4695644e.1470120173.git.panand@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 02 Aug 2016 20:30:39 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/02, Pratyush Anand wrote: > > uprobe_pre_sstep_notifier and uprobe_post_sstep_notifier are called from > debug exception handler, so blacklist them for kprobing. Let me add kprobes maintainers, I am a bit confused... > @@ -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); but if we need to blacklist uprobe_pre/post_sstep_notifier then we also need to blacklist their caller, arch_uprobe_exception_notify() ? and every .notifier_call used in register_die_notifier() ? Oleg.