riscv: Add types to indirectly called assembly functions
authorSami Tolvanen <samitolvanen@google.com>
Mon, 10 Jul 2023 18:35:47 +0000 (18:35 +0000)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 23 Aug 2023 21:16:37 +0000 (14:16 -0700)
commit5f59c6855bad1809a4f85ce4db412f9ede45a4a0
treefb81fb82b5df55b1b964d71deb014ca8b5f71e2a
parent08d0ce30e0e4fcb5f06c90fe40387b1ce9324833
riscv: Add types to indirectly called assembly functions

With CONFIG_CFI_CLANG, assembly functions indirectly called
from C code must be annotated with type identifiers to pass CFI
checking. Use the SYM_TYPED_START macro to add types to the
relevant functions.

Reviewed-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Link: https://lore.kernel.org/r/20230710183544.999540-10-samitolvanen@google.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/kernel/mcount.S
arch/riscv/kernel/suspend_entry.S