]> git.baikalelectronics.ru Git - kernel.git/commit
ipc: sem: Make sem_array timestamps y2038 safe
authorDeepa Dinamani <deepa.kernel@gmail.com>
Thu, 3 Aug 2017 02:51:13 +0000 (19:51 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 00:24:29 +0000 (20:24 -0400)
commit65302b6df5d988977ea06a0e124f5aac04b5db58
tree2851477ce36dd58453bdc0e339b9f39c2d0427f9
parentb953cc2e07f8ace6a2f42b24aa704024472a2f9d
ipc: sem: Make sem_array timestamps y2038 safe

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 interface themselves are not changed as part of
the patch. They will be part of a different series.

Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/sem.h
ipc/sem.c