From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90442384772F; Wed, 3 Apr 2024 17:43:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90442384772F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712166187; bh=fXDO6NshKhLcGla0DYK6uObkQIyIn9l2Z7nG3Gmkc4Q=; h=From:To:Subject:Date:In-Reply-To:References:From; b=a8p4kENa2JFDiel2FnlBs9/axTUg17tu1UQhOEGLF9WdXvXuC1h6MjB8FprHFp5vi YicW040IdfZ7+IvR560Qq0RCS94XVNhphW2jqBN5B6jqVRXC4HRTHe+bWkWrF2yInT imvF/SPSxTs1M4S5prr1rbSTOuMnSZ/+cU/kjwos= From: "cvs-commit at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31372] _dl_tlsdesc_dynamic doesn't preserve all caller-saved registers Date: Wed, 03 Apr 2024 17:43:04 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.40 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- 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=3D31372 --- Comment #14 from Sourceware Commits --- The release/2.39/master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=3Dglibc.git;h=3D853e915fdd6ae6c5f1a= 7a68d2594ec8dbfef1286 commit 853e915fdd6ae6c5f1a7a68d2594ec8dbfef1286 Author: H.J. Lu Date: Wed Feb 28 12:08:03 2024 -0800 x86-64: Update _dl_tlsdesc_dynamic to preserve AMX registers _dl_tlsdesc_dynamic should also preserve AMX registers which are caller-saved. Add X86_XSTATE_TILECFG_ID and X86_XSTATE_TILEDATA_ID to x86-64 TLSDESC_CALL_STATE_SAVE_MASK. Compute the AMX state size and save it in xsave_state_full_size which is only used by _dl_tlsdesc_dynamic_xsave and _dl_tlsdesc_dynamic_xsavec. This fixes the AMX part of BZ #31372. Tested on AMX processor. AMX test is enabled only for compilers with the fix for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114098 GCC 14 and GCC 11/12/13 branches have the bug fix. Reviewed-by: Sunil K Pandey (cherry picked from commit 9b7091415af47082664717210ac49d51551456ab) --=20 You are receiving this mail because: You are on the CC list for the bug.=