Received: by 10.213.65.68 with SMTP id h4csp2972753imn; Mon, 2 Apr 2018 18:27:52 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+0Otb84unh50w+P98VJMJZTCN8wOeSqSXOxFASuVCgBMMT1hJBugUl0IV1c7Ttgs3fgei8 X-Received: by 2002:a17:902:8348:: with SMTP id z8-v6mr11733283pln.311.1522718872056; Mon, 02 Apr 2018 18:27:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522718872; cv=none; d=google.com; s=arc-20160816; b=JPErhinulkKLXWnynzNwsVM8PRwkPnMzX8TwOZzyKrjfrhYA64Y4zB326TDipitjq5 hJnkM+O02UMPh9lNJ0+knwgIw1FQGUk/fbzr+rFmICCfsnTr/mxHBWK2L54pTQFOc2rY dVNhvAmjM1LLkxLVhxagXZI++1QDbYq94tEvXYqBFeysiJmaCZ1xfp2XODhDnYygPuQh etjmthORv/vt+0lJuiN9FmRlDoBg8R86jl+kejrRWMmOaYdBd5U6pJe+dLpsQThe1H1W ar8UxRzerjCCq9Y2FYLkMkSBK4nhAZaZYoztlMjvbGm4Fww1lf0G2QPXaBmO8pj9bMJG ocmQ== 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=n/ltH/G5hb4xq8Fo9Th2PFFSsg6L4+mVy3JKlZb6SHk=; b=zSdmCeVw7m9YpE5n6bnBQbzaOv/nhZoBGUd2uMr1O4uqRsueCTmQk/zr+ZqXckTaQn +Govzk6SiJKD44t3466VJZjVlxBXDGG3Qy9c0kHDVtGL3D46d3PJTS2CEKcGup8PjuDA 9jQtXy5BJwa1d6kaDWBZItEHMW8XB3h03MNOM8Mgp2d8kenXlU5e8SvUW8EgW6OQZBMt IBbRrwe1IJ5edIAmbHuBTfLZXGKuDL/h4xVevJdKtbK+jY49xjN20FdYIJwgTdcMycl1 /8cWdaZpqhU/jfKnPWUTIwVt/CG9Q1zrctcoeZDkGLLcyFzetjjCoNDw5rP8Y3M8D+SN GzqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZBzX0jCA; 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 y5si1181545pfe.184.2018.04.02.18.27.38; Mon, 02 Apr 2018 18:27:51 -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=ZBzX0jCA; 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 S1754738AbeDCB0c (ORCPT + 99 others); Mon, 2 Apr 2018 21:26:32 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:44840 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754675AbeDCB0b (ORCPT ); Mon, 2 Apr 2018 21:26:31 -0400 Received: by mail-pl0-f66.google.com with SMTP id b6-v6so4628249pla.11 for ; Mon, 02 Apr 2018 18:26:30 -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=n/ltH/G5hb4xq8Fo9Th2PFFSsg6L4+mVy3JKlZb6SHk=; b=ZBzX0jCAo5UEY3/b2ZMxZJ9raiB5bKnJ8B8q+NZ20GgGhTg4P3BHO17Bewa6R1ed/d ZScdjQ9bI1X9XsxdvkPgcCsfyWAchukgQb2rE82XQcoSIMG+RqCKPCzQrpoEbTARGWgW Ji20To6koiUisAQBJvjIx1eeK1RCNgo6fC2W0= 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=n/ltH/G5hb4xq8Fo9Th2PFFSsg6L4+mVy3JKlZb6SHk=; b=GjvHD9g8WOTA/bFPu0euOTzkN6tnweZXoDf0PE+yGtwCGyx/w4WUwXWmWWEDWP67bP Y+5i/jWjUtLKTtU2W/ExHbFGTIES5UicCY2jle1ymBs4OC8I/FVgyhGbMBtiUQx7VG4E l8+CB8QMrwDYALLDRmNObIGP2KUw46vWtQH/wHUnlnjb/nv8oTAkm4r/ITAtkhb55qW9 1aNkvHjSMf+fhuNxyO/VjQKkTA+jWbt52FQ3jPXlbx0ji46JUYUeqDOXxv+F2UyMSvdx 0YciP5BInz7hAKNlv3zlf1kdHLF4cNkJRAOQnqDTJ56gIboNhMmYc9uJhb6TjP3CrIbE 7VZQ== X-Gm-Message-State: AElRT7H32WdmYbugnYNiJ8zjBEmsSCa2Do6r23ELXKKS7iUQ/ux+K7nY ocrfDAHL7l9rgKflliZsu8Q+RQ== X-Received: by 10.101.81.204 with SMTP id i12mr4083618pgq.206.1522718790642; Mon, 02 Apr 2018 18:26:30 -0700 (PDT) Received: from localhost ([2620:0:1000:1501:8e2d:4727:1211:622]) by smtp.gmail.com with ESMTPSA id l80sm2836495pfb.38.2018.04.02.18.26.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Apr 2018 18:26:29 -0700 (PDT) Date: Mon, 2 Apr 2018 18:26:29 -0700 From: Matthias Kaehlcke To: Linus Torvalds Cc: Ingo Molnar , Linux Kernel Mailing List , Thomas Gleixner , Peter Zijlstra , Andrew Morton , James Y Knight , Chandler Carruth , Stephen Hines , Nick Desaulniers , Kees Cook , Greg Kroah-Hartman Subject: Re: [GIT PULL] x86/build changes for v4.17 Message-ID: <20180403012629.GD87376@google.com> References: <20180402095033.nfzcrmxvpm46dhbl@gmail.com> <20180402223821.GC87376@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180402223821.GC87376@google.com> 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 Mon, Apr 02, 2018 at 03:38:21PM -0700 Matthias Kaehlcke ha dit: > El Mon, Apr 02, 2018 at 02:44:48PM -0700 Linus Torvalds ha dit: > > > On Mon, Apr 2, 2018 at 2:50 AM, Ingo Molnar wrote: > > > > > > The biggest change is the forcing of asm-goto support on x86, which effectively > > > increases the GCC minimum supported version to gcc-4.5 (on x86). > > > > So my biggest worry isn't gcc-4.5 (anybody who hasn't updated deserves > > to be forced, or can stay with old kernels). > > > > No, my biggest worry is clang. What's the status there? > > I know there is work in progress for asm-goto in clang, but I don't > know the details or an ETA. Some folks in cc might have more > information. Forwarding Chandler Carruth's words: "A number of folks from both Kernel and LLVM communities are looking at how to implement asm-goto in Clang in a way that should both work for the compiler and for the Kernel. So there is progress here, it isn't just everyone sitting around and waiting. Having more time to finish it would be appreciated as it isn't easy to implement." > > I've pulled this, and honestly, the disaster with > > -fmerge-all-constants makes me think that clang isn't that good a > > compiler choice anyway, but it's sad if this undoes a lot of clang > > work just because of the worries about Spectre and mis-speculated > > branches. > > It would indeed be very unfortunate to loose clang support again, now > that it just got added after years of joint efforts from different > people. And this wasn't exclusively kernel work, in my experience over > the past year the LLVM community was very open to adopt/implement > changes needed to build the kernel without ugly hacks. It's still not > a perfect world, but I think LLVM folks deserve some credit. > > Couldn't we just raise the minimum gcc version without enforcing > asm-goto for clang (yet)? This would give almost everybody the desired > extra protection, and give clang some slack to implement asm goto.