[PATCH] [PATCH] Update the size of auxv to respect the new constant added in e92f469b0771e6db9688a58c0e34a8342da6a6bc

victor at torrio.net victor at torrio.net
Tue Jan 2 05:36:17 PST 2024


From: Victor Isaev <isv at google.com>

Commit e92f469b0771 ("riscv: signal: Report signal frame size to
userspace via auxv") has added a new constant AT_MINSIGSTKSZ but
failed to increment the size of auxv, keeping AT_VECTOR_SIZE_ARCH
at 9.
This fix correctly increments AT_VECTOR_SIZE_ARCH to 10, following
the approach in the commit 94b07c1f8c39 ("arm64: signal: Report
signal frame size to userspace via auxv")

Reported-by: Ivan Komarov <ivan.komarov at dfyz.info>
Closes: https://lore.kernel.org/linux-riscv/CY3Z02NYV1C4.11BLB9PLVW9G1@fedora/
Fixes: e92f469b0771 ("riscv: signal: Report signal frame size to userspace via auxv")
Signed-off-by: Victor Isaev <isv at google.com>

---
 arch/riscv/include/uapi/asm/auxvec.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/include/uapi/asm/auxvec.h b/arch/riscv/include/uapi/asm/auxvec.h
index 10aaa83db89e..95050ebe9ad0 100644
--- a/arch/riscv/include/uapi/asm/auxvec.h
+++ b/arch/riscv/include/uapi/asm/auxvec.h
@@ -34,7 +34,7 @@
 #define AT_L3_CACHEGEOMETRY	47
 
 /* entries in ARCH_DLINFO */
-#define AT_VECTOR_SIZE_ARCH	9
+#define AT_VECTOR_SIZE_ARCH	10
 #define AT_MINSIGSTKSZ		51
 
 #endif /* _UAPI_ASM_RISCV_AUXVEC_H */
-- 
2.34.1




More information about the linux-riscv mailing list