From: Stefan Liebler <stli@linux.ibm.com>
To: Szabolcs Nagy <szabolcs.nagy@arm.com>, libc-alpha@sourceware.org
Cc: nd@arm.com, "Carlos O'Donell" <carlos@redhat.com>,
Heiko Carstens <heiko.carstens@de.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>
Subject: Re: Restartable Sequences system call merged into Linux
Date: Fri, 13 Jul 2018 13:22:00 -0000 [thread overview]
Message-ID: <444814d7-36aa-4163-225b-5feb89639fe2@linux.ibm.com> (raw)
In-Reply-To: <5431019d-02f4-6ac2-e2de-f4f38118ddc1@arm.com>
On 07/12/2018 10:10 AM, Szabolcs Nagy wrote:
> On 11/07/18 17:03, Stefan Liebler wrote:
>> On 06/11/2018 09:49 PM, Mathieu Desnoyers wrote:
>>> Hi!
>>>
>>> Good news! The restartable sequences (rseq) system call is now merged
>>> into the master
>>> branch of the Linux kernel within the 4.18 merge window:
>>>
>>> https://github.com/torvalds/linux/commit/d82991a8688ad128b46db1b42d5d84396487a508
>>>
>>>
>>> It would be important to discuss how we should proceed to integrate
>>> the library part
>>> of rseq (see tools/testing/selftests/rseq/rseq*.{ch}) into glibc, or
>>> if it should
>>> live in a standalone project.
>>>
>>> It should be noted that there can be only one rseq TLS area
>>> registered per thread,
>>> which can then be used by many libraries and by the executable, so
>>> this is a
>>> process-wide (per-thread) resource that we need to manage carefully.
>>>
>>> Thoughts ?
>>>
>>> Thanks!
>>>
>>> Mathieu
>>>
>>>
>> The structs rseq_cs and rseq are aligned to 32 bytes.
>> Please have a look at the bug:
>> "Bug 23403 - Wrong alignment of TLS variables"
>> (https://sourceware.org/bugzilla/show_bug.cgi?id=23403).
>>
>> @Carlos or somebody else:
>> Should this be fixed in the upcoming glibc release?
>>
>
> i think s390 can implement a hack that increases the internal
> pthread_t alignment to 64 or similar.
>
> that effectively fixes 2.28 in practice (huge tls alignment
> should be rare).
>
Yes, this hack would fix it, but on the other side it hides a real bug.
Therefore I prefer Florian's idea that once it is fixed, it should be
backported.
prev parent reply other threads:[~2018-07-13 13:22 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-11 19:49 Mathieu Desnoyers
2018-06-11 19:55 ` Florian Weimer
2018-06-11 20:04 ` Mathieu Desnoyers
2018-06-12 13:11 ` Florian Weimer
2018-06-12 16:31 ` Mathieu Desnoyers
2018-06-13 8:23 ` Florian Weimer
2018-06-14 12:28 ` Pavel Machek
2018-06-14 13:02 ` Mathieu Desnoyers
2018-06-14 13:26 ` Pavel Machek
2018-06-14 13:32 ` Florian Weimer
2018-06-14 13:46 ` Mathieu Desnoyers
2018-06-15 5:10 ` Florian Weimer
2018-06-15 17:44 ` Mathieu Desnoyers
2018-06-14 13:38 ` Mathieu Desnoyers
2018-06-14 13:50 ` Pavel Machek
2018-06-14 14:01 ` Florian Weimer
2018-06-14 14:36 ` Mathieu Desnoyers
2018-06-14 14:41 ` Florian Weimer
2018-06-14 15:09 ` Mathieu Desnoyers
2018-06-15 5:09 ` Florian Weimer
2018-06-15 17:50 ` Mathieu Desnoyers
2018-06-15 5:07 ` Florian Weimer
2018-06-13 11:48 ` Heiko Carstens
2018-06-13 16:14 ` Mathieu Desnoyers
2018-06-13 19:53 ` Mathieu Desnoyers
2018-07-11 16:03 ` Stefan Liebler
2018-07-11 16:23 ` Adhemerval Zanella
2018-07-11 17:19 ` Florian Weimer
2018-07-11 17:42 ` Adhemerval Zanella
2018-07-11 17:45 ` Florian Weimer
2018-07-11 17:59 ` Adhemerval Zanella
2018-07-12 8:08 ` Stefan Liebler
2018-07-11 19:05 ` Carlos O'Donell
2018-07-12 8:10 ` Szabolcs Nagy
2018-07-13 13:22 ` Stefan Liebler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=444814d7-36aa-4163-225b-5feb89639fe2@linux.ibm.com \
--to=stli@linux.ibm.com \
--cc=carlos@redhat.com \
--cc=gor@linux.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=libc-alpha@sourceware.org \
--cc=nd@arm.com \
--cc=szabolcs.nagy@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).