[Y2038] [PATCH v3 4/5] pselect6: use __kernel_timespec

2018-09-16 Thread Deepa Dinamani
struct timespec is not y2038 safe. struct __kernel_timespec is the new y2038 safe structure for all syscalls that are using struct timespec. Update pselect interfaces to use struct __kernel_timespec. sigset_t also has different representations on 32 bit and 64 bit architectures. Hence, we need to

[Y2038] [PATCH v3 5/5] io_pgetevents: use __kernel_timespec

2018-09-16 Thread Deepa Dinamani
struct timespec is not y2038 safe. struct __kernel_timespec is the new y2038 safe structure for all syscalls that are using struct timespec. Update io_pgetevents interfaces to use struct __kernel_timespec. sigset_t also has different representations on 32 bit and 64 bit architectures. Hence, we

[Y2038] [PATCH v3 3/5] ppoll: use __kernel_timespec

2018-09-16 Thread Deepa Dinamani
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

[Y2038] [PATCH v3 2/5] signal: Add restore_user_sigmask()

2018-09-16 Thread Deepa Dinamani
Refactor the logic to restore the sigmask before the syscall returns into an api. This is useful for versions of syscalls that pass in the sigmask and expect the current->sigmask to be changed during the execution and restored after the execution of the syscall. With the advent of new y2038

[Y2038] [PATCH v3 0/5] y2038: Make ppoll, io_pgetevents and pselect y2038 safe

2018-09-16 Thread Deepa Dinamani
The series transitions the ppoll, io_getevents, and pselect syscalls to be y2038 safe. This is part of the work proceeding for syscalls for y2038. It is based on the series [1] from Arnd Bergmann. The overview of the series is as below: 1. Refactor sigmask handling logic for the above syscalls.