diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-11-24 23:54:22 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-12-17 22:14:21 +0000 |
commit | c608906165355089a4de3c9133c72e81e011096c (patch) | |
tree | cc1a76bc86bdcc8f0e69e4e3cb7874dcfccd26d2 /arch/arm/kernel/vmlinux-xip.lds.S | |
parent | 75fea300d73ae5b18957949a53ec770daaeb6fc2 (diff) | |
download | linux-stable-c608906165355089a4de3c9133c72e81e011096c.tar.gz linux-stable-c608906165355089a4de3c9133c72e81e011096c.tar.bz2 linux-stable-c608906165355089a4de3c9133c72e81e011096c.zip |
ARM: probes: avoid adding kprobes to sensitive kernel-entry/exit code
Avoid adding kprobes to any of the kernel entry/exit or startup
assembly code, or code in the identity-mapped region. This code does
not conform to the standard C conventions, which means that the
expectations of the kprobes code is not forfilled.
Placing kprobes at some of these locations results in the kernel trying
to return to userspace addresses while retaining the CPU in kernel mode.
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel/vmlinux-xip.lds.S')
-rw-r--r-- | arch/arm/kernel/vmlinux-xip.lds.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/kernel/vmlinux-xip.lds.S b/arch/arm/kernel/vmlinux-xip.lds.S index ec4b3f94ad80..12b87591eb7c 100644 --- a/arch/arm/kernel/vmlinux-xip.lds.S +++ b/arch/arm/kernel/vmlinux-xip.lds.S @@ -96,9 +96,9 @@ SECTIONS .text : { /* Real text segment */ _stext = .; /* Text and read-only data */ IDMAP_TEXT - __exception_text_start = .; - *(.exception.text) - __exception_text_end = .; + __entry_text_start = .; + *(.entry.text) + __entry_text_end = .; IRQENTRY_TEXT TEXT_TEXT SCHED_TEXT |