lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251215033443.196159-2-xry111@xry111.site>
Date: Mon, 15 Dec 2025 11:34:42 +0800
From: Xi Ruoyao <xry111@...111.site>
To: Huacai Chen <chenhuacai@...nel.org>,
	WANG Xuerui <kernel@...0n.name>,
	Arnd Bergmann <arnd@...db.de>
Cc: Mingcong Bai <jeffbai@...c.io>,
	loongarch@...ts.linux.dev,
	Xi Ruoyao <xry111@...111.site>,
	Jiaxun Yang <jiaxun.yang@...goat.com>,
	linux-kernel@...r.kernel.org (open list)
Subject: [PATCH] LoongArch: Don't define __ARCH_WANT_NEW_STAT for LA32

While on LA64 we had added __ARCH_WANT_NEW_STAT back for technological
aesthetics reason, on LA32 the newstat family suffers Y2038 issue and it
should not be used at all, as the commit 82b355d161c9 ("y2038: Remove
newstat family from default syscall set") has already pointed out.

Fixes: 14338e631afd ("LoongArch: Adjust system call for 32BIT/64BIT")
Signed-off-by: Xi Ruoyao <xry111@...111.site>
---
 arch/loongarch/include/asm/unistd.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/loongarch/include/asm/unistd.h b/arch/loongarch/include/asm/unistd.h
index e2c0f3d86c7b..4a7e4a6b6627 100644
--- a/arch/loongarch/include/asm/unistd.h
+++ b/arch/loongarch/include/asm/unistd.h
@@ -8,7 +8,10 @@
 
 #include <uapi/asm/unistd.h>
 
+#if defined(__LP64__) && !defined(__SYSCALL_COMPAT)
 #define __ARCH_WANT_NEW_STAT
+#endif
+
 #define __ARCH_WANT_SYS_CLONE
 
 #define NR_syscalls (__NR_syscalls)
-- 
2.52.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ