Received: by 10.223.185.116 with SMTP id b49csp759053wrg; Wed, 21 Feb 2018 06:31:00 -0800 (PST) X-Google-Smtp-Source: AH8x227Tni9wZ4SqJqAECMzewfmEWrnSZzFUjn8xZteUOOd7vpZx3OK18HjzH+g9UDwu3hGSNNbV X-Received: by 2002:a17:902:6716:: with SMTP id f22-v6mr3366129plk.180.1519223460002; Wed, 21 Feb 2018 06:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519223459; cv=none; d=google.com; s=arc-20160816; b=gU5AuLUoLYsCSDkU0PGZ9PIqfvDNB9iNyOh0jCVQ+O126Lw0kolTPjqGNVzmUScfkH jxwd1WEuF1ftuvsvFAXt4dDet4t0SpEgdA4fTp0o7YhjoyUGUDEJSDxLScApZMEUgMUf ZlbXvb0QppxngPeVGBZwT0+X9kRMwtMwcftYQ5wEgFfbHSy2WwiNidnfh2RofZy/9V6x fqkNdBvRj/HmnJm80A2l7Qiq+nkgSw2hGE2M6YFimH6pyEtUZfHhGXxy20ey8f5FnlJ7 JuGtD9UGDZywcY0Wikizb1ZH3SLfj3y7XspovLlKRz/PjN593h5bv8CPKE3NxKkv/R1L hFNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=yMfs3wFJdW88thQPX3k2Db5eVPwFf2kRekYeqacSDww=; b=AOuWsVunyqhBYV0+tdW4r2FM6vCUwfii7fhrR7rAH2O1r2eUfIiSuDbhDyB3YgYqDI +HhqsvhFMiU3/2/WXTnIehhNbjxaJzGN+fZxaTy9keUBdzlDh4D1E7iIBFlckmdfItSL 7dfImc5vwDO86HKXfcGhIIM55JaomKknNXm3sNikjdxgT6ltUpXjdVmhspvbtwbT/cgy WUFkr7tWzZhy4wEZUuAJtj4mGqfI217/DdMv1HnGv/nZGioRy0shm9ByOUXBU4j4K8EZ z9mPqJU2qkj3kP/dXKzLmGxp68XvnNjPm3QenBLRMtRA0PsUkmXnisHowxdhMlwxiN77 FX7g== ARC-Authentication-Results: i=1; mx.google.com; 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 v27si3546929pfa.387.2018.02.21.06.30.45; Wed, 21 Feb 2018 06:30:59 -0800 (PST) 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; 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 S937519AbeBUO3m (ORCPT + 99 others); Wed, 21 Feb 2018 09:29:42 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35418 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934493AbeBUM4l (ORCPT ); Wed, 21 Feb 2018 07:56:41 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 5FA05DCA; Wed, 21 Feb 2018 12:56:38 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Torvalds , Dan Williams , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar Subject: [PATCH 4.9 60/77] x86/speculation: Fix up array_index_nospec_mask() asm constraint Date: Wed, 21 Feb 2018 13:49:09 +0100 Message-Id: <20180221124434.735031078@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124432.172390020@linuxfoundation.org> References: <20180221124432.172390020@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Williams commit be3233fbfcb8f5acb6e3bcd0895c3ef9e100d470 upstream. Allow the compiler to handle @size as an immediate value or memory directly rather than allocating a register. Reported-by: Linus Torvalds Signed-off-by: Dan Williams Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/151797010204.1289.1510000292250184993.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/barrier.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/include/asm/barrier.h +++ b/arch/x86/include/asm/barrier.h @@ -39,7 +39,7 @@ static inline unsigned long array_index_ asm ("cmp %1,%2; sbb %0,%0;" :"=r" (mask) - :"r"(size),"r" (index) + :"g"(size),"r" (index) :"cc"); return mask; }