]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Fix SYSCALL_CANCEL for return values larger than INT_MAX (BZ 33245)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 1 Aug 2025 18:00:25 +0000 (15:00 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 1 Aug 2025 19:57:41 +0000 (16:57 -0300)
commit7107bebf19286f42dcb0a97581137a5893c16206
tree2c7419306c5d2bc66d82b009647c1b1b842a0093
parentcf91048748408f81566ead5b9498744100aa589c
nptl: Fix SYSCALL_CANCEL for return values larger than INT_MAX (BZ 33245)

The SYSCALL_CANCEL calls __syscall_cancel, which in turn
calls __internal_syscall_cancel with an 'int' return instead of the
expected 'long int'.  This causes issues with syscalls that return
values larger than INT_MAX, such as copy_file_range [1].

Checked on x86_64-linux-gnu.

[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=79139

Reviewed-by: Andreas K. Huettel <dilfridge@gentoo.org>
nptl/cancellation.c