Patch "riscv: declare overflow_stack as exported from traps.c" has been added to the 6.7-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: declare overflow_stack as exported from traps.c

to the 6.7-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-declare-overflow_stack-as-exported-from-traps..patch
and it can be found in the queue-6.7 subdirectory.

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



commit 240ed73316cd3d665ade8d25f583a88af9c74a34
Author: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx>
Date:   Thu Nov 23 13:42:14 2023 +0000

    riscv: declare overflow_stack as exported from traps.c
    
    [ Upstream commit 2cf963787529f615f7c93bdcf13a5e82029e7f38 ]
    
    The percpu area overflow_stacks is exported from arch/riscv/kernel/traps.c
    for use in the entry code, but is not declared anywhere. Add the relevant
    declaration to arch/riscv/include/asm/stacktrace.h to silence the following
    sparse warning:
    
    arch/riscv/kernel/traps.c:395:1: warning: symbol '__pcpu_scope_overflow_stack' was not declared. Should it be static?
    
    We don't add the stackinfo_get_overflow() call as for some of the other
    architectures as this doesn't seem to be used yet, so just silence the
    warning.
    
    Signed-off-by: Ben Dooks <ben.dooks@xxxxxxxxxxxxxxx>
    Reviewed-by: Conor Dooley <conor.dooley@xxxxxxxxxxxxx>
    Fixes: be97d0db5f44 ("riscv: VMAP_STACK overflow detection thread-safe")
    Link: https://lore.kernel.org/r/20231123134214.81481-1-ben.dooks@xxxxxxxxxxxxxxx
    Signed-off-by: Palmer Dabbelt <palmer@xxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/arch/riscv/include/asm/stacktrace.h b/arch/riscv/include/asm/stacktrace.h
index f7e8ef2418b9..b1495a7e06ce 100644
--- a/arch/riscv/include/asm/stacktrace.h
+++ b/arch/riscv/include/asm/stacktrace.h
@@ -21,4 +21,9 @@ static inline bool on_thread_stack(void)
 	return !(((unsigned long)(current->stack) ^ current_stack_pointer) & ~(THREAD_SIZE - 1));
 }
 
+
+#ifdef CONFIG_VMAP_STACK
+DECLARE_PER_CPU(unsigned long [OVERFLOW_STACK_SIZE/sizeof(long)], overflow_stack);
+#endif /* CONFIG_VMAP_STACK */
+
 #endif /* _ASM_RISCV_STACKTRACE_H */




[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