Re: Bringing rseq back into glibc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Noah Goldstein:

> On Thu, Nov 18, 2021 at 4:17 AM Florian Weimer via Libc-alpha
> <libc-alpha@xxxxxxxxxxxxxx> wrote:
>>
>> I would like to bring back rseq for glibc 2.35.  I propose the following
>> steps:
>>
>> 1. Enable rseq registration in glibc, for internal use only.  This time,
>>    put the rseq area into struct pthread, not into a initial-exec TLS
>>    symbol.  (This helps to avoid with initial-exec TLS bloat with dlopen
>>    and simplifies initialization somewhat.)
>
> Isn't THREAD_SELF also implemented in TLS? Or am I missing
> something?

THREAD_SELF uses a pointer in the thread control block, and that pointer
is not replicated for different libc.so.6 copies with dlmopen (like the
rest of the TCB and struct pthread).

Thanks,
Florian




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux