Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964860AbbLGXRE (ORCPT ); Mon, 7 Dec 2015 18:17:04 -0500 Received: from mout.kundenserver.de ([217.72.192.73]:55921 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932589AbbLGXRA (ORCPT ); Mon, 7 Dec 2015 18:17:00 -0500 From: Arnd Bergmann To: Andy Lutomirski Cc: Linus Torvalds , X86 ML , "linux-kernel@vger.kernel.org" , linux-arch Subject: Re: [PSEUDOPATCH] rename is_compat_task Date: Tue, 08 Dec 2015 00:16:51 +0100 Message-ID: <11525805.FykVOSlruZ@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:rXPvhrSYNCHhhRCqjHmmD14ZplejsmyZFHBX8eyuoM7MdRz/wBL MqSeVEcVTGTAkuVSK9k4Lm3nqD9YOk3KKywcbtBmSHDxUVPI0xSwwFNFAwmKD92OI74DMpg DsaS+tBA66q05FC4Cpp1zLWIYELLvf+OWJVk0WxBW6fYBJeGwx833ecasp1WLL7yjJ2vz4U IV+hwZ6xKSUyGE1zzWRKQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:kdYqxPc46LE=:FBTQHfeLP1k42gAfGubEpk +ychVeXrBWv05QkI3KrXstckyGJZRMWYPOZc49f8rX2FrrTzQNa+01LTgT2F+DEM9F2N2wrEU ckIsYIJbJ/J+7G4eFMXDIvZsNSIwWxW6Z15UClPPTMNs7unAuR4zk+j2OYbA6fgukMpUlYAr8 /yuqE3A8OVWvr0/l+FPpEwiPn3FdEwCJpbc9rsDvRAXpJFtRJAPqoBfCm51Xxhpsyxgw6SOIe sQixSom8nqT/U9Wia162e7eNmA/8BzX4mKa7qS+xCL6DhZfPPyi/x0J1VK8fxBdZmkYHjaCBr a94A25oSJSWdJ5+hIKB8WeELmtHhpqaNRgoD5pRLpzz3rMU/wCp+yBkxfoQ5Y68NyVU5IoXqF YDVb3goL61mntmNxraSQQ29Yd9di6qjiY5Q0tSsmVJ31UaegrRIbR2/q+V+3iZw61+monWUCy S4Wp7U6IhWCHO8BYQI/GGu1kxNc2QwFWZMkMI07XpFS86yBkJ7bW+W9dyn0uJBm2pGLVLMDog nAsk02b3q1LWh2F2iMAefw96RY5vrHyJ3xO3C7qnf6EL9LLnQsGTqHeb60QF+7cumsIivfnUa Yyra+H5iC5Wir2zg6svDASWew0ig3e1UBYoDi7bajV2w+cwJ5BLKdvbitFrlYLt8hLyd4DFZO uoHankdZ8TDlhZOT1AhlJoIWPXc592/sdkCy3GDPTQ6FCwHvUVtjglONOE7J3McdkBpqftdzU LsZFJiTzoblc7iYB Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 30 On Monday 07 December 2015 15:12:59 Andy Lutomirski wrote: > Hi all- > > Every time I look at is_compat_task, I cringe. That function > determines whether we're in a compat syscall, not whether we're in a > compat task. There are probably architectures (arm64?) under which > these are the same conditions, but they are definitely *not* the same > thing on x86. > > Can we just fix it? I propose the following patch: > > $ find -type f |xargs sed -i -e 's/is_compat_task/in_compat_syscall/g' > > If there's general agreement, can we do that at the end of the next > merge window? > > I could also send a patch series to add in_compat_syscall, change all > the users, then delete the old stuff, but that seems overcomplicated > for something that's literally just renaming a token. As far as I know, x86 is the special case here, on all other architectures, this actually checks the task, and it's impossible to call a system call of the other kind. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/