Skip to content
Unverified Commit 5a85786a authored by Xi Ruoyao's avatar Xi Ruoyao Committed by Andreas K. Hüttel
Browse files

Make __getrandom_nocancel set errno and add a _nostatus version



The __getrandom_nocancel function returns errors as negative values
instead of errno.  This is inconsistent with other _nocancel functions
and it breaks "TEMP_FAILURE_RETRY (__getrandom_nocancel (p, n, 0))" in
__arc4random_buf.  Use INLINE_SYSCALL_CALL instead of
INTERNAL_SYSCALL_CALL to fix this issue.

But __getrandom_nocancel has been avoiding from touching errno for a
reason, see BZ 29624.  So add a __getrandom_nocancel_nostatus function
and use it in tcache_key_initialize.

Signed-off-by: default avatarXi Ruoyao <xry111@xry111.site>
Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
Signed-off-by: default avatarAndreas K. Hüttel <dilfridge@gentoo.org>
parent f2b65a44
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment