Patch "riscv: Fix EFI stub usage of KASAN instrumented strcmp function" has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    riscv: Fix EFI stub usage of KASAN instrumented strcmp function

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     riscv-fix-efi-stub-usage-of-kasan-instrumented-strcm.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 38449b7bb461de822b8be2cedc033ffa13ffb377
Author: Alexandre Ghiti <alexghiti@xxxxxxxxxxxx>
Date:   Fri Feb 3 08:52:30 2023 +0100

    riscv: Fix EFI stub usage of KASAN instrumented strcmp function
    
    [ Upstream commit 617955ca6e275c4dd0dcf5316fca7fc04a8f2fe6 ]
    
    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@xxxxxxxxxxxx>
    Acked-by: Ard Biesheuvel <ardb@xxxxxxxxxx>
    Reviewed-by: Atish Patra <atishp@xxxxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230203075232.274282-5-alexghiti@xxxxxxxxxxxx
    Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/riscv/kernel/image-vars.h b/arch/riscv/kernel/image-vars.h
index 7e2962ef73f92..15616155008cc 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;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux