Received: by 10.213.65.68 with SMTP id h4csp523855imn; Wed, 4 Apr 2018 02:39:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/TN4YCc+wWMMOEUutXKHMW+F4FKMt6R3zabriPwxDXv1YtYJsLeo0yFo10g+Oe0DcL/DYq X-Received: by 10.98.118.130 with SMTP id r124mr13178184pfc.238.1522834793004; Wed, 04 Apr 2018 02:39:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522834792; cv=none; d=google.com; s=arc-20160816; b=nC4WUXVPeeMxHoGpkYQF5RXn028LNDRZrt17leuxO+8fi9ue8dRyKsv3eIZF8Afsjx j3zzgyALfluzeSnC5HbCsc7zLjawJt9nEgfHCQgVrT8kJZhbIHrfpNDdSXzgFEN17goy ak0eIPc5PvZBe9c1eHtmiDde3y40o0Rnc+6tpzYkf6GcuNNtHeTrqBXDM6m4lOnzCl9G dGUu2YJ69m5k0rm1jPQ3j0XFGJK4g1/ZtBpOsVq4r2CmQWwCT7w5PaqMIQZ5JA2Xdo58 gWboYA63L6YZ0qjcIeTf4rHlrfaAmQzyrcL+kaoAW7zNNfEYs+QDr4Vo8gv+lgy/mXpB PrYg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=imV/hnhLYR+hFY8i1MVEnftud5zDh67BNDMLZmF5ozA=; b=h4SsVqakVE73txeNiAUpwT1h7lfmdvfqYpSLaoHFRpOHPGmuFeRbD4hndxnS77w+Fm r8ndtr4frT1qppLCkw5gnHO/e7A9jiM+mqWLX4Vp7zv1PWxwkKJF8Hi+0nAlwKbPjBMc Mx6Tegbp8yVP4lzW8ph5lrdnYxMIJeujovUtr9mNAO8r3XPvoPFNX1hGd0gWR2xFn+18 izuGZ8C9mJNOOB7SW999BDnGgbK2vAwfBh8L7ggleMZPVHvVI3FV8MPU9TaB/CfJ49vr nscmxuWPEQdaGNstPbxO5JZKTky6p9ycyZvqQEtnaCKU/KqIhkuxN1auf5eAAi/vPAQm OV0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si3763299pfk.228.2018.04.04.02.39.38; Wed, 04 Apr 2018 02:39:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751281AbeDDJiZ (ORCPT + 99 others); Wed, 4 Apr 2018 05:38:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57352 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbeDDJiY (ORCPT ); Wed, 4 Apr 2018 05:38:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 00D5B8E3; Wed, 4 Apr 2018 09:38:23 +0000 (UTC) Date: Wed, 4 Apr 2018 11:38:23 +0200 From: Greg KH To: Nick Desaulniers Cc: Matthias Kaehlcke , Ingo Molnar , Peter Zijlstra , Linus Torvalds , LKML , Thomas Gleixner , Andrew Morton , James Y Knight , Chandler Carruth , Stephen Hines , Kees Cook , groeck@chromium.org, Greg Hackmann Subject: Re: [GIT PULL] x86/build changes for v4.17 Message-ID: <20180404093823.GC25996@kroah.com> References: <20180402095033.nfzcrmxvpm46dhbl@gmail.com> <20180403085904.GY4082@hirez.programming.kicks-ass.net> <20180403095118.rpf7tj577dppvx7d@gmail.com> <20180403180658.GE87376@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 03, 2018 at 09:58:03PM +0000, Nick Desaulniers wrote: > Speaking more with our internal LLVM teams, there ARE a few different > approaches to implementing asm-goto in LLVM proposed, by external parties > to Google. These proposals haven't progressed to code review, so we've > asked our LLVM teams to reignite these discussions with increased priority, > if not implement the feature outright. We (Google kernel AND llvm hackers) > are committed to supporting the Linux kernel being built with Clang. > > I can see both sides where eventually a long-requested feature-request > should come to a head, especially with good evidence ( > https://lkml.org/lkml/2018/2/14/895), but just as you wouldn't accept a > patch that doesn't compile with GCC, I'd like to request that we don't > merge patches that fail to compile with Clang (or at least start to think > what that might look like). I realize that would increase the burden on > patch authors and maintainers, so I'm interested in better approaches or > ideas. > > I've been in contact with the 0-day bot maintainers, kernel-ci maintainers, > and even run my own run down version of 0-day bot on my workstation > hourly. I think those will help reduce the burden of testing patches with > multiple different compilers. There are known-bugs with building a kernel with clang right now (I pointed one out a few days ago about NULL checks being deleted from the clang output for no good reason, which really is scary for obvious reasons). So while it is great that small subsets of the kernel can work properly (or hopefully properly), with clang, it still isn't ready to be considered a "fully supported and we can't change the kernel if we break using it" option, sorry. And don't tie _anything_ to a LTS kernel, that's exactly what those kernels are NOT for. You implement features and things in the kernel when they are ready, and I'll pick a random LTS kernel out of the air when I feel like it. Never should the two intersect and matter. So please, work on fixing up clang for asm-goto and other "features" that the kernel requires, and maybe when all build options/configs are really solid and working well, will we be able to properly consider it as a reason to implement, or not implement, something in the kernel source. thanks, greg k-h