Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tKtD70P9fzDsyc for ; Fri, 18 Nov 2016 20:36:23 +1100 (AEDT) From: Michael Ellerman To: "Naveen N. Rao" Cc: Nicholas Piggin , Anton Blanchard , linuxppc-dev@lists.ozlabs.org, Masami Hiramatsu , Ananth N Mavinakayanahalli Subject: Re: [RFC PATCH 4/4] powerpc: mm/slb: blacklist symbols from kprobe In-Reply-To: References: Date: Fri, 18 Nov 2016 20:36:22 +1100 Message-ID: <87shqpgmeh.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , "Naveen N. Rao" writes: > We can't really take a trap at this point. So, blacklist these symbols. > > Reported-by: Anton Blanchard > Signed-off-by: Naveen N. Rao > --- > arch/powerpc/mm/slb_low.S | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/arch/powerpc/mm/slb_low.S b/arch/powerpc/mm/slb_low.S > index c1c7456..c2bae92 100644 > --- a/arch/powerpc/mm/slb_low.S > +++ b/arch/powerpc/mm/slb_low.S > @@ -30,7 +30,7 @@ > * r9, r10, r11 are clobbered by this function > * No other registers are examined or changed. > */ > -_GLOBAL(slb_allocate_realmode) > +_GLOBAL_NOKPROBE(slb_allocate_realmode) I think I'd prefer we just leave these as is, and add somewhere nearby: _ASM_NOKPROBE_SYMBOL(slb_allocate_realmode) It means someone reading the code doesn't need to worry about the nokprobe part, just to understand the function. It also means we need fewer macros :) cheers