aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/kernel/image-vars.h
diff options
context:
space:
mode:
authorAlexandre Ghiti <[email protected]>2023-02-03 08:52:30 +0100
committerPalmer Dabbelt <[email protected]>2023-04-19 07:24:52 -0700
commit617955ca6e275c4dd0dcf5316fca7fc04a8f2fe6 (patch)
treeacc58db405d96463aa2e8f898d07961b1efec68b /arch/riscv/kernel/image-vars.h
parent401e84488800d05e8ed6db2a687eaa94415f4ec8 (diff)
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 <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Reviewed-by: Atish Patra <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'arch/riscv/kernel/image-vars.h')
-rw-r--r--arch/riscv/kernel/image-vars.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/riscv/kernel/image-vars.h b/arch/riscv/kernel/image-vars.h
index 7e2962ef73f9..15616155008c 100644
--- a/arch/riscv/kernel/image-vars.h
+++ b/arch/riscv/kernel/image-vars.h
@@ -23,8 +23,6 @@
* linked at. The routines below are all implemented in assembler in a
* position independent manner
*/
-__efistub_strcmp = strcmp;
-
__efistub__start = _start;
__efistub__start_kernel = _start_kernel;
__efistub__end = _end;