Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1881269ybt; Mon, 15 Jun 2020 11:50:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0GqySkIGYtgDwSZhvX0m54o767TQtvgWaPVJI8akVrkek5GFpuPRwPTschDTeHtT803fW X-Received: by 2002:a17:906:365a:: with SMTP id r26mr26404209ejb.466.1592247012115; Mon, 15 Jun 2020 11:50:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592247012; cv=none; d=google.com; s=arc-20160816; b=HM5dbXRqUZwnVDAMrkJ1njnxCy6/gQLIuM8K1vG2NYt3wRWc1MbMpmQxyVRtKNdjRK fgDHvc7ccTf4ujfYqF0h9adq2RRlAiSzkhM3S9LmQFh6yinbKEOA+7CxO5W72UPSVfcO gwsjPZdb7KWABXUoAu46C1+zb28qyGIt7ReMokVlld4hlLawkcgpSp7VLFqiAuMwkecR LY2ZuPjwANEXt3rbzdQG3zCn3+uwkAeSGkl9JA/MfpJLCOp2q6kxMJOaKX/8LfcUqMNn H6ZRCtHyZ7ekUGzxgmWvl1/BmcQ49Tg5Jo5jwzAi1jF1c3252vtf7YrOjUMkp0UdT8K8 1Nag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=3VFvivAsVHR0Z7enG/pMpoKPox6gVgQbYWllEt5pYkw=; b=roQ2r6GiszWcM9qlAf9eZnRw3YWyMozPgPhjUT055UKMsh2r88UCq6LgJ7Ae2wtNFK ERie20jGpi806pPWsujfx++06rUxkK2xF2opJk5as4tCESKDvfsKmQqPYU/DM9Vtzdmk PQi7+lgLzbZATZxVybnEJHsZCk55h//u4v2OgeCajHHOuAjvqdy5wfN5mKZVFgyH8YR2 mmvWawjHSPEKhI02XIkWseNmlM+PxwwmFwEFj1j+aFBQbBDvrmUskvXdBlebMgyJm+vp hMG08kqDQKgU0AMEXwpijiAAl5yLwnIhq7709DmJMD+UGiJamcBPvFel+9Pl7TAitIbM 5snA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u18si9043993edy.272.2020.06.15.11.49.49; Mon, 15 Jun 2020 11:50:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731388AbgFOSrY (ORCPT + 99 others); Mon, 15 Jun 2020 14:47:24 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:56425 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729124AbgFOSrW (ORCPT ); Mon, 15 Jun 2020 14:47:22 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPSA (Nemesis) id 1M7sM0-1jolkg0Aj4-0050Na; Mon, 15 Jun 2020 20:47:20 +0200 Received: by mail-qk1-f181.google.com with SMTP id q8so16734336qkm.12; Mon, 15 Jun 2020 11:47:19 -0700 (PDT) X-Gm-Message-State: AOAM532Zh62jZF7IScwZrGQWmsKpDNcfc9mr6ToDm3Xp/YevH8LsXbpk TVopIoc7hWFDjm75Zu5ryClsRarU2rvwEYpEgvo= X-Received: by 2002:ae9:c10d:: with SMTP id z13mr15874842qki.3.1592246838316; Mon, 15 Jun 2020 11:47:18 -0700 (PDT) MIME-Version: 1.0 References: <20200615130032.931285-1-hch@lst.de> <20200615130032.931285-3-hch@lst.de> <20200615141239.GA12951@lst.de> In-Reply-To: From: Arnd Bergmann Date: Mon, 15 Jun 2020 20:47:02 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/6] exec: simplify the compat syscall handling To: Brian Gerst Cc: Christoph Hellwig , Al Viro , Luis Chamberlain , Linux ARM , "the arch/x86 maintainers" , "open list:BROADCOM NVRAM DRIVER" , Parisc List , linuxppc-dev , linux-s390 , sparclinux , Linux FS-devel Mailing List , linux-arch , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:5GjnYx0J87C77bLS6hMICrpv7SsJrmsJfyFkoZ/+LoKPVJfqpC4 /AfZewhVis2YEpTJGiS6awXwvUfSN/3ej6d0BBm+Ts0UEPmvLjn5NbLiCLaAmpa1xxZc0vk gkrEPFCdlc6zQ2yi98hk0uCeSs8N88VAjJOfwnv1w8buTd3DApJh7sd3kb8kLOZb6d+0xGR y95oybICxuNU1Eu+9tA1w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:O00rYkEmzd4=:n94Ow7JDI1CgjsWhSySVId MFeIzFQ0ReIOQKC+1DIax5tWGzqGJPz1R27aM0+nQzOMAWlOh+BJkrLWFh+X4QAJ+rm77DwVy JCfBdMOZSV9mgrZq8ZvilMbNU9Ocyk9T0McCpKp7HRW1Dy7UGlIputexAoM9/EL4BAEB4kkuP pgrswxarTjgYKFeZXxGOH0HL9KJ158tVHglV4I5zFB/zllXofs5iMexfLb+EAgopQkCYY0kpS QXuYZmv0Qt1+kSbk+WK+5qfvvaJBa91JgxAPRUZ+adF8JFSQDlNm12cF+x1s8nKJYVPdk/+Uz e/8dDZ76C8ZTbbnyPC6KYaS2AEqJwyOZSFpt65Yj36I4tkitdbzQL3zuDZIh9UC8IswDNXlgn zwN11R6M7r6yMTJ++E0Y2Q85IN45qly+xWSeZ+Fgq2RUk0Wj4wF5UsHNgj7KtvV6KEy8gNDdA DuEaCrtiKM5BKY0GvHH5V65kuBqZ9VjxayvpibwVcQH2BRM6v+sH529ezlxRCvIcfRl9d30GN lus0EjHqd9f/adxr6q7fC7HNz7m+8EgDQH6OvXyZKoqv8tl1l1ic2UK0slQgEVeLxwZIjGHWq k6Y8kgNMaPbpQNgDzAr9k89BvfqQjHmqYuWSYIrU5QKTCMunaQ0hYPSLSL7gWV0xRpgw4FIs3 MqwTHBmEdOuqVhjT7LZ2ksIwa0oFpIC8hcwWfTNeHSymsfs/ReN4fjU/L4TWGTj+ZcYCGgMuI zN3ivEq9V0UggtSP9EmDhxrpt4/6chz1kSPmour+ky9RwMTXPfFhXKNFAlHTN0bO5I7/ERIVp fBvbtu09WOLhNcG9dF+7v9uEtIqN1I8iMyQnVaFEhddMShJTNo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 15, 2020 at 4:48 PM Brian Gerst wrote: > On Mon, Jun 15, 2020 at 10:13 AM Christoph Hellwig wrote: > > On Mon, Jun 15, 2020 at 03:31:35PM +0200, Arnd Bergmann wrote: > > > > I'd rather keep it in common code as that allows all the low-level > > exec stuff to be marked static, and avoid us growing new pointless > > compat variants through copy and paste. > > smart compiler to d > > > > > I don't really understand > > > the comment, why can't this just use this? > > > > That errors out with: > > > > ld: arch/x86/entry/syscall_x32.o:(.rodata+0x1040): undefined reference to > > `__x32_sys_execve' > > ld: arch/x86/entry/syscall_x32.o:(.rodata+0x1108): undefined reference to > > `__x32_sys_execveat' > > make: *** [Makefile:1139: vmlinux] Error 1 > > I think I have a fix for this, by modifying the syscall wrappers to > add an alias for the __x32 variant to the native __x64_sys_foo(). > I'll get back to you with a patch. Do we actually need the __x32 prefix any more, or could we just change all x32 specific calls to use __x64_compat_sys_foo()? Arnd