Subject: Re: [2/2] powerpc/kprobes: Dereference function pointers only if the address does not belong to kernel text

From: Michael Ellerman <[email-masked]>
Date: Thu, 2 Nov 2017 23:12:33 +1100 (AEDT)

On Mon, 2017-10-30 at 15:12:09 UTC, "Naveen N. Rao" wrote:
> This makes the changes introduced in commit 83e840c770f2c5
> ("powerpc64/elfv1: Only dereference function descriptor for non-text
> symbols") to be specific to the kprobe subsystem.
> 
> We previously changed ppc_function_entry() to always check the provided
> address to confirm if it needed to be dereferenced. This is actually
> only an issue for kprobe blacklisted asm labels (through use of
> _ASM_NOKPROBE_SYMBOL) and can cause other issues with ftrace. Also, the
> additional checks are not really necessary for our other uses.
> 
> As such, move this check to the kprobes subsystem.
> 
> Signed-off-by: Naveen N. Rao <[email-masked]>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/e6c4dcb308160115287afd87afb63b

cheers