From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.cvg.de (mail.cvg.de [193.158.56.148]) by mail.openembedded.org (Postfix) with ESMTP id 7A3C3784EB for ; Tue, 27 Mar 2018 13:06:57 +0000 (UTC) Received: from mail-mta-0.intern.sigma-chemnitz.de (mail-mta-0.intern.sigma-chemnitz.de [192.168.12.76]) by mailout-1.intern.sigma-chemnitz.de (8.14.7/8.14.7) with ESMTP id w2RD6vmG008593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 27 Mar 2018 15:06:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigma-chemnitz.de; s=v2012061000; t=1522156017; bh=L6QWh/li3vRDVk+NL9h1mdie3LrQK1xFOC8B+kF1y1s=; h=From:To:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type:Sender; b=nKYEk9HhUjOsen2gOLMu0vjg+BUOv6+RLCMghq+hEoOiW8fp9he6dEDcU9Jd2VkqW cx9Xpw4AwvOxAODfCBDqxZWf87zRC47PXlXhXVCkFxaD9mhcMQhjhe/wG3XNy9S82x CCItdtKeR0LQMtEbUMRkhVM5IX20KgbIzfUNDKi0= Received: from reddoxx.intern.sigma-chemnitz.de (reddoxx.intern.sigma-chemnitz.de [192.168.0.193]) by mail-mta-0.intern.sigma-chemnitz.de (8.14.7/8.14.7) with ESMTP id w2RD6oO9028304 for from enrico.scholz@sigma-chemnitz.de; Tue, 27 Mar 2018 15:06:51 +0200 Received: from mail-msa-0.intern.sigma-chemnitz.de ( [192.168.12.77]) by reddoxx.intern.sigma-chemnitz.de (Reddoxx engine) with SMTP id 18E6D3CC131; Tue, 27 Mar 2018 14:57:20 +0200 Received: from ensc-virt.intern.sigma-chemnitz.de (ensc-virt.intern.sigma-chemnitz.de [192.168.3.24]) by mail-msa-0.intern.sigma-chemnitz.de (8.14.7/8.14.7) with ESMTP id w2RD6fOx028291 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 27 Mar 2018 15:06:41 +0200 Received: from ensc by ensc-virt.intern.sigma-chemnitz.de with local (Exim 4.90_1) (envelope-from ) id 1f0oJE-0001N1-Se; Tue, 27 Mar 2018 15:06:40 +0200 From: Enrico Scholz To: openembedded-core@lists.openembedded.org, Seebs References: <20180324122357.668e6afc@seebsdell> <20180324132246.28c2f8cd@seebsdell> <20180324142427.53da953d@seebsdell> <20180324145044.168f7e3f@seebsdell> <20180326143107.48f153a5@seebsdell> Mail-Followup-To: Enrico Scholz Date: Tue, 27 Mar 2018 15:06:40 +0200 In-Reply-To: (Andre McCurdy's message of "Mon, 26 Mar 2018 13:12:44 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Sender: Enrico Scholz X-DSPAM-Result: Innocent X-DSPAM-Probability: 0 X-DSPAM-Confidence: 0.75 X-Spam-Score: -4.6 X-Spam-Level: ---- X-Spam-Tests: AWL, BAYES_00, DKIM_ADSP_ALL, SPF_NEUTRAL, T_RP_MATCHES_RCVD, DSPAM_INNOCENT X-Scanned-By: MIMEDefang 2.83 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 13:06:59 -0000 Content-Type: text/plain Andre McCurdy writes: >> Since the man page gave the ia64 example, I went and checked, and it >> is indeed the case that calls other than syscall(2) will clobber r10 >> after system calls, I think you are misinterpreting the man-page. In "Architecture calling conventions" it documents the calling convention into the kernel. syscall(2) itself is an ordinary function which has to follow the userspace ABI; after jumping into the kernel and setting 'errno' in error case, it restores registers as needed. Some ABIs allow functions to clobber registers (they are not restored after leaving the function and do not carry a return value); e.g. on ARM, these are r0-r3 and r12. That's probably the case for r10 in ia64 too. Enrico