Thread (12 messages) 12 messages, 2 authors, 13h ago

Re: [PATCH v2 0/9] vDSO: Respect COMPAT_32BIT_TIME

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2026-06-30 13:17:28
Also in: linux-arm-kernel, linux-mips, linuxppc-dev, lkml, sparclinux

On Tue, Jun 30, 2026, at 09:38, Thomas Weißschuh wrote:
If CONFIG_COMPAT_32BIT_TIME is disabled then the vDSO should not
provide any 32-bit time related functionality. This is the intended
effect of the kconfig option and also the fallback system calls would
also not be implemented.

Currently the kconfig option does not affect the gettimeofday() syscall,
so also keep that in the vDSO.

I also tried to introduce some helpers to avoid much of the ifdeffery,
but due to the high variance in the architecture-specific glue code
these would need to handle they ended up being worse than the current
proposal.

As a side-effect this will make the self-tests more reliable,
as there is now always a matching syscall available for each vDSO function.

clock_gettime_time64() was only introduced in v6.19, so libc implementations
   ^ clock_getres_time64()
Signed-off-by: Thomas Weißschuh <redacted>
---
Reviewed-by: Arnd Bergmann <arnd@arndb.de>

once we have consensus on my patch 1/9 comment. Thanks for
continuing this work!

      Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help