diff options
author | Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> | 2017-10-30 16:12:09 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-11-01 05:51:03 +0100 |
commit | e6c4dcb308160115287afd87afb63b5684d75a5b (patch) | |
tree | 39f5d7025289979f52bf1c787db5102f2889995d /arch/sparc/kernel/iommu_common.h | |
parent | Revert "powerpc64/elfv1: Only dereference function descriptor for non-text sy... (diff) | |
download | linux-e6c4dcb308160115287afd87afb63b5684d75a5b.tar.xz linux-e6c4dcb308160115287afd87afb63b5684d75a5b.zip |
powerpc/kprobes: Dereference function pointers only if the address does not belong to kernel text
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.
Fixes: 83e840c770f2 ("powerpc64/elfv1: Only dereference function descriptor for non-text symbols")
Cc: stable@vger.kernel.org # v4.13+
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/sparc/kernel/iommu_common.h')
0 files changed, 0 insertions, 0 deletions