[PW_SID:1077845] riscv: Define __riscv_copy_{,vec_}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START#1729
[PW_SID:1077845] riscv: Define __riscv_copy_{,vec_}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START#1729linux-riscv-bot wants to merge 1 commit into
Conversation
…_TYPED_FUNC_START After commit 67bdd7b ("riscv: Split out measure_cycles() for reuse") and commit c03ad15 ("riscv: Reuse measure_cycles() in check_vector_unaligned_access()"), there are CFI failure when booting kernels with CONFIG_CFI=y: CFI failure at measure_cycles+0x38/0xe0 (target: __riscv_copy_words_unaligned+0x0/0x50; expected type: ...) CFI failure at measure_cycles+0x38/0xe0 (target: __riscv_copy_vec_words_unaligned+0x0/0x24; expected type: ...) The __riscv_copy_*_unaligned() functions are now called indirectly but they are not defined with SYM_TYPED_FUNC_START, which is required for assembly functions called indirectly from C to pass CFI checking. Switch to SYM_TYPED_FUNC_START to clear up the CFI failures. Fixes: 67bdd7b ("riscv: Split out measure_cycles() for reuse") Fixes: c03ad15 ("riscv: Reuse measure_cycles() in check_vector_unaligned_access()") Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
|
Patch 1: "riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START" |
PR for series 1077845 applied to workflow__riscv__fixes
Name: riscv: Define riscv_copy{,vec}{words,bytes}_unaligned() using SYM_TYPED_FUNC_START
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1077845
Version: 1