diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-08-02 14:03:22 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-08-02 17:31:41 -0400 |
commit | 519ded5a89ec0e46e5b0867ba9f5752239b73898 (patch) | |
tree | 59af01944e5b0abfe24e9b8cdf619f7875f7a08a /fs/proc/fd.c | |
parent | ef419398b68925f21fd3d8463c7bf6934d2ec926 (diff) | |
download | linux-519ded5a89ec0e46e5b0867ba9f5752239b73898.tar.bz2 |
procfs: avoid 32-bit time_t in /proc/*/stat
/proc/stat shows (among lots of other things) the current boottime (i.e.
number of seconds since boot). While a 32-bit number is sufficient for
this particular case, we want to get rid of the 'struct timespec'
suffers from a 32-bit overflow in 2038.
This changes the code to use a struct timespec64, which is known to be
safe in all cases.
Link: http://lkml.kernel.org/r/20160617201247.2292101-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/proc/fd.c')
0 files changed, 0 insertions, 0 deletions