mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Alexey Izbyshev <izbyshev@ispras.ru>
To: musl@lists.openwall.com
Cc: Bruno Haible <bruno@clisp.org>
Subject: Re: [musl] insufficient checking in posix_spawn_file_actions_add{open,dup2}
Date: Mon, 25 Jan 2021 22:33:15 +0300	[thread overview]
Message-ID: <2af5be3e5cda425b3f65a2b9485c7f0a@ispras.ru> (raw)
In-Reply-To: <20210125161512.GW23432@brightrain.aerifal.cx>

On 2021-01-25 19:15, Rich Felker wrote:
> On Mon, Jan 25, 2021 at 05:07:36PM +0100, Bruno Haible wrote:
>> Do you know why even simple syscalls like getpid()
>> exist in the vdso only for ia64?
> 
> In the case of getpid, because glibc does (or at least did? not sure
> if they still do) cache it themselves in the TCB, adding it to vdso
> offered no additional concrete benefit.
> 
Glibc dropped PID caching long ago[1], and it famously regressed systemd 
at the time[2].

[1] 
https://sourceware.org/git/?p=glibc.git;a=commit;h=c579f48edba88380635ab98cb612030e3ed8691e
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1469670

Alexey

  parent reply	other threads:[~2021-01-25 19:33 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 [this message]
2021-01-25 19:37       ` Markus Wichmann
2021-01-25 19:48         ` Florian Weimer

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=2af5be3e5cda425b3f65a2b9485c7f0a@ispras.ru \
    --to=izbyshev@ispras.ru \
    --cc=bruno@clisp.org \
    --cc=musl@lists.openwall.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.
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).