Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932140AbeAHJwL (ORCPT + 1 other); Mon, 8 Jan 2018 04:52:11 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:39929 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932077AbeAHJwI (ORCPT ); Mon, 8 Jan 2018 04:52:08 -0500 Date: Mon, 8 Jan 2018 10:51:54 +0100 From: Peter Zijlstra To: Alexei Starovoitov Cc: Dan Williams , Linus Torvalds , Willy Tarreau , Alan Cox , Linux Kernel Mailing List , linux-arch@vger.kernel.org, Andi Kleen , Arnd Bergmann , Greg Kroah-Hartman , Network Development , Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner Subject: Re: [PATCH 06/18] x86, barrier: stop speculation for failed access_ok Message-ID: <20180108095154.GD3040@hirez.programming.kicks-ass.net> References: <20180106195551.3207f75d@alans-desktop> <20180106200912.zhzdt4qmfrojeeqe@ast-mbp> <20180106202213.23e553fb@alans-desktop> <20180106211729.cp5oet3at3hyce4o@ast-mbp> <20180106230507.3547c9a0@alans-desktop> <20180107033812.awq3vz4gdkps7tix@ast-mbp> <20180107063356.GA9425@1wt.eu> <20180108022409.q2riz6wzbcm3dkx6@ast-mbp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180108022409.q2riz6wzbcm3dkx6@ast-mbp> 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 Sun, Jan 07, 2018 at 06:24:11PM -0800, Alexei Starovoitov wrote: > How about: > CONFIG_SPECTRE1_WORKAROUND_INDEX_MASK > CONFIG_SPECTRE1_WORKAROUND_LOAD_FENCE INSTRUCTION_FENCE if anything. LFENCE for Intel (and now also for AMD as per 0592b0bce169) is a misnomer, IFENCE would be a better name for it.