diff options
author | Deepa Dinamani <deepa.kernel@gmail.com> | 2017-08-03 05:51:14 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-09-04 03:24:29 +0300 |
commit | 7ff2819e8dd5b528887dfbe4ff395f5d2142edff (patch) | |
tree | 5107f4eddf48f3ef4333aa5380096273b53d7580 /include/linux/shm.h | |
parent | e54d02b23c5eed3aa0ffe54e659dfe1c9084c262 (diff) | |
download | linux-7ff2819e8dd5b528887dfbe4ff395f5d2142edff.tar.xz |
ipc: shm: Make shmid_kernel 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>
Diffstat (limited to 'include/linux/shm.h')
-rw-r--r-- | include/linux/shm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/shm.h b/include/linux/shm.h index 04e881829625..7bb897b25309 100644 --- a/include/linux/shm.h +++ b/include/linux/shm.h @@ -12,9 +12,9 @@ struct shmid_kernel /* private to the kernel */ struct file *shm_file; unsigned long shm_nattch; unsigned long shm_segsz; - time_t shm_atim; - time_t shm_dtim; - time_t shm_ctim; + time64_t shm_atim; + time64_t shm_dtim; + time64_t shm_ctim; pid_t shm_cprid; pid_t shm_lprid; struct user_struct *mlock_user; |