Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp602152ybz; Wed, 15 Apr 2020 14:57:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJEa9D29FJuMhOTq38UqeOYQJ49IFecEDS0erR+nPWtJALs/bIqo6SYtK9ZRh6EYhB+Kmcs X-Received: by 2002:a50:9f2a:: with SMTP id b39mr27523792edf.228.1586987838000; Wed, 15 Apr 2020 14:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987837; cv=none; d=google.com; s=arc-20160816; b=x3fY8wmo5moyN8CQSmci4ep0BnA6YAbaDHyKM0qZQnBWGaBIhGKM/PQ0VD4i0lEemL aiRncYmjua+6EMUSzNKySvPadLw7lbSCOQvYgfJPJtoPaN5jZp35CzOJgPw11N5fucZp ieG8bNUELKejaf3bQzc/qayX65F66tuXSG29CXsajaVINKwn8HnBuK8l2Go5T5rhhwcF xzyrkRCBl/hCLHyBvpMmuctHWqmOAXVfyThGItRejhqbcMku/acAyLen3Iltrazxv6eu 0vQNpvtzRjCpJY5yt2gtVkcddJN7GG/97dOeFu8+4qpr8TyRgm2hJ4ARFkhsD7+gwT43 ZMIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=K0jdNDYsyVBKVJ8vrSclC2i6UhecRADdZccibZZW3Fk=; b=dDyqWE0twV+n6fJnMBGZqkQ9qaXbMzEQIPB+mPdq7Uhdcpn8t6R11VRbw6X26BL0rq 5l8luPU0OvaES55LAILntcdKoqYbf/I5cV4xh3xUj45+KIkdorhoKM9VzND3R2e/EhG1 6da9KcMjRRDR6X1JT1jrVKZZEPc8TCCMCwl/MRZpsF6CZZ9ompWS9Caj3T7t1/HulG6e aqOZ9h1Cv3zCLXfZ+JQHU1Z0UpSl8xQvTFrAeevYhM6q+nyjmGDBq2nk8VhAJvAnnWlt lMSH//0ESubNRD3BXbiqX6Gmoa94+6TtBre3B3GTW3kFuERx50zTtVVcUjWUXGJvKe4F ZfDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=CSqlXQVE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ks2si3365589ejb.445.2020.04.15.14.56.54; Wed, 15 Apr 2020 14:57:17 -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; dkim=pass header.i=@chromium.org header.s=google header.b=CSqlXQVE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2633424AbgDNUxr (ORCPT + 99 others); Tue, 14 Apr 2020 16:53:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730661AbgDNUxp (ORCPT ); Tue, 14 Apr 2020 16:53:45 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E68A0C061A0C for ; Tue, 14 Apr 2020 13:53:43 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id b7so5827255pju.0 for ; Tue, 14 Apr 2020 13:53:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=K0jdNDYsyVBKVJ8vrSclC2i6UhecRADdZccibZZW3Fk=; b=CSqlXQVETewXhgi7NEbLvyqtymrdv4KHSnaV7YJrij7Z94Wt9M/LRF+hI64VHazJtJ 1OEaNJd60jfAh5LIyE1CGhu25SP010BksVkq1wrNNHfLFFEZ61/P7rUnVcuhRDEqhcNY df4JRfjYorbuTTNhpo8Q3kiPlE4PL/0KJw86w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=K0jdNDYsyVBKVJ8vrSclC2i6UhecRADdZccibZZW3Fk=; b=S0bzTE8dwsY41MXdR2+1ZxBNpI05qftanSqgVHuRrXVgJkFw5wi0wD2Y0p9TsOBWxK drrz28sRlAw12KnuszVle5ncnIF5Cuc6xwQ0r0l23b1lB8vTDD2KF35SVE/IyL+HLajv 9Z4w47XPutt7kd57ej/h2492ufZflNgSTApeaL66apoqNxvxxwFxlnw49+T3SpHsSYFN q7Yz/45PUfJeYclbgnm3gnKafsHwbbYRU8rXPeIRb1O6FRNWbyQ2/hNY+xKayjCft3Cv 13qjoblq+T8erMq6ZTAXg7Zgc8CORHxT5H+GESJgy5EVIKMpf04SD0S73+79e/081JcD fepg== X-Gm-Message-State: AGi0PuZvApeSoP7e/3CpL51Kkf87If/QDJn9laHvQn0H6Bq7Clbz+tRc wb09gA6PHlhvm1tgLcSV9CI/UQ== X-Received: by 2002:a17:90a:e2c1:: with SMTP id fr1mr2244175pjb.124.1586897623282; Tue, 14 Apr 2020 13:53:43 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id a1sm11810795pfl.188.2020.04.14.13.53.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 13:53:42 -0700 (PDT) Date: Tue, 14 Apr 2020 13:53:41 -0700 From: Kees Cook To: Nick Desaulniers , Ard Biesheuvel Cc: Kristof Beyls , Stephen Hines , Luis Lozano , Russell King - ARM Linux admin , Arnd Bergmann , 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 Subject: Re: [PATCH] ARM: do not assemble iwmmxt.S with LLVM toolchain Message-ID: <202004141258.6D9CB92507@keescook> References: <20200409232728.231527-1-caij2003@gmail.com> <20200410123301.GX25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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... On Tue, Apr 14, 2020 at 1:59 AM Ard Biesheuvel wrote: > On Mon, 13 Apr 2020 at 22:45, Nick Desaulniers wrote: > > 1. continuous integration and randconfigs. We need CI to help us spot > > where things are still broken, and help us from regressing the ground > > we've fought for. We can't expect kernel developers to test with > > LLVM. Currently, we have LLVM builds in numerous kernel continuous First, is this one. To paraphrase, "we don't want to lose hard-won ground." > To be honest with you, I don't actually think iwmmxt is that > important. But I have already demonstrated how we can use a couple of > macros to emit the same instructions without resorting to bare > opcodes, so there is really no need to disable pieces left and right > because the Clang assembler does not support them outright - it just > needs someone to care enough about this, rather than rush through the > list with a tick the box attitude, and rip out the pieces that look a > bit too complicated. The second is this one. To paraphrase, "we can just fix things instead of disabling them." This feels a lot to me like the pain I (and plenty of others) have felt when doing treewide changes (adding full compiler support is kind of a treewide change). The above two points were really strongly felt when we were trying to remove VLAs. In our case, we didn't even have the option to disable stuff, so the pain was even worse: VLAs were being added to the kernel faster than we could remove them. 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. For others, is a negative depends acceptable? Given how responsive Nick, Nathan, and others are, I don't think there is any real risk of a "slippery slope" of things just getting swept under the rug forever. Everyone here wants to see the kernel be awesome. :) -Kees -- Kees Cook