From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.seebs.net (mail.seebs.net [162.213.38.76]) by mail.openembedded.org (Postfix) with ESMTP id D3C39785A3 for ; Tue, 27 Mar 2018 16:46:46 +0000 (UTC) Received: from seebsdell (unknown [24.196.59.174]) by mail.seebs.net (Postfix) with ESMTPSA id 1A74D2E892B; Tue, 27 Mar 2018 11:46:48 -0500 (CDT) Date: Tue, 27 Mar 2018 11:46:46 -0500 From: Seebs To: Enrico Scholz Message-ID: <20180327114646.3e7fe6c5@seebsdell> In-Reply-To: References: <20180324142427.53da953d@seebsdell> <20180324145044.168f7e3f@seebsdell> <20180326143107.48f153a5@seebsdell> <20180327105028.188e6bdc@seebsdell> X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Cc: openembedded-core@lists.openembedded.org Subject: Re: pseudo: host user contamination X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 16:46:46 -0000 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 27 Mar 2018 18:26:05 +0200 Enrico Scholz wrote: > Perhaps we have different man pages but e.g. [1] mentions only > registers in the context of the kernel interface but not when > entering/leaving syscall(2) itself. And yet, it's syscall(2) doing the thing... or possibly it's not, because it turns out I don't read IA64 assembly. > When, then this is completely undocumented and a glibc-only thing. > Other implementations[2] follow the behavior described in the man page > and do not set some magic registers on return. > I did not found the glibc syscall implementation for MIPS atm. Hmm. In MIPS, it does appear that glibc's syscall is *using* the return register, rather than writing to it. Yeah, I misread the IA64 code. I'm gonna go ahead and try to implement a wrapper. Until I've got test cases available, it's gonna be a custom wrapper, that will ENOTSUP for renameat2, and try to pass other things on naively. But I think Andre and Enrico are right that the code in glibc is not doing what I interpreted it as doing. -s