coredump: Use 64bit time for unix time of coredump
authorArnd Bergmann <arnd@arndb.de>
Wed, 25 Nov 2015 15:22:25 +0000 (16:22 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:51:07 +0000 (08:51 -0400)
commit0fea20fcc6806c82232a046a872838c0f06999e4
tree9a83a6da72902e73613682400bf301e4e914c971
parentbef794e8c891b60da2dec86c90f1e46fa142ea1e
coredump: Use 64bit time for unix time of coredump

[ Upstream commit 03927c8acb63100046260711c06ba28b6b5936fb ]

struct timeval on 32-bit systems will have its tv_sec
value overflow in year 2038 and beyond.
Use a 64 bit value to print time of the coredump in seconds.
ktime_get_real_seconds is chosen here for efficiency reasons.

Suggested by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
fs/coredump.c