diff options
author | Sami Tolvanen <[email protected]> | 2021-04-08 11:28:38 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2021-04-08 16:04:22 -0700 |
commit | bde33977bf24b7ed52e2bac0eb9235769a0a11f6 (patch) | |
tree | fa53a587fbbbbf9f84625b72a41b9c7a43e76a50 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 4ecfca89893843d4ae266485bb878aa760ba82da (diff) |
arm64: use function_nocfi with __pa_symbol
With CONFIG_CFI_CLANG, the compiler replaces function address
references with the address of the function's CFI jump table
entry. This means that __pa_symbol(function) returns the physical
address of the jump table entry, which can lead to address space
confusion as the jump table points to the function's virtual
address. Therefore, use the function_nocfi() macro to ensure we are
always taking the address of the actual function instead.
Signed-off-by: Sami Tolvanen <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions