|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v4 2/2] x86/xpti: Don't leak TSS-adjacent percpu data via Meltdown
On 09.08.2019 16:59, Andrew Cooper wrote: On 09/08/2019 13:32, Jan Beulich wrote:Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- TBD: Especially with how the previous patch now works I'm unconvinced of the utility of the linker script alignment check. It in particular doesn't check the property we're after in this patch, i.e. the fact that there's nothing else in the same page.It should now probably be a BUILD_BUG_ON() checking sizeof(tss_page) being exactly a page, given that there is also a compile time alignment assertion. Will do. NB: Sadly get_per_cpu_var() can't also be used on the "left" side of a #define.I don't understand what you are trying to imply with this. It would be nice to be able to say #define get_per_cpu_var(init_tss) get_per_cpu_var(init_tss_page.tss) That said, ...--- a/xen/include/asm-x86/processor.h +++ b/xen/include/asm-x86/processor.h @@ -411,7 +411,7 @@ static always_inline void __mwait(unsign #define IOBMP_BYTES 8192 #define IOBMP_INVALID_OFFSET 0x8000-struct __packed __cacheline_aligned tss_struct { I have no problem at all dropping the init_ here. It's not clear to me though whether you saying "I'm not happy with introducing this diversion" implies anything further that you'd want or even expect me to change. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |