Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5204617imm; Tue, 18 Sep 2018 06:04:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY6wzBqpF1edK0QJc9w69u9iiXxejlhRnZFfgfyO5265/Wf2raPGg8mvw3pb1jwlGzC/pvT X-Received: by 2002:a17:902:8506:: with SMTP id bj6-v6mr29077439plb.210.1537275892614; Tue, 18 Sep 2018 06:04:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537275892; cv=none; d=google.com; s=arc-20160816; b=ouGpdqiYqeupAIHZzoBFZFsAUOIg2q7Cip9DkoUcGMUFAouAnnNp4eb/+zy+Pq2pnN 6fjoX3wVkV4JBfgSc37yOP9fmr0c+Qu9w9uZyLc8V7zCHwx8a/4zMvGWrkCawk5aqWOs yHro/fUcAouKKfCL072TaHktCwSpBsRqtI4A1jwPIbfj9n16Xbn8fT0iTzZpyMhvUyZ/ JkPyke7amWt7BFvL9dpgWBAXC/+m/oB8Nv+38/i/knZ5nldGSfP75Eds9xmnlHSJ3j8C jb+n2YHeog737f+9+iZ3LEbelguW1RfaQ/GKDqDkOLwtubZMAvYlMPa/U883wn+/4TH2 iBow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bXESdo+U0yN1p4Mnr66KvDvCAQhfwgkW1pRFsysOWIc=; b=h5HYYeI2WiocDUz6h9R3Su/JE91yOJgok5WYHk16zUh4cRknhETz83vngvbkusriRS 4FvY9lMhRR3/BhHnGpnUvrthce34FkkuWX3V3VE60uHJCfWxHc+P9zw1eryfxUylOZcx q2Rr8BYvHQeJBN6WFt/IaqJMIXpJK9es/UAvS7POsQmLVsOoJyPvlJwST1XF+DF7RTz7 RDOZYAU8IUJHYDvcQqAdFwiueWrOyAhCkal/ebTvwgCAe47LBAHm4v9bEai2y/ZKQIHZ gi/ds54pt1fndJAJupIBEySOcybY5o7KfmUqS2nFTerIY24PbPwzvAN1Dmdh/4+dhwI9 BdRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=MCXBtDfd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1-v6si17902299pgj.522.2018.09.18.06.04.12; Tue, 18 Sep 2018 06:04:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=MCXBtDfd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729720AbeIRSgA (ORCPT + 99 others); Tue, 18 Sep 2018 14:36:00 -0400 Received: from merlin.infradead.org ([205.233.59.134]:52934 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbeIRSgA (ORCPT ); Tue, 18 Sep 2018 14:36:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=bXESdo+U0yN1p4Mnr66KvDvCAQhfwgkW1pRFsysOWIc=; b=MCXBtDfdPvQQcEHuYTGjq9gm8 CpAvqOIKxW4VF80TRtlkLsFMJ1bDTJVG7cVRCntGVLZRJEKbWEMvrPH2xXahSmui8cIYkiL72sKci G9qw3+wTMZsJom2KKb4451NvMcg5yA+zK9xBiw9O7Jcz8WfKcgl6ufSP9FFURYEVh8M1HDKLQ1t/A o3xOsuVzYP8yZz/XhbPf8iOV8T4aZv7OZ1gx8sVunHMitpO+ZHJEEbzPsnpABm178f7MO3NmqDzql BI+2gP5LVx59x4BmlQ26K8qwxAO/emP5dqXO8w4U0N2ZfHvNRNLJ9FwNKV/1prqnhmrFkQt9BQWrd YiDPIc4WA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2Few-0002kz-M9; Tue, 18 Sep 2018 13:03:19 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 7B90E202C1A09; Tue, 18 Sep 2018 15:03:16 +0200 (CEST) Date: Tue, 18 Sep 2018 15:03:16 +0200 From: Peter Zijlstra To: Zhenzhong Duan Cc: linux-kernel@vger.kernel.org, mingo@redhat.com, konrad.wilk@oracle.com, x86@kernel.org, dwmw@amazon.co.uk, tglx@linutronix.de, Srinivas REDDY Eeda , bp@suse.de, hpa@zytor.com, dhaval.giani@oracle.com Subject: Re: [PATCH] x86/speculation: Use AMD specific retpoline for inline asm on AMD Message-ID: <20180918130316.GP24142@hirez.programming.kicks-ass.net> References: <87411705-893f-46d3-b899-b09ed9fa8d1b@default> <20180918095015.GE19234@hirez.programming.kicks-ass.net> <3fcc1453-1618-9a79-71c9-5eede0023775@oracle.com> <20180918105939.GK24106@hirez.programming.kicks-ass.net> <1c6ca05f-094e-03e9-b21a-866aaf80cebb@oracle.com> <20180918130058.GM24106@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180918130058.GM24106@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > In original code, it will go to "call *%[thunk_target]\n" while > > we have set SPECTRE_V2_RETPOLINE_MINIMAL or > > SPECTRE_V2_RETPOLINE_MINIMAL_AMD. Is this expected? > > Yes, that is exactly right -- it does that with or without your change > though. Soryr, I wrote that before I noticed the CONFIG_RETPOLINE vs RETPOLINE thing. In any case, since retpoline capable compilers are widely available, I'm all for making CONFIG_RETPOLINE hard depend on it. That minimal stuff really is quite silly.