1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 01:09:38 -05:00
linux/tools/objtool
Peter Zijlstra 2105a92748 static_call,x86: Robustify trampoline patching
Add a few signature bytes after the static call trampoline and verify
those bytes match before patching the trampoline. This avoids patching
random other JMPs (such as CFI jump-table entries) instead.

These bytes decode as:

   d:   53                      push   %rbx
   e:   43 54                   rex.XB push %r12

And happen to spell "SCT".

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20211030074758.GT174703@worktop.programming.kicks-ass.net
2021-11-11 13:09:31 +01:00
..
arch/x86 objtool,x86: Replace alternatives with .retpoline_sites 2021-10-28 23:25:25 +02:00
Documentation
include/objtool objtool,x86: Replace alternatives with .retpoline_sites 2021-10-28 23:25:25 +02:00
.gitignore
Build
builtin-check.c
builtin-orc.c
check.c static_call,x86: Robustify trampoline patching 2021-11-11 13:09:31 +01:00
elf.c objtool updates: 2021-11-01 13:24:43 -07:00
Makefile
objtool.c
orc_dump.c
orc_gen.c Merge branch 'objtool/urgent' 2021-10-07 00:40:17 +02:00
special.c objtool,x86: Replace alternatives with .retpoline_sites 2021-10-28 23:25:25 +02:00
sync-check.sh
weak.c