Messages in this thread Patch in this message |  | | From | Deepak Gupta <> | | Date | Fri, 05 Dec 2025 10:36:47 -0800 | | Subject | [PATCH v25 01/28] mm: VM_SHADOW_STACK definition for riscv |
| |
VM_HIGH_ARCH_5 is used for riscv
Reviewed-by: Zong Li <zong.li@sifive.com> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Acked-by: David Hildenbrand <david@redhat.com> Tested-by: Andreas Korb <andreas.korb@aisec.fraunhofer.de> Tested-by: Valentin Haudiquet <valentin.haudiquet@canonical.com> Signed-off-by: Deepak Gupta <debug@rivosinc.com> --- include/linux/mm.h | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/include/linux/mm.h b/include/linux/mm.h index d16b33bacc32..2032d3f195f1 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -380,6 +380,13 @@ extern unsigned int kobjsize(const void *objp); # define VM_SHADOW_STACK VM_HIGH_ARCH_6 #endif +#if defined(CONFIG_RISCV_USER_CFI) +/* + * Following x86 and picking up the same bitpos. + */ +# define VM_SHADOW_STACK VM_HIGH_ARCH_5 +#endif + #ifndef VM_SHADOW_STACK # define VM_SHADOW_STACK VM_NONE #endif -- 2.45.0
|  |