aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/latent_entropy_plugin.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2018-01-18 16:15:20 +0000
committerThomas Gleixner <[email protected]>2018-01-19 15:31:29 +0000
commitc86a32c09f8ced67971a2310e3b0dda4d1749007 (patch)
tree2aef0f27035f4eb40311deb32d33ed167115a90e /scripts/gcc-plugins/latent_entropy_plugin.c
parentkprobes/x86: Blacklist indirect thunk functions for kprobes (diff)
downloadkernel-c86a32c09f8ced67971a2310e3b0dda4d1749007.tar.gz
kernel-c86a32c09f8ced67971a2310e3b0dda4d1749007.zip
kprobes/x86: Disable optimizing on the function jumps to indirect thunk
Since indirect jump instructions will be replaced by jump to __x86_indirect_thunk_*, those jmp instruction must be treated as an indirect jump. Since optprobe prohibits to optimize probes in the function which uses an indirect jump, it also needs to find out the function which jump to __x86_indirect_thunk_* and disable optimization. Add a check that the jump target address is between the __indirect_thunk_start/end when optimizing kprobe. Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: David Woodhouse <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ananth N Mavinakayanahalli <[email protected]> Cc: Arjan van de Ven <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/151629212062.10241.6991266100233002273.stgit@devbox
Diffstat (limited to 'scripts/gcc-plugins/latent_entropy_plugin.c')
0 files changed, 0 insertions, 0 deletions