[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250821-vdso-arm64-compat-bitsperlong-v1-0-700bcabe7732@linutronix.de>
Date: Thu, 21 Aug 2025 09:56:43 +0200
From: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
To: Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>, Thomas Gleixner <tglx@...utronix.de>,
Arnd Bergmann <arnd@...db.de>, Andy Lutomirski <luto@...nel.org>,
Vincenzo Frascino <vincenzo.frascino@....com>
Cc: John Stultz <jstultz@...gle.com>, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Subject: [PATCH 0/3] arm64: uapi: Provide correct __BITS_PER_LONG for the
compat vDSO
The generic vDSO library uses the UAPI headers. On arm64 __BITS_PER_LONG is
always '64' even when used from the compat vDSO. In that case __GENMASK()
does an illegal bitshift, invoking undefined behaviour.
The first patch should go into the 6.17 tree.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@...utronix.de>
---
Thomas Weißschuh (3):
arm64: uapi: Provide correct __BITS_PER_LONG for the compat vDSO
arm64: vdso32: Stop suppressing warnings
arm64: vdso32: Respect -Werror from kbuild
arch/arm64/include/uapi/asm/bitsperlong.h | 5 +++++
arch/arm64/kernel/vdso32/Makefile | 13 +------------
2 files changed, 6 insertions(+), 12 deletions(-)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250820-vdso-arm64-compat-bitsperlong-4f59ae7ef6e7
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@...utronix.de>
Powered by blists - more mailing lists