Received: by 10.223.185.116 with SMTP id b49csp1043730wrg; Wed, 14 Feb 2018 10:42:40 -0800 (PST) X-Google-Smtp-Source: AH8x224FM/jv//f7ynOkhdUTbO1z96loss9o7+I/zqgtBgKcBJM+qcjzGNf+X6XwfiGWyCNqObMF X-Received: by 2002:a17:902:be0f:: with SMTP id r15-v6mr81930pls.1.1518633759992; Wed, 14 Feb 2018 10:42:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518633759; cv=none; d=google.com; s=arc-20160816; b=mUjV25m5hSamQxU6G0+0vsjmuJHeKC2pe6Kn0piOphsZAbTXdwMgcu95yCt5NP1MnM zHA+igXJuNFuOeqeV9P0u/pzyGIQ/cX/jWgyqkjv6gUymtgZ1Tl0fnWaLzC7plo/AqW0 e8CwrNuWqsEbBUMImrHwWLz3yx6wl1PW5ZLXUTJR3VTL3aKQEW4A1vhTniSFhT6gyKDj Xieil0dcN0UdDtDyhPMkpD4iTxcJ83oZWLlPrd+goao8vzJ4CQMyWeiAMZHd+O5ZkkAr Bccha8XC7qs31Jrzo1aNiUesthZXOJXxXTDf+jN0HpcDDtQLzj0f2RpbFKC1Q5S64IVH 23Rg== 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=+7HuhZrSKo8lULjNQcD5n2OeyCAAKC0Vxcgyz7auagE=; b=xnBwJBs/UE9rZe84Rw8rYDAlopSFbt8is2mnqr+eIXgkl4jCYpmq18DmvzYk1HUaL2 hN52keRqON46n/ueWQog+wjWCJdQZ46FMr8xFTmUm0l8ZsTBBw1WlX3IZJRW/OgN6tJ0 2xic2hkQ1IRRsYk4uKSci0H90GskRbUARfkf5C8Ew4Bie1KWv4rggcMvhJoJCtm4zWdD Ktixc1nrNmX+/OgTfW32pNO/sHC3fxARzla+1D0BemM+ttb1QVYxgkQliYFMYYHtePZk AVqQtnu2oxCGe92sKvCf08dNeWLvTMO2vnJLXjs5sj1fBdzxmfg5hqHGxDbD1PwU/5hA YYNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=P4V6am3d; 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 g3-v6si1901889pld.270.2018.02.14.10.42.24; Wed, 14 Feb 2018 10:42:39 -0800 (PST) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=P4V6am3d; 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 S1162295AbeBNSlX (ORCPT + 99 others); Wed, 14 Feb 2018 13:41:23 -0500 Received: from merlin.infradead.org ([205.233.59.134]:42878 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1162229AbeBNSlU (ORCPT ); Wed, 14 Feb 2018 13:41:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+7HuhZrSKo8lULjNQcD5n2OeyCAAKC0Vxcgyz7auagE=; b=P4V6am3dW/0UKhNOC6DRcx0Zp Vnd04N9KVufrqlmCkF8zGi1CAAiG4+4xoZ0u7K4josdq2bSgr0QcJe/yGqPBNHmiWjfIYXnPVXDi5 V59PhkuiOBxdrXjvY8LDdi5Hkqgkn9BAJ4ObHrc2HC7rDaO+KUHky3KHCyqLRj5XAvkihxX5oITdl OzFWHSZrQhtB2Qb2dqJv4VLbWvLVScL575pcWLAK4jfWruLkPgovDg53Z4030HdWz20Yrq/Nzfm/5 bwxDwVomTHDCjr4DZDoq3awnN8ab0RSJVdrkpMihwcnGweKexlrG6pxyNE2IZxy9hZKwn+vngTSli cUum1cQqw==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.89 #1 (Red Hat Linux)) id 1em1yH-00058T-5Y; Wed, 14 Feb 2018 18:39:58 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AC952201FB4F4; Wed, 14 Feb 2018 19:39:55 +0100 (CET) Date: Wed, 14 Feb 2018 19:39:55 +0100 From: Peter Zijlstra To: Kees Cook Cc: "Yatsina, Marina" , David Woodhouse , Chandler Carruth , "Kreitzer, David L" , "Grischenko, Andrei L" , "rnk@google.com" , LLVM Developers , "ehsan@mozilla.com" , "Tayree, Coby" , Matthias Braun , Dean Michael Berris , James Y Knight , Guenter Roeck , X86 ML , LKML , Alan Cox , Rik van Riel , Andi Kleen , Josh Poimboeuf , Tom Lendacky , Linus Torvalds , Jiri Kosina , Andy Lutomirski , "Hansen, Dave" , Tim Chen , Greg Kroah-Hartman , Paul Turner , Stephen Hines , Nick Desaulniers Subject: Re: clang asm-goto support (Was Re: [PATCH v2] x86/retpoline: Add clang support) Message-ID: <20180214183955.GS25201@hirez.programming.kicks-ass.net> References: <20180214090851.GU25181@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 On Wed, Feb 14, 2018 at 09:31:22AM -0800, Kees Cook wrote: > On Wed, Feb 14, 2018 at 1:08 AM, Peter Zijlstra wrote: > > If you ever get to the point where it makes sense to build a kernel with > > LLVM [...] > > Just to speak to this point in particular: it makes sense to build > kernels with LLVM right now. It's already happened; millions of Pixel > 2 phones are already running with Clang-built kernels. And even if > you're only interested in x86, that works too. Only if you really don't care about performance. And as should be evident from the rest of this thread, you soon won't be able to build it anymore.