summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/entry.S
diff options
context:
space:
mode:
authorPratyush Anand <panand@redhat.com>2016-07-08 18:35:50 +0200
committerCatalin Marinas <catalin.marinas@arm.com>2016-07-19 16:03:21 +0200
commit888b3c8720e0a4033db09ba2364afde6a4763638 (patch)
tree12140433a56615c59bd4451b1ff535a88993adb1 /arch/arm64/kernel/entry.S
parentarm64: Blacklist non-kprobe-able symbol (diff)
downloadlinux-888b3c8720e0a4033db09ba2364afde6a4763638.tar.xz
linux-888b3c8720e0a4033db09ba2364afde6a4763638.zip
arm64: Treat all entry code as non-kprobe-able
Entry symbols are not kprobe safe. So blacklist them for kprobing. Signed-off-by: Pratyush Anand <panand@redhat.com> Signed-off-by: David A. Long <dave.long@linaro.org> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> [catalin.marinas@arm.com: Do not include syscall wrappers in .entry.text] Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/entry.S')
-rw-r--r--arch/arm64/kernel/entry.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S
index 12e8d2bcb3f9..492a2655fea4 100644
--- a/arch/arm64/kernel/entry.S
+++ b/arch/arm64/kernel/entry.S
@@ -242,6 +242,7 @@ tsk .req x28 // current thread_info
/*
* Exception vectors.
*/
+ .pushsection ".entry.text", "ax"
.align 11
ENTRY(vectors)
@@ -774,6 +775,8 @@ __ni_sys_trace:
bl do_ni_syscall
b __sys_trace_return
+ .popsection // .entry.text
+
/*
* Special system call wrappers.
*/