linux/arch/x86/entry
Arnd Bergmann ddccf40fe8 y2038: vdso: change timeval to __kernel_old_timeval
The gettimeofday() function in vdso uses the traditional 'timeval'
structure layout, which will be incompatible with future versions of
glibc on 32-bit architectures that use a 64-bit time_t.

This interface is problematic for y2038, when time_t overflows on 32-bit
architectures, but the plan so far is that a libc with 64-bit time_t
will not call into the gettimeofday() vdso helper at all, and only
have a method for entering clock_gettime().  This means we don't have
to fix it here, though we probably want to add a new clock_gettime()
entry point using a 64-bit version of 'struct timespec' at some point.

Changing the vdso code to use __kernel_old_timeval helps isolate
this usage from the other ones that still need to be fixed properly,
and it gets us closer to removing the 'timeval' definition from the
kernel sources.

Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2019-11-15 14:38:27 +01:00
..
syscalls x86/syscalls: Split the x32 syscalls into their own table 2019-07-22 10:31:23 +02:00
vdso Kbuild updates for v5.4 2019-09-20 08:36:47 -07:00
vsyscall y2038: vdso: change timeval to __kernel_old_timeval 2019-11-15 14:38:27 +01:00
calling.h Merge branch master from git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2019-07-28 22:22:40 +02:00
common.c x86/syscalls: Split the x32 syscalls into their own table 2019-07-22 10:31:23 +02:00
entry_32.S x86: Use CONFIG_PREEMPTION 2019-07-31 19:03:35 +02:00
entry_64_compat.S x86/entry/64/compat: Fix stack switching for XEN PV 2019-01-18 00:39:33 +01:00
entry_64.S Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2019-09-16 18:07:08 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
syscall_32.c syscalls/x86: Unconditionally enable 'struct pt_regs' based syscalls on x86_64 2018-04-05 16:59:38 +02:00
syscall_64.c x86/syscalls: Split the x32 syscalls into their own table 2019-07-22 10:31:23 +02:00
thunk_32.S x86: Use CONFIG_PREEMPTION 2019-07-31 19:03:35 +02:00
thunk_64.S x86: Use CONFIG_PREEMPTION 2019-07-31 19:03:35 +02:00