This is a note to let you know that I've just added the patch titled RISC-V: add a spin_shadow_stack declaration to the 6.1-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: risc-v-add-a-spin_shadow_stack-declaration.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From eb9be8310c58c166f9fae3b71c0ad9d6741b4897 Mon Sep 17 00:00:00 2001 From: Conor Dooley <conor.dooley@xxxxxxxxxxxxx> Date: Fri, 10 Feb 2023 18:59:45 +0000 Subject: RISC-V: add a spin_shadow_stack declaration From: Conor Dooley <conor.dooley@xxxxxxxxxxxxx> commit eb9be8310c58c166f9fae3b71c0ad9d6741b4897 upstream. The patchwork automation reported a sparse complaint that spin_shadow_stack was not declared and should be static: ../arch/riscv/kernel/traps.c:335:15: warning: symbol 'spin_shadow_stack' was not declared. Should it be static? However, this is used in entry.S and therefore shouldn't be static. The same applies to the shadow_stack that this pseudo spinlock is trying to protect, so do like its charge and add a declaration to thread_info.h Signed-off-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx> Fixes: 7e1864332fbc ("riscv: fix race when vmap stack overflow") Reviewed-by: Guo Ren <guoren@xxxxxxxxxx> Link: https://lore.kernel.org/r/20230210185945.915806-1-conor@xxxxxxxxxx Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/riscv/include/asm/thread_info.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/riscv/include/asm/thread_info.h +++ b/arch/riscv/include/asm/thread_info.h @@ -43,6 +43,7 @@ #ifndef __ASSEMBLY__ extern long shadow_stack[SHADOW_OVERFLOW_STACK_SIZE / sizeof(long)]; +extern unsigned long spin_shadow_stack; #include <asm/processor.h> #include <asm/csr.h> Patches currently in stable-queue which might be from conor.dooley@xxxxxxxxxxxxx are queue-6.1/risc-v-add-a-spin_shadow_stack-declaration.patch queue-6.1/risc-v-time-initialize-hrtimer-based-broadcast-clock.patch queue-6.1/fpga-microchip-spi-rewrite-status-polling-in-a-time-.patch queue-6.1/riscv-mm-fix-regression-due-to-update_mmu_cache-change.patch queue-6.1/dmaengine-sf-pdma-pdma_desc-memory-leak-fix.patch queue-6.1/fpga-microchip-spi-move-spi-i-o-buffers-out-of-stack.patch