public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/31184] FAIL: elf/tst-tlsgap Date: Fri, 22 Dec 2023 13:37:36 +0000 [thread overview] Message-ID: <bug-31184-131-DeyxoHIouY@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-31184-131@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=31184 --- Comment #1 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by H.J. Lu <hjl@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3502440397bbb840e2f7223734aa5cc2cc0e29b6 commit 3502440397bbb840e2f7223734aa5cc2cc0e29b6 Author: H.J. Lu <hjl.tools@gmail.com> Date: Wed Dec 20 16:31:43 2023 -0800 x86-64: Fix the dtv field load for x32 [BZ #31184] On x32, I got FAIL: elf/tst-tlsgap $ gdb elf/tst-tlsgap ... open tst-tlsgap-mod1.so Thread 2 "tst-tlsgap" received signal SIGSEGV, Segmentation fault. [Switching to LWP 2268754] _dl_tlsdesc_dynamic () at ../sysdeps/x86_64/dl-tlsdesc.S:108 108 movq (%rsi), %rax (gdb) p/x $rsi $4 = 0xf7dbf9005655fb18 (gdb) This is caused by _dl_tlsdesc_dynamic: _CET_ENDBR /* Preserve call-clobbered registers that we modify. We need two scratch regs anyway. */ movq %rsi, -16(%rsp) movq %fs:DTV_OFFSET, %rsi Since the dtv field in TCB is a pointer, %fs:DTV_OFFSET is a 32-bit location, not 64-bit. Load the dtv field to RSI_LP instead of rsi. This fixes BZ #31184. -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-12-22 13:37 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-21 0:16 [Bug dynamic-link/31184] New: " hjl.tools at gmail dot com 2023-12-22 13:37 ` cvs-commit at gcc dot gnu.org [this message] 2023-12-22 14:44 ` [Bug dynamic-link/31184] " sam at gentoo dot org 2023-12-23 15:08 ` cvs-commit at gcc dot gnu.org 2023-12-23 17:00 ` cvs-commit at gcc dot gnu.org 2023-12-23 17:35 ` cvs-commit at gcc dot gnu.org 2023-12-23 17:36 ` cvs-commit at gcc dot gnu.org 2023-12-23 17:38 ` cvs-commit at gcc dot gnu.org 2023-12-23 17:40 ` hjl.tools at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-31184-131-DeyxoHIouY@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).