diff options
author | 2019-10-25 22:56:17 +0200 | |
---|---|---|
committer | 2019-11-15 14:38:29 +0100 | |
commit | 75d319c06e6a76f67549c0ae1007dc3167804f4e (patch) | |
tree | 5aed38b6b958308fe83e580a6222767a91bd2b1e /kernel/time/time.c | |
parent | y2038: rusage: use __kernel_old_timeval (diff) | |
download | linux-75d319c06e6a76f67549c0ae1007dc3167804f4e.tar.gz linux-75d319c06e6a76f67549c0ae1007dc3167804f4e.tar.bz2 linux-75d319c06e6a76f67549c0ae1007dc3167804f4e.zip |
y2038: syscalls: change remaining timeval to __kernel_old_timeval
All of the remaining syscalls that pass a timeval (gettimeofday, utime,
futimesat) can trivially be changed to pass a __kernel_old_timeval
instead, which has a compatible layout, but avoids ambiguity with
the timeval type in user space.
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'kernel/time/time.c')
-rw-r--r-- | kernel/time/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/time.c b/kernel/time/time.c index 833abae3364f..a0e7b9909f2d 100644 --- a/kernel/time/time.c +++ b/kernel/time/time.c @@ -137,7 +137,7 @@ SYSCALL_DEFINE1(stime32, old_time32_t __user *, tptr) #endif /* __ARCH_WANT_SYS_TIME32 */ #endif -SYSCALL_DEFINE2(gettimeofday, struct timeval __user *, tv, +SYSCALL_DEFINE2(gettimeofday, struct __kernel_old_timeval __user *, tv, struct timezone __user *, tz) { if (likely(tv != NULL)) { |