From: Florian Weimer <fw@deneb.enyo.de>
To: Chris Kennelly <ckennelly@google.com>
Cc: libc-coord@lists.openwall.com,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
"carlos@redhat.com" <carlos@redhat.com>,
libc-alpha <libc-alpha@sourceware.org>,
szabolcs.nagy@arm.com
Subject: Re: [libc-coord] Re: RSEQ symbols: __rseq_size, __rseq_flags vs __rseq_feature_size
Date: Fri, 16 Sep 2022 23:32:38 +0200 [thread overview]
Message-ID: <87fsgryphl.fsf@mid.deneb.enyo.de> (raw)
In-Reply-To: <CAEE+ybkXCYoX73ksO0yutpc+4QZ_RuKnLxquVymzwj01d0=x-g@mail.gmail.com> (Chris Kennelly's message of "Fri, 16 Sep 2022 11:41:39 -0400")
* Chris Kennelly:
>> If the kernel does not currently overwrite the padding, glibc can do
>> its own per-thread initialization there to support its malloc
>> implementation (because the padding is undefined today from an
>> application perspective). That is, we would initialize these
>> invisible vCPU IDs the same way we assign arenas today. That would
>> cover this specific malloc use case only, of course.
> If a user program updates to a new kernel before glibc does, would it be
> able to easily take advantage of it?
No, as far as I understand it, there is presently no signaling from
kernel to applications that bypasses the rseq area registration. So
the only thing you could do is to unregister and re-register with a
compatible value. And that is of course quite undefined and assumes
that you can do this early enough during the life-time of each thread.
But if we have the extension handshake, I'll expect us to backport it
quite widely, after some time to verify that it works with CRIU etc.
next prev parent reply other threads:[~2022-09-16 21:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-16 14:36 Mathieu Desnoyers
2022-09-16 14:44 ` Mathieu Desnoyers
2022-09-16 15:29 ` Florian Weimer
2022-09-16 15:41 ` [libc-coord] " Chris Kennelly
2022-09-16 21:32 ` Florian Weimer [this message]
2022-09-17 11:51 ` Mathieu Desnoyers
2022-09-17 14:45 ` Florian Weimer
2022-09-17 15:25 ` Mathieu Desnoyers
2022-09-20 11:51 ` Szabolcs Nagy
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=87fsgryphl.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=carlos@redhat.com \
--cc=ckennelly@google.com \
--cc=libc-alpha@sourceware.org \
--cc=libc-coord@lists.openwall.com \
--cc=mathieu.desnoyers@efficios.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).