public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/18572] New: [arm] Lazy TLSDESC relocation has data race
@ 2015-06-22 11:27 nszabolcs at gmail dot com
  2015-08-22 21:35 ` [Bug dynamic-link/18572] " jsm28 at gcc dot gnu.org
  2015-10-14 16:02 ` cvs-commit at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: nszabolcs at gmail dot com @ 2015-06-22 11:27 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18572

            Bug ID: 18572
           Summary: [arm] Lazy TLSDESC relocation has data race
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: nszabolcs at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

same as bug 18034 but for 32bit arm.

With -mtls-dialect=gnu2, gcc generates TLSDESC code for TLS access on arm.

In glibc the arm TLSDESC entry functions in sysdeps/arm/dl-tlsdesc.S don't
synchronize with the initializer in tlsdesc.c, so an entry function may read
stale argument if the initialization happened concurrently on another cpu.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dynamic-link/18572] [arm] Lazy TLSDESC relocation has data race
  2015-06-22 11:27 [Bug libc/18572] New: [arm] Lazy TLSDESC relocation has data race nszabolcs at gmail dot com
@ 2015-08-22 21:35 ` jsm28 at gcc dot gnu.org
  2015-10-14 16:02 ` cvs-commit at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2015-08-22 21:35 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18572

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libc                        |dynamic-link

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug dynamic-link/18572] [arm] Lazy TLSDESC relocation has data race
  2015-06-22 11:27 [Bug libc/18572] New: [arm] Lazy TLSDESC relocation has data race nszabolcs at gmail dot com
  2015-08-22 21:35 ` [Bug dynamic-link/18572] " jsm28 at gcc dot gnu.org
@ 2015-10-14 16:02 ` cvs-commit at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-10-14 16:02 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=18572

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  1fae5a6800b07d0a8225664ac65a628bbe98cae7 (commit)
      from  f45e45a3e07ccd555a3130a9413fcebe6d8f5213 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1fae5a6800b07d0a8225664ac65a628bbe98cae7

commit 1fae5a6800b07d0a8225664ac65a628bbe98cae7
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Wed Oct 14 16:58:41 2015 +0100

    [BZ #19129][ARM] Fix _dl_tlsdesc_resolve_hold to save r0

    _dl_tlsdesc_resolve_hold calls into a C function that clobbers r0,
    but it assumes the original argument is still in r0 after the call.
    This can cause crash in case of concurrent TLS access when TLSDESC
    is in use (-mtls-dialect=gnu2).

    Run into this while fixing BZ 18572.

    Both r0 and r1 are saved/restored so the stack remains 8 byte aligned.

        [BZ #19129]
        * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save and restore
        r0 and r1.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                |    6 ++++++
 NEWS                     |    2 +-
 sysdeps/arm/dl-tlsdesc.S |   27 ++++++++++++++++++---------
 3 files changed, 25 insertions(+), 10 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-14 16:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-22 11:27 [Bug libc/18572] New: [arm] Lazy TLSDESC relocation has data race nszabolcs at gmail dot com
2015-08-22 21:35 ` [Bug dynamic-link/18572] " jsm28 at gcc dot gnu.org
2015-10-14 16:02 ` cvs-commit at gcc dot gnu.org

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).