From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Hansen Subject: Re: [RFC 09/10] x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation Date: Sat, 27 Jan 2018 07:55:10 -0800 Message-ID: <536542f0-99eb-742b-9d17-5b06e89ee383@intel.com> References: <7c0b0879-3448-43e4-8380-4708fc787113@default> <50c5d627-8975-184b-b50f-4cc02c5816c5@intel.com> <1516957886.30244.161.camel@infradead.org> <20180126175901.GL26209@tassilo.jf.intel.com> <20180126190257.GS14668@char.us.oracle.com> <0089A7AA75120F4087B2E7CB6BF3E53442A9AA0A@CRSMSX104.amr.corp.intel.com> <20180127134239.GA25029@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Konrad Rzeszutek Wilk , Andi Kleen , Linus Torvalds , David Woodhouse , Liran Alon , Laura Abbott , Andrew Lutomirski , Janakarajan Natarajan , Borislav Petkov , "Mallick, Asit K" , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , KarimAllah Ahmed , Peter Anvin , "Nakajima, Jun" , Ingo Molnar , the arch/x86 maintainers , "Raj, Ashok" , "Van De Ven, Arjan" , Tim Chen Return-path: In-Reply-To: <20180127134239.GA25029@localhost.localdomain> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 01/27/2018 05:42 AM, Konrad Rzeszutek Wilk wrote: > On Fri, Jan 26, 2018 at 07:11:47PM +0000, Hansen, Dave wrote: >> The need for RSB stuffing in all the various scenarios and what the heck it actually mitigates is freakishly complicated. I've tried to write it all down in one place: https://goo.gl/pXbvBE > Thank you for sharing that. > > One question on the third from the top (' RSB Stuff (16) After > irq/nmi/#PF/...'). > > It says that :"Return from interrupt path (more than 16 deep) can empty > RSB". > > Just to clarify - you mean all the returns ('ret') that are happening after > we call do_IRQ and the stack unwinds - but before we do an 'iret' correct? Correct. The RSB is not used or updated by iret.