[PATCH 1/7] x86/vdso: Respect COMPAT_32BIT_TIME
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Apr 14 20:16:49 AEST 2026
On Mon, Apr 13, 2026 at 06:57:57PM +0200, Arnd Bergmann wrote:
> On Mon, Apr 13, 2026, at 18:13, Thomas Weißschuh wrote:
(...)
> > if (tv && !IS_ENABLED(CONFIG_COMPAT_32BIT_TIME) && sizeof(tv->tv_sec) < 8) {
> > pr_warn_once(...);
> > return -EINVAL;
> > }
> >
> > Or maybe drop the EINVAL but still emit a warning. That warning would be
> > useful for gettimeofday(), too.
>
> We discussed this during the original y2038 work and decided
> at the time to not have those warnings for syscalls. We could
> bring that back, but I think I would want one level of abstraction
> there and control this using a global Kconfig switch for all
> syscalls as well as ioctl commands that could use such a check.
I'd like to avoid another kconfig option. Linus doesn't sound too
excited about those [0].
Thomas
[0] https://lore.kernel.org/lkml/CAHk-=whigg3hvOy7c1j1MXFy6o6CHp0g4Tc3Y-MAk+XDssHU0A@mail.gmail.com/
More information about the Linuxppc-dev
mailing list