linux_dsm_epyc7002/arch/um/include/shared
Arnd Bergmann 853bc0ab34 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>
2019-12-18 18:07:31 +01:00
..
skas um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
arch.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
as-layout.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
common-offsets.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
elf_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
frame_kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
init.h um: remove uml initcalls 2018-06-10 22:49:14 +02:00
irq_kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
irq_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
kern_util.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
longjmp.h um: Implement TRACE_IRQFLAGS_SUPPORT 2019-09-15 21:37:11 +02:00
mem_user.h um: delete unnecessary bootmem struct page array 2014-10-13 17:15:09 +02:00
mem.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
net_kern.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
net_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
os.h um: ubd: use 64-bit time_t where possible 2019-12-18 18:07:31 +01:00
ptrace_user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
registers.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
sigio.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
timer-internal.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
um_malloc.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00
user.h um: Add SPDX headers for files in arch/um/include 2019-09-15 21:37:17 +02:00