summaryrefslogtreecommitdiffstats
path: root/samples/ftrace/ftrace-direct-too.c
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2022-03-08 16:30:33 +0100
committerPeter Zijlstra <peterz@infradead.org>2022-03-15 10:32:38 +0100
commit58912710558889629daae3e0824daacab663bd4a (patch)
tree30d77a65f42cafbf37d3790fde2eddc975b99cd7 /samples/ftrace/ftrace-direct-too.c
parentx86/ibt,kprobes: Cure sym+0 equals fentry woes (diff)
downloadlinux-58912710558889629daae3e0824daacab663bd4a.tar.xz
linux-58912710558889629daae3e0824daacab663bd4a.zip
x86/ibt,bpf: Add ENDBR instructions to prologue and trampoline
With IBT enabled builds we need ENDBR instructions at indirect jump target sites, since we start execution of the JIT'ed code through an indirect jump, the very first instruction needs to be ENDBR. Similarly, since eBPF tail-calls use indirect branches, their landing site needs to be an ENDBR too. The trampolines need similar adjustment. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Fixed-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Acked-by: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154318.464998838@infradead.org
Diffstat (limited to 'samples/ftrace/ftrace-direct-too.c')
0 files changed, 0 insertions, 0 deletions