From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E21E3858415; Sat, 16 Mar 2024 14:23:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E21E3858415 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710598999; bh=aeAtCT+nYypYy3u7yoNnwczBm7N6ETNArSWyhbk6FGY=; h=From:To:Subject:Date:From; b=VEXprCLELXC3EKAG73g26G189CM+JVKWaG3pUanx4Ni2avdKzVME16O6L1LBf73f6 t0zLSrUFAH7KF+v6ZSQd4TWCAVFqmrVgnVwD3brzIt+shlz0rd/+FdKuZTk0v+0xCQ 9yARhGhlzE37bjpDmjp/ZpGvfUWuzHgfc4vxYmK0= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31501] New: _dl_tlsdesc_dynamic_xsavec may clobber %rbx Date: Sat, 16 Mar 2024 14:23:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: fweimer at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone cf_gcctarget Message-ID: 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=3D31501 Bug ID: 31501 Summary: _dl_tlsdesc_dynamic_xsavec may clobber %rbx Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: fweimer at redhat dot com Reporter: fweimer at redhat dot com Target Milestone: --- Target: x86-64 I believe the stack realignment code in sysdeps/x86_64/dl-tlsdesc-dynamic.h= can clobber the initial set of saved registers (including %rbx) if the stack alignment is unfortunate. The stack pointer is aligned down without first decrementing it, so the created stack area can partially overlap with the p= art of the red zone that was used for the initial register save. --=20 You are receiving this mail because: You are on the CC list for the bug.=