From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932981AbeAJBuT (ORCPT + 1 other); Tue, 9 Jan 2018 20:50:19 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:54050 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932677AbeAJBuS (ORCPT ); Tue, 9 Jan 2018 20:50:18 -0500 Date: Wed, 10 Jan 2018 02:50:12 +0100 (CET) From: Thomas Gleixner To: Andi Kleen cc: Tom Lendacky , Linus Torvalds , the arch/x86 maintainers , Linux Kernel Mailing List , David Woodhouse , Paul Turner , Andrew Lutomirski , Peter Zijlstra , Tim Chen , Greg Kroah-Hartman , Dave Hansen , Jiri Kosina , Andi Kleen Subject: Re: [PATCH] x86/retpoline: Fix NOSPEC_JMP for tip In-Reply-To: <20180110013638.iqafe7nr7tbhwda6@two.firstfloor.org> Message-ID: References: <20180110003139.10531-1-andi@firstfloor.org> <184a65a3-6afe-4c82-7f7d-2c1d4a5198bc@amd.com> <20180110013009.5ysxlkuhczuv7uwg@two.firstfloor.org> <20180110013638.iqafe7nr7tbhwda6@two.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: > > > I think there are areas that rely on X86_FEATURE_RETPOLINE being set > > > even if X86_FEATURE_RETPOLINE_AMD is set. For example, line 261 in > > > arch/x86/entry/entry_32.S is only checking for X86_FEATURE_RETPOLINE. > > > > I audited the difference places. They all seem ok. > > Actually 32bit is not ok. For 32bit we need COMMON. So adding it. Please keep the current X86_FEATURE_RETPOLINE as the common one and add a new X86_FEATURE_RETPOLINE_GENERIC which is selected by the generic/intel side. Little more churn, but clearer. Thanks, tglx