Received: by 10.213.65.68 with SMTP id h4csp1084537imn; Wed, 4 Apr 2018 12:18:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx49oSuC62LPnl3L0YtWA4TOFO1Fj/2xAbkDkeDktRR60Mu3BafFYxmL+vuBApQIjIfLcTAF9 X-Received: by 2002:a17:902:322:: with SMTP id 31-v6mr19947856pld.122.1522869532949; Wed, 04 Apr 2018 12:18:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522869532; cv=none; d=google.com; s=arc-20160816; b=iVKU6tB6BDQu4u2VvKU//1hKE6GFVsXvl9uPAY7u7iyEq4KZt9X4FQpxVudC93Rh3W 1qyJm047a70D70aaz4EajMvKk4GKSP7bmuPxn+9A2S7eCivnAZl06rrNebBiyE81v4/q rDgV7BMEx1S1v7OVaoNpjO5nXl4OGJiyPDWUF+9pCxy3rGTAG5ulhA/ZVZSk9C3dkcSR cr2MzDNSt+AkcJ3aIvFiqKgLLWtLRvO4ko6iOLJVskHSf434YYUaa25vh06xJrKsMjao q1qLyD/eGYbXlRoG5wx3QJ9hEDLvLXvo+aCQPgrpUpXyqpe5HZBaQouAIiWcFjW8L2DU LPew== 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:dkim-signature:arc-authentication-results; bh=J1y6lQYMHFu9ziEYinqW4gzYnq1v4oqjCwjwJ+CceRE=; b=snorSHxDIzkm5T1qXYqvg/TlIx8AKaFS04EWTjTQMxP0hNYEsImhcZfu5UwARoz68N HwDt7R8QQfYDoyDcSiGivcDzlmvJA/dWqGQZxeN2qmE/XmF3m9oVCtAeFUWIQxkgNvMA 9296dR1J5ELO3GWfMFfDnc3h7poudzZ80z43eTIwgR70OV7+CGF+Yz0j9NjoH6cQwjf6 qeb3jog23Ebr5OIjGBgVg2VJJyayQ1/HxTpAKF7WhZ5cjfWtuZo5CUSpIzqNPLUAPH8A kdWaY4F4YnGeW7psCf2KxDtiH/6T/0IZcgjvuuG5Ayx4LinFac4Pj1zXlb5bMpXLDBV+ Xcaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VonY1TEE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a8-v6si4238112pln.234.2018.04.04.12.18.39; Wed, 04 Apr 2018 12:18: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; dkim=pass header.i=@chromium.org header.s=google header.b=VonY1TEE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751528AbeDDTR1 (ORCPT + 99 others); Wed, 4 Apr 2018 15:17:27 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:43096 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeDDTR0 (ORCPT ); Wed, 4 Apr 2018 15:17:26 -0400 Received: by mail-pl0-f67.google.com with SMTP id c21-v6so11829285plz.10 for ; Wed, 04 Apr 2018 12:17:26 -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:user-agent; bh=J1y6lQYMHFu9ziEYinqW4gzYnq1v4oqjCwjwJ+CceRE=; b=VonY1TEE+VsyT58P6mot+1hdCe4dmHUOvyL6AGO2kGZjbFuh85A+TR+5DRU5PaiPeT HSKCcEzJ3SwwftQKOLI9qjz9U4Bo15SLayw+BvozlIuwQXAXfEJd/Zk/MesybRQLHUzk K3NpuF4uJFogtVGqxs9VaIEf0PeFcep1rIaQc= 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:user-agent; bh=J1y6lQYMHFu9ziEYinqW4gzYnq1v4oqjCwjwJ+CceRE=; b=LplulxvaB7XBEOwdkz2nG/cRrmkIqH6TniPMOM7bUDAIR9N/ZrK0cr03klbVlisYZh XdhV2fgbk+YBwHYDwmKszJozvJ2GY+ru8+sJKx8Bakps71EpEm/h/vDr/In5Q9m5MnyH CKqMNKdKNkZKqm9RfMpXgOtPWpzcRJ9qgPKuRyssCQDnzij7JVkSIl8n8SEVtiIWUlrA xRdHXzfRILNcm2I5J7A1tF5fPr/5OYWe7YCcnThDWCL44Sj38uGKrhYBBPfTh9T8kLzr UCk1AMGtrxhA266CqcA4GLU0pQr6xvL1Klyq7N35E3PYtoyaAd/lvFn8jb9V0BvmPZZj tnVA== X-Gm-Message-State: AElRT7HBpT56mFWOYuh0ZoKgHDvORWKHEpQ2fUvbpw8UHXr870u8IU/C YScUFbU6n2jcmvNIIQhtHdq5dA== X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr19855057pla.150.1522869445810; Wed, 04 Apr 2018 12:17:25 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id s63sm12725118pfe.6.2018.04.04.12.17.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Apr 2018 12:17:25 -0700 (PDT) Date: Wed, 4 Apr 2018 12:17:24 -0700 From: Matthias Kaehlcke To: Peter Zijlstra Cc: Ingo Molnar , Linus Torvalds , Linux Kernel Mailing List , Thomas Gleixner , Andrew Morton , James Y Knight , Chandler Carruth , Stephen Hines , Nick Desaulniers , Kees Cook , Guenter Roeck , Greg Hackmann , Greg Kroah-Hartman Subject: Re: [GIT PULL] x86/build changes for v4.17 Message-ID: <20180404191724.GF87376@google.com> References: <20180402095033.nfzcrmxvpm46dhbl@gmail.com> <20180403085904.GY4082@hirez.programming.kicks-ass.net> <20180403095118.rpf7tj577dppvx7d@gmail.com> <20180403180658.GE87376@google.com> <20180404093007.GI4082@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180404093007.GI4082@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org El Wed, Apr 04, 2018 at 11:30:07AM +0200 Peter Zijlstra ha dit: > On Tue, Apr 03, 2018 at 11:06:58AM -0700, Matthias Kaehlcke wrote: > > > Yes, Chrome OS R67 (currently dev, soon beta) will ship a kernel built > > with Clang for multiple x86 Chromebooks. > > But there are still _known_ miscompilations.... Our compiler team is looking into this (missing option -fno-delete-null-pointer-checks) So far we didn't encounter any actual issues clearly linked to this, neither during internal testing nor from devices in the field (some arm64 devices use a kernel built with clang since R63, some x86 devices shipped with a clang built kernel with R63 and R64). Obviously there might be latent issues and we are working on fixing the underlying problem. > > Given that it takes time for distributions to roll out new compiler > > versions I would like to ask for a longer period of 'exemption' from > > asm-goto for Clang, at least if it isn't an actual burden for the > > kernel, like preventing important features from being added. An ideal > > time would be after the next-next LTS version, if this is considered > > too far out, after the next LTS version would be the second best time > > IMO. Let me be clear, this is *not* to delay the implementation of > > asm-goto, but to facilitate the use of Clang-built kernels by other > > projects and distributions, as well as automated builds of upstream > > kernels with Clang, without requiring necessarily the very latest > > version of Clang or extra patches. > > I don't think that's sane or realistic, given that the very latest clang > is _known_ to miscompile the kernel. How can you want to support older > compilers that are therefore also known to not work correctly. > > Next LTS is still a fair way out, if we take LTS release to be > every ~5 releases, the next one would be ~.19, that's still 3 releases > hence. That's a _long_ time. > > I don't see the point in waiting that long for a compiler that doesn't > work even without asm-goto. Even with clang having known issues it would be preferable not to break kernel builds with clang, if this doesn't place a signifcant burden on the kernel. I'm not sure it is strictly necessary to 'wait' for clang to enforce asm-goto for gcc (and thus the vast majority of builds), which is the primary goal of your patch. Couldn't we just exclude clang for now from raising the error when lack of asm-goto support is detected?