Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754544AbeAOIqi (ORCPT + 1 other); Mon, 15 Jan 2018 03:46:38 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:55467 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549AbeAOIqg (ORCPT ); Mon, 15 Jan 2018 03:46:36 -0500 Date: Mon, 15 Jan 2018 09:46:11 +0100 From: Peter Zijlstra To: Dan Williams Cc: Linux Kernel Mailing List , linux-arch@vger.kernel.org, kernel-hardening@lists.openwall.com, Catalin Marinas , X86 ML , Will Deacon , Alexei Starovoitov , Russell King , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , Linus Torvalds , Andrew Morton , Alan Cox Subject: Re: [PATCH v2 06/19] asm-generic/barrier: mask speculative execution flows Message-ID: <20180115084611.GK6176@hirez.programming.kicks-ass.net> References: <151571798296.27429.7166552848688034184.stgit@dwillia2-desk3.amr.corp.intel.com> <151571801681.27429.15417813964230837664.stgit@dwillia2-desk3.amr.corp.intel.com> <20180112091246.GP32035@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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, Jan 12, 2018 at 04:41:37PM -0800, Dan Williams wrote: > This certainly needs a Kconfig "depends on JUMP_LABEL" to turn on the > dynamic switching at all, and a HAVE_JUMP_LABEL compile time failure > if the compiler lacks support. We're ready to drop all compilers that don't support asm-goto on the floor for x86. So don't over engineer it just to avoid that.