diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2022-09-08 23:54:49 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2022-09-26 19:13:13 +0200 |
commit | cf90d0383560de12330de8cf3f831b14cdd45914 (patch) | |
tree | ea2f1c5f4a7c85f6b7a11a247adfce46243af254 /drivers/firmware/psci | |
parent | cfi: Add type helper macros (diff) | |
download | linux-cf90d0383560de12330de8cf3f831b14cdd45914.tar.xz linux-cf90d0383560de12330de8cf3f831b14cdd45914.zip |
lkdtm: Emit an indirect call for CFI tests
Clang can convert the indirect calls in lkdtm_CFI_FORWARD_PROTO into
direct calls. Move the call into a noinline function that accepts the
target address as an argument to ensure the compiler actually emits an
indirect call instead.
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Tested-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220908215504.3686827-8-samitolvanen@google.com
Diffstat (limited to 'drivers/firmware/psci')
0 files changed, 0 insertions, 0 deletions