This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/23296] Data race in setting function descriptor during lazy binding


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

--- Comment #8 from Carlos O'Donell <carlos at redhat dot com> ---
(In reply to dave.anglin from comment #7)
> On 2018-06-18 4:17 PM, carlos at redhat dot com wrote:
> > Here we would compare fptr to the plt entry we're trying to update.
> Unfortunately, we don't have fptr.  We have got, gp and l.  This gives 
> jmprel and end_jmprel but I don't think gp is sufficient to find the reloc.

It should be sufficient.

If you have jmprel and end_jmprel you can iterate over all the relocs.

If you can iterate the relocs you can compute the address that each reloc
adjusts.

You can compare the adjusted address to the PLT you are going to adjust?

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]