]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
y2038: allow disabling time32 system calls
authorArnd Bergmann <arnd@arndb.de>
Mon, 15 Jul 2019 09:46:10 +0000 (11:46 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 15 Nov 2019 13:38:30 +0000 (14:38 +0100)
commit942437c97fd9ff23a17c13118f50bd0490f6868c
treef50bee60644436d76ec2188fd76b00c1f329f919
parentbd40a175769d411b2a37e1c087082ac7ee2c15bb
y2038: allow disabling time32 system calls

At the moment, the compilation of the old time32 system calls depends
purely on the architecture. As systems with new libc based on 64-bit
time_t are getting deployed, even architectures that previously supported
these (notably x86-32 and arm32 but also many others) no longer depend on
them, and removing them from a kernel image results in a smaller kernel
binary, the same way we can leave out many other optional system calls.

More importantly, on an embedded system that needs to keep working
beyond year 2038, any user space program calling these system calls
is likely a bug, so removing them from the kernel image does provide
an extra debugging help for finding broken applications.

I've gone back and forth on hiding this option unless CONFIG_EXPERT
is set. This version leaves it visible based on the logic that
eventually it will be turned off indefinitely.

Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/Kconfig
kernel/sys_ni.c