Received: by 10.223.185.116 with SMTP id b49csp714569wrg; Wed, 21 Feb 2018 05:51:30 -0800 (PST) X-Google-Smtp-Source: AH8x226AQC2t6tjzu/jzUqSj6ZZD1Pk1ArWNMmRobWHnzEwWR7sQMYF9N4wQINTcI5PyMVbmrDFg X-Received: by 10.99.1.206 with SMTP id 197mr2782966pgb.179.1519221090070; Wed, 21 Feb 2018 05:51:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519221090; cv=none; d=google.com; s=arc-20160816; b=xw8BRP3NS4wMUpEoxeK1GIafphVRFMICm/+aiDiGGyJ0TTZhRxqKklzwqmXVtZQw4x Mrd19jMTYSl1E4UrWQoD5r+TXxjDym1gObrgQsS3Oz2xc6b2To+oBW3X8icwrE5l/X/2 kNjJZota9JBwDS+wm5Dg5rfdGoHEl3c4TUMCeiFHCygJ5NrCO2r6zUEjVxC6dwoCgYYV syk49yzq59IlW73N2YC3YaoAUaItA6vHwdDPYsWO25j9w2UYD9XOUa0SS6++yH/YVbCF +DWyHRLWfQUh4+5P7yN68pxSabFviFeLL3YkcfkszmiSerQGas6yvei1PkrIcOgUoP5Z jrdw== 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=951wmQsPQs+Lo5B81AhD7SVLsKdnTcf6FXgQgxdomDc=; b=Y2OuWvW/XSmrW8b94Y9qK5UjiT8vf0Tma9bR9cPV7jaZfHur+Xz+ijVBa3vj32WdIV 4Qhkv4QKIe/9NCwiOm3P5MnwpBGnwnpF3r3Cob2i03OypgGGGqMLjjWbxRf3oS4MjUI1 nEGll5P03euRxEUpmWH3jzpsj51hKaE5pQ+3cTGmMrgOtsv7HaL1pOYsXBpZhZw8BLjS lWGJnkaq8Ly0wAcOowi5eRK7VUk2/xUHYkUUe9E7jEipSFglBQKNr1OHP3G9P9yHwsKu VKRGnz2uYgy61Ji4jwnRhtVwRBgak1sHvmw4jZbCU5Pmkuz+4uGACL+ezBuPkED+mxue UiHQ== 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 l6-v6si1562229pls.65.2018.02.21.05.51.14; Wed, 21 Feb 2018 05:51:30 -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 S936958AbeBUNge (ORCPT + 99 others); Wed, 21 Feb 2018 08:36:34 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42766 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753621AbeBUNJK (ORCPT ); Wed, 21 Feb 2018 08:09:10 -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 3377D11DA; Wed, 21 Feb 2018 13:09:09 +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.15 079/163] x86/speculation: Fix up array_index_nospec_mask() asm constraint Date: Wed, 21 Feb 2018 13:48:28 +0100 Message-Id: <20180221124534.809121884@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@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.15-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 @@ -40,7 +40,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; }