From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754294AbeAJBgl (ORCPT + 1 other); Tue, 9 Jan 2018 20:36:41 -0500 Received: from one.firstfloor.org ([193.170.194.197]:42850 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbeAJBgk (ORCPT ); Tue, 9 Jan 2018 20:36:40 -0500 Date: Tue, 9 Jan 2018 17:36:38 -0800 From: Andi Kleen To: Andi Kleen Cc: Tom Lendacky , Thomas Gleixner , 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 Message-ID: <20180110013638.iqafe7nr7tbhwda6@two.firstfloor.org> References: <20180110003139.10531-1-andi@firstfloor.org> <184a65a3-6afe-4c82-7f7d-2c1d4a5198bc@amd.com> <20180110013009.5ysxlkuhczuv7uwg@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180110013009.5ysxlkuhczuv7uwg@two.firstfloor.org> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > > 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. -Andi