From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ingo Molnar Subject: Re: [PATCH 06/18] x86, barrier: stop speculation for failed access_ok Date: Mon, 8 Jan 2018 19:21:38 +0100 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 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 To: Peter Zijlstra Return-path: Content-Disposition: inline In-Reply-To: <20180108095154.GD3040@hirez.programming.kicks-ass.net> Sender: linux-arch-owner@vger.kernel.org List-Id: netdev.vger.kernel.org * 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