This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/23296] Data race in setting function descriptor during lazy binding
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 18 Jun 2018 16:31:06 +0000
- Subject: [Bug libc/23296] Data race in setting function descriptor during lazy binding
- Auto-submitted: auto-generated
- References: <bug-23296-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23296
--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to John David Anglin from comment #1)
> After thinking about this, I don't believe this can be fixed in glibc.
>
> 1) The window for the race could be reduced by atomically updating function
> descriptors but the race can't be fully eliminated. See for example the
> linker
> stub shown at the end of comment #1. Function descriptors would have to have
> 8 byte alignment.
>
> 2) Even if we could detect the case where the function descriptor has been
> updated between the loading of the ip and gp values, there's no way to find
> the function descriptor and correct the ip value.
>
> So, I think we should link pthread executables and shared libraries with
> "-z now".
You have not described the race.
Could you please describe the race in detail?
--
You are receiving this mail because:
You are on the CC list for the bug.