Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754682AbeAJAjT (ORCPT + 1 other); Tue, 9 Jan 2018 19:39:19 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:53799 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754586AbeAJAjR (ORCPT ); Tue, 9 Jan 2018 19:39:17 -0500 Date: Wed, 10 Jan 2018 01:39:10 +0100 (CET) From: Thomas Gleixner To: Andi Kleen cc: x86@kernel.org, linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, dwmw@amazon.co.uk, pjt@google.com, luto@kernel.org, peterz@infradead.org, thomas.lendacky@amd.com, tim.c.chen@linux.intel.com, gregkh@linux-foundation.org, dave.hansen@intel.com, jikos@kernel.org, Andi Kleen Subject: Re: [PATCH] x86/retpoline: Fix NOSPEC_JMP for tip In-Reply-To: <20180110003139.10531-1-andi@firstfloor.org> Message-ID: References: <20180110003139.10531-1-andi@firstfloor.org> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, 9 Jan 2018, Andi Kleen wrote: > From: Andi Kleen > > With the latest tip x86/pti I get oopses when booting > a 64bit VM in qemu with RETPOLINE/gcc7 and PTI enabled. > > The following patch fixes it for me. Something doesn't > seem to work with ALTERNATIVE_2. It adds only a few bytes > more code, so seems acceptable. Can you please figure out what goes wrong. David has tested this with his compiler and I really don't want to 'fix' this just because some random compiler version fails to build it. Thanks, tglx