mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: uapi: Provide correct __BITS_PER_LONG for the compat vDSO
@ 2025-08-21  7:56 Thomas Weißschuh
  2025-08-21  7:56 ` [PATCH 1/3] " Thomas Weißschuh
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Thomas Weißschuh @ 2025-08-21  7:56 UTC (permalink / raw)
  To: Catalin Marinas, Will Deacon, Thomas Gleixner, Arnd Bergmann,
	Andy Lutomirski, Vincenzo Frascino
  Cc: John Stultz, linux-arm-kernel, linux-kernel, Thomas Weißschuh

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@linutronix.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@linutronix.de>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-09-08 15:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-21  7:56 [PATCH 0/3] arm64: uapi: Provide correct __BITS_PER_LONG for the compat vDSO Thomas Weißschuh
2025-08-21  7:56 ` [PATCH 1/3] " Thomas Weißschuh
2025-08-21 17:09   ` John Stultz
2025-08-21 17:33   ` Arnd Bergmann
2025-08-21  7:56 ` [PATCH 2/3] arm64: vdso32: Stop suppressing warnings Thomas Weißschuh
2025-08-21  7:56 ` [PATCH 3/3] arm64: vdso32: Respect -Werror from kbuild Thomas Weißschuh
2025-09-03 10:49 ` [PATCH 0/3] arm64: uapi: Provide correct __BITS_PER_LONG for the compat vDSO Thomas Weißschuh
2025-09-03 11:21 ` (subset) " Catalin Marinas
2025-09-08 15:55 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®