Re: [Y2038] [PATCH v2 3/6] ipc: msg: Make msg_queue timestamps y2038 safe

2017-07-31 Thread Arnd Bergmann
On Mon, Jul 31, 2017 at 12:30 AM, Deepa Dinamani wrote: > @@ -1181,7 +1181,7 @@ static int sysvipc_msg_proc_show(struct seq_file *s, > void *it) > struct msg_queue *msq = it; > > seq_printf(s, > - "%10d %10d %4o %10lu %10lu %5u %5u %5u

[Y2038] [PATCH v2 3/6] ipc: msg: Make msg_queue timestamps y2038 safe

2017-07-30 Thread Deepa Dinamani
time_t is not y2038 safe. Replace all uses of time_t by y2038 safe time64_t. Similarly, replace the calls to get_seconds() with y2038 safe ktime_get_real_seconds(). Note that this preserves fast access on 64 bit systems, but 32 bit systems need sequence counters. The syscall interfaces