Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755400AbeAHSVp (ORCPT + 1 other); Mon, 8 Jan 2018 13:21:45 -0500 Received: from mail-wr0-f193.google.com ([209.85.128.193]:43428 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754862AbeAHSVm (ORCPT ); Mon, 8 Jan 2018 13:21:42 -0500 X-Google-Smtp-Source: ACJfBos+x3x4q28uu5UY36sBuEOEw7KsyDuMphjz8TLcYSZtFjcqbntBK1Pi4zZxjBjCuPgbOLfatQ== Date: Mon, 8 Jan 2018 19:21:38 +0100 From: Ingo Molnar To: Peter Zijlstra Cc: Alexei Starovoitov , 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: <20180108182138.kzdwkdwmhc3564s2@gmail.com> References: <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> <20180108095154.GD3040@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180108095154.GD3040@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: * Peter Zijlstra wrote: > 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. Btw., we should probably propagate that naming to most places and only point it out in comments/documentation that Intel/AMD calls this CPU functionality 'LFENCE' for historic reasons and that the opcode got stolen for the Spectre fixes. Thanks, Ingo