ppoll: use __kernel_timespec
authorDeepa Dinamani <deepa.kernel@gmail.com>
Thu, 20 Sep 2018 04:41:06 +0000 (21:41 -0700)
committerArnd Bergmann <arnd@arndb.de>
Thu, 6 Dec 2018 16:23:05 +0000 (17:23 +0100)
commit8bd27a3004e80d3d0962534c97e5a841262d5093
treec613241d9e7fcf74ab50b8743d0b6ba8d8f729d6
parent854a6ed56839a40f6b5d02a2962f48841482eec4
ppoll: use __kernel_timespec

struct timespec is not y2038 safe.
struct __kernel_timespec is the new y2038 safe structure for all
syscalls that are using struct timespec.
Update ppoll interfaces to use struct __kernel_timespec.

sigset_t also has different representations on 32 bit and 64 bit
architectures. Hence, we need to support the following different
syscalls:

New y2038 safe syscalls:
(Controlled by CONFIG_64BIT_TIME for 32 bit ABIs)

Native 64 bit(unchanged) and native 32 bit : sys_ppoll
Compat : compat_sys_ppoll_time64

Older y2038 unsafe syscalls:
(Controlled by CONFIG_32BIT_COMPAT_TIME for 32 bit ABIs)

Native 32 bit : ppoll_time32
Compat : compat_sys_ppoll

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
fs/select.c
include/linux/compat.h
include/linux/syscalls.h