Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp698927ybz; Wed, 15 Apr 2020 17:00:41 -0700 (PDT) X-Google-Smtp-Source: APiQypICEFwA/ToUDcFjzHeAsSEjzE5lj8D5CUst2oJiY9FtFFCBwFXgG6kpdPVc/rkYEVmzZR6V X-Received: by 2002:a50:fa49:: with SMTP id c9mr28514888edq.9.1586995241595; Wed, 15 Apr 2020 17:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586995241; cv=none; d=google.com; s=arc-20160816; b=zSNufYfAREy6CjmoBEiSU+Lx7upv41U3XN2eijfOD9VWWOHlN+6z2wQ21lIteFQrKT Xop0D0yPY63Zglm01IMvqxZYJ1z4YTVsr1pMfuMkYsBq2ySntUZc7E4LOXatZLuD07Iz JqTtlltrwUFtasBiCGsxF/iYGXzP+iaw+0qTxe+OL9/VYf+0UmhfGmH346V/hYyQEmCr rvGKVm9l/qtKxnprbfkk980h8VE9nH85OidMYk1ZY597Sc1YZspg/EN8WWrQUdHUM4NO XMh75hQvOjgZ/JgONeOTeN5GW1zkd1PMRQ5+BjFYpwEsJ6IEFFsVuV43MR1v9/RTvPd3 dR3g== 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=3dQzkeaPEkKtQ4Ca7PxA8kme4uKfFIC0bklnfpyhUkw=; b=PrQxWlgqO60Q7jRMudpa8KVOS6rj2vLi4LYFe6rZorP2CGcMhjXyuTpDFEq4AJxxEe hcFz85i91Rha7lq/mG1qzZcEAGzLPwc7d0kBi6D5704TyS2MReliKSav6cZ972p19qXE 8GVURt6VytXBnGaujqSpyRLWf/RIaUadOgscm3T03DPMtW39FqJ+xCYVya+bRmOCb9OE iXYEsFMYnRTkJO3EHVxvXufkXVWa70T7k4q6z+bse5TXgsU0ywvdSLnr4/9SRwJFl10T iMf1e0CN5+Q7y4ajn6mLmGhwrUwfjoNn+zqCZ9bI5umqIyIXWANP5C/UscUaSLHcsv7N noxQ== 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 dm19si11126350edb.223.2020.04.15.17.00.17; Wed, 15 Apr 2020 17:00:41 -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 S2503329AbgDONAD (ORCPT + 99 others); Wed, 15 Apr 2020 09:00:03 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:41019 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730906AbgDOM60 (ORCPT ); Wed, 15 Apr 2020 08:58:26 -0400 Received: from mail-qt1-f179.google.com ([209.85.160.179]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MLAF0-1jfp1x0mdG-00ID8r for ; Wed, 15 Apr 2020 14:58:23 +0200 Received: by mail-qt1-f179.google.com with SMTP id q17so12770198qtp.4 for ; Wed, 15 Apr 2020 05:58:23 -0700 (PDT) X-Gm-Message-State: AGi0PubKvuDuinOra+hcq4ZBZpO8BH9YHgBWT1p4c1zm+dKOXcPtiJp+ wkhcYA+xpPU8WAjfQ0BOs/46qfM8zpwnOIb725w= X-Received: by 2002:ac8:6757:: with SMTP id n23mr8081126qtp.304.1586955502081; Wed, 15 Apr 2020 05:58:22 -0700 (PDT) MIME-Version: 1.0 References: <20200409232728.231527-1-caij2003@gmail.com> <20200410123301.GX25745@shell.armlinux.org.uk> <202004141258.6D9CB92507@keescook> In-Reply-To: From: Arnd Bergmann Date: Wed, 15 Apr 2020 14:58:05 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: do not assemble iwmmxt.S with LLVM toolchain To: Ard Biesheuvel Cc: Kees Cook , Nick Desaulniers , Kristof Beyls , Stephen Hines , Luis Lozano , Russell King - ARM Linux admin , Jian Cai , Linus Walleij , Peter Smith , Stefan Agner , David Howells , Mauro Carvalho Chehab , Manoj Gupta , Benjamin Gaignard , "Joel Fernandes (Google)" , clang-built-linux , Ilie Halip , Masahiro Yamada , Krzysztof Kozlowski , Bartosz Golaszewski , Sami Tolvanen , "Eric W. Biederman" , "Steven Rostedt (VMware)" , Jian Cai , Doug Anderson , Dan Williams , Linux ARM , Greg Kroah-Hartman , "linux-kernel@vger.kernel.org" , Patrick Bellasi , Masami Hiramatsu , Tejun Heo , Andrew Morton Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:oBq4mQ79ir5f/pWuHXK2ecdTR1b1OYhz1uJFFN9zvrfd5Hp5FVG jDwRgbg/hkcVwtVwXyBmE7OrHj+Fg1rbiWAr+TtH/CL3e+8i1yWgZbdMGGlRf+ZnYB+vCGa a82T09mBdTxxCrJfjEKJDzugoQYaI3lfsje8MVTQfdDJCoiya+quIxner0V01876PJmRdgK FYNBjbj+NxudAXcrqimKg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:xWWKkKdeclk=:KH8P7cbJQBjQh6O/sY01/6 0nspAt2GmnhDkDf9iS7BBnQItlPTJVdIM4+/DZb9Sj5GsG2CiD+Pe6S/LMnxtXGa4/iZyt2Uk cQOgQut3uReG1RTSLixtK9joY9bPYaupZaySTknadX5hjlH1eSp3uwGcX7K9uTuUx9FqLPxr4 /3HmqH9MD2o/vo2C6L15XCSorM1yL8bScWsy63bBhvwJyaOwzWnF3e+AphDWfByvq7BwgIvBY Hnv4C27w4Oh6/mwLd/DLEwLhxHK6IJhIQ0A4CShdjqbAgo+qeRKbaueLtT2vCkpvuAvDu4PpP dymqHXDmqmA82/ihUPbHTpAci04MfXueGO04kH4rw8xsrWXWFTvc8gNaBPqpcA+31n2axKzDD BReBLeIQVASbETLEf8nyBZKkefUWczJLwFq5Y01nh4HHdyBx+VINk2jj9Ia/deJWbRS4KCW3y 9wplW8JRXPWVkt6yNuKDtbyygHmNKVk3iqegMQSSzNjyLL+Xz8TBrBA5L3PweMXSPrtqLlT4J Lu6oK74lILlcS3T2JNf4e4upjJahS7pFP48Mfijanw0OlX4RXoOO1l6NAw+TqvhWaruw4jO8M 61ISXpY0oELc9Q1yX1AjDVXSV+MaX0L43Hbfnr8eu4SEmIdZQyBMRzgSilWrii3FVlC0lVMkj xP2SXyL2Iw7ob6LjHmyAtlmzocnuSR97ptTTQvCXizE1VaRr/5JolLusdZ7/mcrEsSFCoE2xs 6I55OTiX+IK5Ib4SuVWRy9Yd57kJBVqp81/xTowZjRKTyWo5hOzcLrbha8aAXyV+zD1FJtEj2 9MHWGlDpy6vXl4m2ytEJjd4f8GCt1AnVLH4zxR87CHAy7vopcI= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 15, 2020 at 12:32 PM Ard Biesheuvel wrote: > > On Tue, 14 Apr 2020 at 22:53, Kees Cook wrote: > > > > I don't know if this will help, but I feel like folks might be talking > > past each other a little here. I see two primary issues that are > > colliding, and I just want to call them out specifically... > > To reiterate my point: I strongly prefer minor asm surgery over > elaborate Kconfig plumbing if it means we can retain the functionality > even when using LLVM tools. In particular, the use of macros to > implement missing ISA support should be considered before any other > solution, as these are already being used widely across architectures > to fill in such gaps. +1 > > What's a good middle ground here? For VLAs, I ended up getting akpm's > > help by having him add -Wvla to his local builds and send nag emails > > to people when they added VLAs. That's not really a thing here, but it > > seems like there should be a way to avoid losing ground (in this case, > > it's the erosion of attention: repeated known-issue warnings means the > > CI gets ignored for the warnings on newly added issues). It does seem > > to me like adding the negative depends is a reasonable first step: it > > marks what hard things need fixing later without losing coverage for > > things that can be more easily fixed now with available resources. > > > > For the specific iwmmxt.S case, perhaps the solution is the suggested > > changes? I imagine it should be possible to do a binary diff to see zero > > changes before/after. > > This code has been around since 2004. It has never been possible to > assemble it with Clang's assembler. So the only thing this patch gives > you is the ability to switch from a .config where IWMMXT was disabled > by hand to one where it gets disabled automatically by Kconfig. > > So what hard-won ground are we losing here? Did IWMMXT recently get > enabled in a defconfig that you care about? I mainly care about the build testing aspect here, it seems we are getting close to having the clang integrated assembler working with all .S files in the kernel (it used to work for none), and I'd like to do randconfig and allmodconfig tests that include these as well. Disabling the option works for me, but your suggestion with the added macros is clearly better. Arnd