]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 7 Dec 2015 02:17:17 +0000 (21:17 -0500)
commitebe41ee8683ce337c3db1d324c1094cfd32d1e0c
treea9d112dd05a9baeb26500dcb085be2ed313b2d5c
parentab3c0f9bc12b2f28c7c66f992ef1c052405461bd
coredump: Use 64bit time for unix time of coredump

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>
fs/coredump.c