From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 02BB93858C5F; Fri, 12 Jan 2024 13:24:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 02BB93858C5F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705065878; bh=KmAyH9cN4WT+AEe7ms6+H/JJ2TueWWtaGELw4MTM9R8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tLTVMctWxeDBpc2FO+BSfdDxu5uoOKJXj5Cf02FmqfZgvU5nc14xTDS632Zf0SjDH NcqOpnO8gwEfnZaFJQeERC9iHggGzqYc7Yi7P2/eJwv0Y6DFcmgoAVJddvcRYbFCRd C9KkR5glyfy+D/Qll6Hq1qtLU2GPYyxs2SvWcvKA= From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug malloc/29624] errno is not cleared when entering main Date: Fri, 12 Jan 2024 13:24:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: malloc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org X-Bugzilla-Target-Milestone: 2.37 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29624 --- Comment #2 from Sourceware Commits --- The master branch has been updated by Andreas K. Huttel : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3D5a85786a9005722be7c= b9e70f8874a5f1130daea commit 5a85786a9005722be7cb9e70f8874a5f1130daea Author: Xi Ruoyao Date: Thu Jan 4 21:41:20 2024 +0800 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: Xi Ruoyao Reviewed-by: Adhemerval Zanella Signed-off-by: Andreas K. H=C3=BCttel --=20 You are receiving this mail because: You are on the CC list for the bug.=