diff options
author | 2021-04-08 11:28:40 -0700 | |
---|---|---|
committer | 2021-04-08 16:04:23 -0700 | |
commit | 9562f3dc6f502d78fd5c8c56f5826e93b781bd46 (patch) | |
tree | abc24fa2fbbd466329211e1b16e3120d100b2d49 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | arm64: add __nocfi to functions that jump to a physical address (diff) | |
download | wireguard-linux-9562f3dc6f502d78fd5c8c56f5826e93b781bd46.tar.xz wireguard-linux-9562f3dc6f502d78fd5c8c56f5826e93b781bd46.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions