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

Michael Ellerman patch-notifications at ellerman.id.au
Thu Nov 2 23:12:33 AEDT 2017


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 <naveen.n.rao at linux.vnet.ibm.com>

Applied to powerpc fixes, thanks.

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

cheers


More information about the Linuxppc-dev mailing list