]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-6.6/risc-v-update-at_vector_size_arch-for-new-at_minsigs.patch
fcf220c72f8b7980d2db587b313b677ee2311fa9
[thirdparty/kernel/stable-queue.git] / queue-6.6 / risc-v-update-at_vector_size_arch-for-new-at_minsigs.patch
1 From 172a3d6a57b4866c56113756194f18b1e0cc1a21 Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Fri, 15 Dec 2023 23:27:20 -0500
4 Subject: RISC-V: Update AT_VECTOR_SIZE_ARCH for new AT_MINSIGSTKSZ
5
6 From: Victor Isaev <victor@torrio.net>
7
8 [ Upstream commit 13dddf9319808badd2c1f5d7007b4e82838a648e ]
9
10 "riscv: signal: Report signal frame size to userspace via auxv" (e92f469)
11 has added new constant AT_MINSIGSTKSZ but failed to increment the size of
12 auxv, keeping AT_VECTOR_SIZE_ARCH at 9.
13 This fix correctly increments AT_VECTOR_SIZE_ARCH to 10, following the
14 approach in the commit 94b07c1 ("arm64: signal: Report signal frame size
15 to userspace via auxv").
16
17 Link: https://lore.kernel.org/r/73883406.20231215232720@torrio.net
18 Link: https://lore.kernel.org/all/20240102133617.3649-1-victor@torrio.net/
19 Reported-by: Ivan Komarov <ivan.komarov@dfyz.info>
20 Closes: https://lore.kernel.org/linux-riscv/CY3Z02NYV1C4.11BLB9PLVW9G1@fedora/
21 Fixes: e92f469b0771 ("riscv: signal: Report signal frame size to userspace via auxv")
22 Signed-off-by: Victor Isaev <isv@google.com>
23 Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
24 Signed-off-by: Sasha Levin <sashal@kernel.org>
25 ---
26 arch/riscv/include/uapi/asm/auxvec.h | 2 +-
27 1 file changed, 1 insertion(+), 1 deletion(-)
28
29 diff --git a/arch/riscv/include/uapi/asm/auxvec.h b/arch/riscv/include/uapi/asm/auxvec.h
30 index 10aaa83db89ef..95050ebe9ad00 100644
31 --- a/arch/riscv/include/uapi/asm/auxvec.h
32 +++ b/arch/riscv/include/uapi/asm/auxvec.h
33 @@ -34,7 +34,7 @@
34 #define AT_L3_CACHEGEOMETRY 47
35
36 /* entries in ARCH_DLINFO */
37 -#define AT_VECTOR_SIZE_ARCH 9
38 +#define AT_VECTOR_SIZE_ARCH 10
39 #define AT_MINSIGSTKSZ 51
40
41 #endif /* _UAPI_ASM_RISCV_AUXVEC_H */
42 --
43 2.43.0
44