Skip to content

Commit 617955c

Browse files
Alexandre Ghitipalmer-dabbelt
authored andcommitted
riscv: Fix EFI stub usage of KASAN instrumented strcmp function
The EFI stub must not use any KASAN instrumented code as the kernel proper did not initialize the thread pointer and the mapping for the KASAN shadow region. Avoid using the generic strcmp function, instead use the one in drivers/firmware/efi/libstub/string.c. Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com> Acked-by: Ard Biesheuvel <ardb@kernel.org> Reviewed-by: Atish Patra <atishp@rivosinc.com> Link: https://lore.kernel.org/r/20230203075232.274282-5-alexghiti@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 401e844 commit 617955c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/riscv/kernel/image-vars.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
* linked at. The routines below are all implemented in assembler in a
2424
* position independent manner
2525
*/
26-
__efistub_strcmp = strcmp;
27-
2826
__efistub__start = _start;
2927
__efistub__start_kernel = _start_kernel;
3028
__efistub__end = _end;

0 commit comments

Comments
 (0)