public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/23790] Data race in _dl_profile_fixup with reloc_result update from multiple threads.
       [not found] <bug-23790-131@http.sourceware.org/bugzilla/>
@ 2021-06-14 16:54 ` carlos at redhat dot com
  2021-06-15  2:31 ` carlos at redhat dot com
  2023-01-31 19:15 ` johnkaitlyn95 at gmail dot com
  2 siblings, 0 replies; 3+ messages in thread
From: carlos at redhat dot com @ 2021-06-14 16:54 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #1 from Carlos O'Donell <carlos at redhat dot com> ---
This issue is only relevant when the PLT entry is a multi-word entry and
therefore needs multiple writes to complete.

I think that IA64 and HPPA (32-bit) are impacted by this issue because of the
function descriptor in the PLT.

The power code also likely suffers from this, but in binutils the PLT update
sequence is designed to be "thread safe" using architecture-related interlocks.

-- 
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/23790] Data race in _dl_profile_fixup with reloc_result update from multiple threads.
       [not found] <bug-23790-131@http.sourceware.org/bugzilla/>
  2021-06-14 16:54 ` [Bug dynamic-link/23790] Data race in _dl_profile_fixup with reloc_result update from multiple threads carlos at redhat dot com
@ 2021-06-15  2:31 ` carlos at redhat dot com
  2023-01-31 19:15 ` johnkaitlyn95 at gmail dot com
  2 siblings, 0 replies; 3+ messages in thread
From: carlos at redhat dot com @ 2021-06-15  2:31 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to Carlos O'Donell from comment #1)
> This issue is only relevant when the PLT entry is a multi-word entry and
> therefore needs multiple writes to complete.
> 
> I think that IA64 and HPPA (32-bit) are impacted by this issue because of
> the function descriptor in the PLT.
> 
> The power code also likely suffers from this, but in binutils the PLT update
> sequence is designed to be "thread safe" using architecture-related
> interlocks.

What I wrote here applies both to the traditional PLT fixup in the dynamic
loader *and* the fixup of the cached entries while profiling. This particular
bug is about only the fixup of the cached entries which are updated when
profiling. In this case glibc is entirely responsible for the update.

-- 
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/23790] Data race in _dl_profile_fixup with reloc_result update from multiple threads.
       [not found] <bug-23790-131@http.sourceware.org/bugzilla/>
  2021-06-14 16:54 ` [Bug dynamic-link/23790] Data race in _dl_profile_fixup with reloc_result update from multiple threads carlos at redhat dot com
  2021-06-15  2:31 ` carlos at redhat dot com
@ 2023-01-31 19:15 ` johnkaitlyn95 at gmail dot com
  2 siblings, 0 replies; 3+ messages in thread
From: johnkaitlyn95 at gmail dot com @ 2023-01-31 19:15 UTC (permalink / raw)
  To: glibc-bugs

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

Kaitlyn John <johnkaitlyn95 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johnkaitlyn95 at gmail dot com

--- Comment #3 from Kaitlyn John <johnkaitlyn95 at gmail dot com> ---
Here is a race condition in dlprofile_fixup with reloc_result update from
multiple threads. The problem is that dlprofile_fixup can be executed from
different threads concurrently and the code which handles the result of the
relocation is not protected against concurrent writes, which leads to data
races on the reloc_result variable.
https://iheartcbdoil.com/cbd-benefits/how-cbd-can-be-helpful-for-heart-diseases/

-- 
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:[~2023-01-31 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23790-131@http.sourceware.org/bugzilla/>
2021-06-14 16:54 ` [Bug dynamic-link/23790] Data race in _dl_profile_fixup with reloc_result update from multiple threads carlos at redhat dot com
2021-06-15  2:31 ` carlos at redhat dot com
2023-01-31 19:15 ` johnkaitlyn95 at gmail dot com

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