From: Florian Weimer <fweimer@redhat.com>
To: Markus Wichmann <nullplan@gmx.net>
Cc: musl@lists.openwall.com
Subject: Re: [musl] insufficient checking in posix_spawn_file_actions_add{open,dup2}
Date: Mon, 25 Jan 2021 20:48:18 +0100 [thread overview]
Message-ID: <87tur4g5ml.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <20210125193758.GC2006@voyager> (Markus Wichmann's message of "Mon, 25 Jan 2021 20:37:58 +0100")
* Markus Wichmann:
> Adding a getpid vDSO call would require adding the code itself, adding
> the PID to the vvar page (isn't that shared among all processes?), and
> adding support for finding the vDSO function into the libcs. All of that
> for rather dubious performance benefits (or can you name a program that
> was not fast enough because getpid() ran too slowly?)
There's some discussion about this in the context of extensible rseq
support, including userspace donating thread-local data for kernel use
(“KTLS”). Reliable PID/TID/UID caching in userspace and sigprocmask
with a userspace fastpath are potential applications.
Thanks,
Florian
--
Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn,
Commercial register: Amtsgericht Muenchen, HRB 153243,
Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill
prev parent reply other threads:[~2021-01-25 19:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-25 8:31 Bruno Haible
2021-01-25 8:40 ` [musl] insufficient checking in posix_spawn_file_actions_addclose Bruno Haible
2021-01-25 14:42 ` [musl] insufficient checking in posix_spawn_file_actions_add{open,dup2} Rich Felker
2021-01-25 16:07 ` Bruno Haible
2021-01-25 16:15 ` Rich Felker
2021-01-25 17:58 ` Bruno Haible
2021-01-25 19:33 ` Alexey Izbyshev
2021-01-25 19:37 ` Markus Wichmann
2021-01-25 19:48 ` Florian Weimer [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=87tur4g5ml.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=musl@lists.openwall.com \
--cc=nullplan@gmx.net \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
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 NNTP newsgroup(s).