]> git.ipfire.org Git - thirdparty/linux.git/commit
select: store end_time as timespec64 in restart block
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 23 Dec 2025 07:00:39 +0000 (08:00 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 24 Dec 2025 13:01:57 +0000 (14:01 +0100)
commit0f166bf1d6d82701cc1d94445cc2a9107d1790df
tree1b71c75d484f945e7bc2c27dba8822a1c5bfc068
parent3685744afa4a2e65a4a509f1b782af98e929b83f
select: store end_time as timespec64 in restart block

Storing the end time seconds as 'unsigned long' can lead to truncation
on 32-bit architectures if assigned from the 64-bit timespec64::tv_sec.
As the select() core uses timespec64 consistently, also use that in the
restart block.

This also allows the simplification of the accessors.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://patch.msgid.link/20251223-restart-block-expiration-v2-1-8e33e5df7359@linutronix.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/select.c
include/linux/restart_block.h