]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - ipc/msg.c
ipc: msg: Make msg_queue timestamps y2038 safe
authorDeepa Dinamani <deepa.kernel@gmail.com>
Thu, 3 Aug 2017 02:51:12 +0000 (19:51 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 00:21:24 +0000 (20:21 -0400)
commit50578ea97a2a352c109bd1657e667b212faf2cbb
tree7a242252edae5c64837daa28d9d008b18c2b445c
parentb9047726386bb538cf5e4f52a9f04eb556eebc67
ipc: msg: Make msg_queue 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 interfaces 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/msg.h
ipc/msg.c