1
0
Fork 0
alistair23-linux/samples/ftrace
Sami Tolvanen 983df5f269 samples/ftrace: Mark my_tramp[12]? global
my_tramp[12]? are declared as global functions in C, but they are not
marked global in the inline assembly definition. This mismatch confuses
Clang's Control-Flow Integrity checking. Fix the definitions by adding
.globl.

Link: https://lkml.kernel.org/r/20201113183414.1446671-1-samitolvanen@google.com

Fixes: 9d907f1ae8 ("ftrace/samples: Add a sample module that implements modify_ftrace_direct()")
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2020-11-30 21:42:48 -05:00
..
Makefile tracing: Sample module to demonstrate kernel access to Ftrace instances. 2019-11-22 19:41:08 -05:00
ftrace-direct-modify.c samples/ftrace: Mark my_tramp[12]? global 2020-11-30 21:42:48 -05:00
ftrace-direct-too.c samples/ftrace: Mark my_tramp[12]? global 2020-11-30 21:42:48 -05:00
ftrace-direct.c samples/ftrace: Mark my_tramp[12]? global 2020-11-30 21:42:48 -05:00
sample-trace-array.c sample-trace-array: Remove trace_array 'sample-instance' 2020-06-16 21:21:02 -04:00
sample-trace-array.h tracing: Sample module to demonstrate kernel access to Ftrace instances. 2019-11-22 19:41:08 -05:00