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

2018-09-17 Thread Deepa Dinamani
On Mon, Sep 17, 2018 at 1:34 PM Stepan Golosunov wrote: > > On Sun, Sep 16, 2018 at 06:04:57PM -0700, Deepa Dinamani wrote: > > static long do_compat_pselect(int n, compat_ulong_t __user *inp, > > compat_ulong_t __user *outp, compat_ulong_t __user *exp, > > - struct old_timespec32

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

2018-09-17 Thread Stepan Golosunov
On Sun, Sep 16, 2018 at 06:04:57PM -0700, Deepa Dinamani wrote: > static long do_compat_pselect(int n, compat_ulong_t __user *inp, > compat_ulong_t __user *outp, compat_ulong_t __user *exp, > - struct old_timespec32 __user *tsp, compat_sigset_t __user *sigmask, > - compat_size_t

[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