summaryrefslogtreecommitdiff
path: root/kernel/tsacct.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-11-05 09:39:51 +0100
committerArnd Bergmann <arnd@arndb.de>2019-12-18 18:07:31 +0100
commit853bc0ab341b0c99619f83f4060dedcccad77b2a (patch)
treece5ecd2529f48e2b4544b88bf06bc09debd0c4db /kernel/tsacct.c
parent37e86e0fd0403f51d6dd49abd1469361714f6ca4 (diff)
downloadlwn-853bc0ab341b0c99619f83f4060dedcccad77b2a.tar.gz
lwn-853bc0ab341b0c99619f83f4060dedcccad77b2a.zip
um: ubd: use 64-bit time_t where possible
The ubd code suffers from a possible y2038 overflow on 32-bit architectures, both for the cow header and the os_file_modtime() function. Replace time_t with time64_t to extend the ubd_kern side as much as possible. Whether this makes a difference for the user side depends on the host libc implementation that may use either 32-bit or 64-bit time_t. For the cow file format, the header contains an unsigned 32-bit timestamp, which is good until y2106, passing this through a 'long long' gives us a consistent interpretation between 32-bit and 64-bit um kernels. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'kernel/tsacct.c')
0 files changed, 0 insertions, 0 deletions