]> git.ipfire.org Git - thirdparty/glibc.git/commit
aarch64: morello: fix missing variadic argument in fcntl
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 15 Jul 2022 13:10:53 +0000 (14:10 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Tue, 22 Nov 2022 14:31:25 +0000 (14:31 +0000)
commit868b753880f56e598c62c5345769064d35cf9687
tree12da8f98909e7ba3025a93713e01169ff81e169a
parent04d2fec011b657210a410e95ec61783f77987648
aarch64: morello: fix missing variadic argument in fcntl

In fcntl va_arg is currently used even if the caller did not pass
any variadic arguments. This is undefined behaviour and does not
work with the Morello purecap ABI, so use a helper macro.

When the argument is missing, the result of the helper macro is
arbitrary as it will be ignored by the kernel, we just have to
ensure it does not cause a runtime crash.
sysdeps/unix/sysv/linux/aarch64/morello/sysdep.h
sysdeps/unix/sysv/linux/fcntl64.c
sysdeps/unix/sysv/linux/fcntl_nocancel.c