Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1739942ybt; Mon, 15 Jun 2020 08:13:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaaWqXbybZrMchdY37LbpmCyqCLNvh725Tc87IuJEwPdpjQMruMA/dywB7RogOyIi35j4s X-Received: by 2002:a50:9517:: with SMTP id u23mr23638640eda.332.1592234022267; Mon, 15 Jun 2020 08:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592234022; cv=none; d=google.com; s=arc-20160816; b=ZaYQZFqPuttcZ4A+bbnpFbOjjGBe6JItO1A3QrimRm81EExKj55D2MeRWLSPFnPDmq i7KVAUJ9KfCaoQTkLRMHykmjvqx03Vn6+us0NQN8zDNa22RHpXtF8QYVU4L00LOASHHN IWHc8AERwjGd6SBuVk7zI/V0rtdC3f7a/Gy1xPoNC4qKQYNLpi0mv9kJj7dM8A1XoT7c Rc4Twv4YkuqhK9rDVVAr7K91GYrQ98BvcmGHF/ZngPR8vnHF4xwDppGvix8IM75JUEHz 3UhjZvdsO0SwK1zCUEGlCjaCIXBFH9JPFP6WXwcXGr0ZSDQVVglKuWRS+NGEhxOg8ZIR 16cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=mezkA12UHmPDhIY/P2Jpwigwn4h4djtmjHCR3+ptrrg=; b=K1+qtmisY/L8zp0nPvqsfgjNVDQprstgsmXiA6fJGmToHaxgpKBk2aVC1o1PDOOpNF AcP77NRop2mmp6NiX5VIyfdcEtLZEvgEQwY2aliKCL64bhexYrdSLee9yT6Mc9k9kZ7U OoLVAk+Ypj8y9GxWXWOSn/wCXibAikyaGc71SUGm8GTllVYSDS8mvUq96qvXtfi6ojZx UktofzJe+4YJgOyYk2xFa2OEqQaqdmsxQU05R68shdmUI33aTOdtwbwtB0bHnx8goXhK eap6V7b9G8E4sjqNEfyE2FMh/TxKOILWeRHIzvFD2yfBXUrHqNI5BSoDknILl6I2VJ6v M04g== 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 a15si8789184edy.318.2020.06.15.08.13.19; Mon, 15 Jun 2020 08:13:42 -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 S1730963AbgFOPJc (ORCPT + 99 others); Mon, 15 Jun 2020 11:09:32 -0400 Received: from verein.lst.de ([213.95.11.211]:33935 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729875AbgFOPJa (ORCPT ); Mon, 15 Jun 2020 11:09:30 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E658068B05; Mon, 15 Jun 2020 17:09:26 +0200 (CEST) Date: Mon, 15 Jun 2020 17:09:26 +0200 From: Christoph Hellwig To: Arnd Bergmann 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" Subject: Re: [PATCH 2/6] exec: simplify the compat syscall handling Message-ID: <20200615150926.GA17108@lst.de> References: <20200615130032.931285-1-hch@lst.de> <20200615130032.931285-3-hch@lst.de> <20200615141239.GA12951@lst.de> <20200615144310.GA15101@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) 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 04:46:15PM +0200, Arnd Bergmann wrote: > How about this one: > > diff --git a/arch/x86/entry/syscall_x32.c b/arch/x86/entry/syscall_x32.c > index 3d8d70d3896c..0ce15807cf54 100644 > --- a/arch/x86/entry/syscall_x32.c > +++ b/arch/x86/entry/syscall_x32.c > @@ -16,6 +16,9 @@ > #undef __SYSCALL_X32 > #undef __SYSCALL_COMMON > > +#define __x32_sys_execve __x64_sys_execve > +#define __x32_sys_execveat __x64_sys_execveat > + arch/x86/entry/syscall_x32.c:19:26: error: ‘__x64_sys_execve’ undeclared here (not in a function); did you mean ‘__x32_sys_execve’? 19 | #define __x32_sys_execve __x64_sys_execve | ^~~~~~~~~~~~~~~~ arch/x86/entry/syscall_x32.c:22:39: note: in expansion of macro ‘__x32_sys_execve’ 22 | #define __SYSCALL_X32(nr, sym) [nr] = __x32_##sym, | ^~~~~~ ./arch/x86/include/generated/asm/syscalls_64.h:344:1: note: in expansion of macro ‘__SYSCALL_X32’ 344 | __SYSCALL_X32(520, sys_execve) | ^~~~~~~~~~~~~ arch/x86/entry/syscall_x32.c:20:28: error: ‘__x64_sys_execveat’ undeclared here (not in a function); did you mean ‘__x32_sys_execveat’? 20 | #define __x32_sys_execveat __x64_sys_execveat | ^~~~~~~~~~~~~~~~~~ arch/x86/entry/syscall_x32.c:22:39: note: in expansion of macro ‘__x32_sys_execveat’ 22 | #define __SYSCALL_X32(nr, sym) [nr] = __x32_##sym, | ^~~~~~ ./arch/x86/include/generated/asm/syscalls_64.h:369:1: note: in expansion of macro ‘__SYSCALL_X32’ 369 | __SYSCALL_X32(545, sys_execveat) | ^~~~~~~~~~~~~ make[2]: *** [scripts/Makefile.build:281: arch/x86/entry/syscall_x32.o] Error 1 make[1]: *** [scripts/Makefile.build:497: arch/x86/entry] Error 2 make[1]: *** Waiting for unfinished jobs.... kernel/exit.o: warning: objtool: __x64_sys_exit_group()+0x14: unreachable instruction make: *** [Makefile:1764: arch/x86] Error 2 make: *** Waiting for unfinished jobs....