diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2021-04-08 21:28:40 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2021-04-09 02:04:23 +0300 |
commit | 9562f3dc6f502d78fd5c8c56f5826e93b781bd46 (patch) | |
tree | abc24fa2fbbd466329211e1b16e3120d100b2d49 /tools/perf/scripts/python/syscall-counts.py | |
parent | cbdac8413e33bd1b9de45eeb10221c4686d743a6 (diff) | |
download | linux-9562f3dc6f502d78fd5c8c56f5826e93b781bd46.tar.xz |
arm64: add __nocfi to __apply_alternatives
__apply_alternatives makes indirect calls to functions whose address
is taken in assembly code using the alternative_cb macro. With
non-canonical CFI, the compiler won't replace these function
references with the jump table addresses, which trips CFI. Disable CFI
checking in the function to work around the issue.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20210408182843.1754385-16-samitolvanen@google.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions