diff options
| author | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-21 09:44:17 +0100 |
|---|---|---|
| committer | Alex Shi <alex.shi@linaro.org> | 2016-10-20 15:38:13 +0800 |
| commit | a5d55dd10f2a061849e7a665aa4b16bf258d9d0a (patch) | |
| tree | 1793b968dfc363f5a370ac75b9a16f823063bf97 /fs/ext4/inode.c | |
| parent | 71b5200f5f0c1e9966dd7d238526e85f4fbf8089 (diff) | |
arm64: kprobes: Cleanup jprobe_return
commit 3b7d14e9f3f1efd4c4348800e977fd1ce4ca660e upstream.
jprobe_return seems to have aged badly. Comments referring to
non-existent behaviours, and a dangerous habit of messing
with registers without telling the compiler.
This patches applies the following remedies:
- Fix the comments to describe the actual behaviour
- Tidy up the asm sequence to directly assign the
stack pointer without clobbering extra registers
- Mark the rest of the function as unreachable() so
that the compiler knows that there is no need for
an epilogue
- Stop making jprobe_return_break a global function
(you really don't want to call that guy, and it isn't
even a function).
Tested with tcp_probe.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: David A. Long <dave.long@linaro.org>
Diffstat (limited to 'fs/ext4/inode.c')
0 files changed, 0 insertions, 0 deletions
