Commit 0fea20fc authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Sasha Levin
Browse files

coredump: Use 64bit time for unix time of coredump



[ Upstream commit 03927c8a ]

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: default avatarTina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>

Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent bef794e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment