aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2021-04-08 11:28:28 -0700
committerKees Cook <keescook@chromium.org>2021-04-08 16:04:21 -0700
commit5caf968262df0ec7a3377fb67d4a6bfa979cb028 (patch)
treeda8b0f692f2d79604ef9c9731e1b1ed0fe640251 /tools/perf/scripts/python/export-to-postgresql.py
parentcfi: add __cficanonical (diff)
downloadwireguard-linux-5caf968262df0ec7a3377fb67d4a6bfa979cb028.tar.xz
wireguard-linux-5caf968262df0ec7a3377fb67d4a6bfa979cb028.zip
mm: add generic function_nocfi macro
With CONFIG_CFI_CLANG, the compiler replaces function addresses in instrumented C code with jump table addresses. This means that __pa_symbol(function) returns the physical address of the jump table entry instead of the actual function, which may not work as the jump table code will immediately jump to a virtual address that may not be mapped. To avoid this address space confusion, this change adds a generic definition for function_nocfi(), which architectures that support CFI can override. The typical implementation of would use inline assembly to take the function address, which avoids compiler instrumentation. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Kees Cook <keescook@chromium.org> Acked-by: Mark Rutland <mark.rutland@arm.com> Tested-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20210408182843.1754385-4-samitolvanen@google.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions