linux_old1/arch/um/os-Linux
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
..
drivers um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
skas um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
Makefile um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
elf_aux.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
execvp.c um: Use os_warn to print out pre-boot warning/error messages 2017-07-05 23:18:25 +02:00
file.c um: ubd: use 64-bit time_t where possible 2019-12-18 18:07:31 +01:00
helper.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
irq.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
main.c um: Don't trace irqflags during shutdown 2019-11-25 22:42:57 +01:00
mem.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
process.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
registers.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
sigio.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
signal.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
start_up.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
time.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
tty.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
umid.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00
user_syms.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
util.c um: Add SPDX headers for files in arch/um/os-Linux 2019-09-15 21:37:17 +02:00