From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19340 invoked from network); 25 Jan 2021 19:33:30 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2021 19:33:30 -0000 Received: (qmail 23932 invoked by uid 550); 25 Jan 2021 19:33:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 23914 invoked from network); 25 Jan 2021 19:33:27 -0000 MIME-Version: 1.0 Date: Mon, 25 Jan 2021 22:33:15 +0300 From: Alexey Izbyshev To: musl@lists.openwall.com Cc: Bruno Haible In-Reply-To: <20210125161512.GW23432@brightrain.aerifal.cx> References: <3521697.b4TYcCAa2N@omega> <20210125144236.GV23432@brightrain.aerifal.cx> <2658009.jRRjQAZNrc@omega> <20210125161512.GW23432@brightrain.aerifal.cx> User-Agent: Roundcube Webmail/1.4.4 Message-ID: <2af5be3e5cda425b3f65a2b9485c7f0a@ispras.ru> X-Sender: izbyshev@ispras.ru Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [musl] insufficient checking in posix_spawn_file_actions_add{open,dup2} 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