diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-11-13 21:34:14 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-12-01 05:42:48 +0300 |
commit | 983df5f2699f83f78643b19d3399b160d1e64f5b (patch) | |
tree | b4d34490033c32d86f3e51480f7d3f91b985cc90 /kernel/trace | |
parent | 8785f51a17083eee7c37606079c6447afc6ba102 (diff) | |
download | linux-983df5f2699f83f78643b19d3399b160d1e64f5b.tar.xz |
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: 9d907f1ae80b8 ("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>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions