Received: by 10.223.185.116 with SMTP id b49csp736082wrg; Wed, 21 Feb 2018 06:09:38 -0800 (PST) X-Google-Smtp-Source: AH8x22550AixBtAFUGVxrg6Jp52CjW8Diwv46ua8Jy9r4SZWWs94AOIbL40KDZeqpc/fedhIA/XY X-Received: by 10.98.211.198 with SMTP id z67mr3545798pfk.0.1519222178488; Wed, 21 Feb 2018 06:09:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519222178; cv=none; d=google.com; s=arc-20160816; b=QkvSwh+sesUCoAf7iI6UhdqaRqRGdbnARVb4ohqzpCqqkqofmJfjPHePUq3ubUZqht JkqsYQnuO+Sg1wIIt1arK16Gp90ozdxvu4WXk5OffeSRSRV3EyCLGYtbKvttPk71oqBS mU/4l4cyoFlL4ORX1gurFZM/YZi/ehYnX24yam00kiZ7rpZHNcXMLNh45mTr2qV1+bCH zDT7OpAb9qFIzFMrXSQq54E3ZNHsyaBdXaJSxITVUYCLh54PQhxXfLI74QKvhKGGa8Lr mDrNHHWVokpdxYI1RBEZbs0zk7A3z8E6Xi8YWfNSL8gEJhd5uTJ6PUJlGcDtPdjxlfbG wlQA== 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=YGEV3YExdWA3/eZVdg0Jp67CKVqRGJRWfwBS+U65TFU=; b=C2w5gmd8RHfbMtx2O/qVucKH+qWMbL3q4BFeHKqa9ZTBpUxurca2aimIx17qu69xO0 PVPeDdyLcJtw+AZeZXvp7Mj2Ct8PU/IodpTeOAXgs5gK0YjjoPdvOQVqdHYMzAl8IIqf Vq8dPZvhFPELNkSEtEVPqLGsHs7NkgLMbPWlzAl45qZxO+IypNCsUAu2DuLu1o8h976o 38vcOTUTuZrZvMzUJkVEYUaDyZZR8CBLt42SxWxHTSzzXYUun5YBMaTZ58rGaVlTlTfr MQq3ItTQUKIB12E7nVrbANSlwMYjl1klZ5/YvO/YaEBXxDz3PxkbPevfLGPSQ+VtY63L 0Vuw== 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 x4si1524336pgq.11.2018.02.21.06.09.23; Wed, 21 Feb 2018 06:09:38 -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 S935623AbeBUNCr (ORCPT + 99 others); Wed, 21 Feb 2018 08:02:47 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39226 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933086AbeBUNCp (ORCPT ); Wed, 21 Feb 2018 08:02:45 -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 5A8731096; Wed, 21 Feb 2018 13:02:44 +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.14 076/167] x86/speculation: Fix up array_index_nospec_mask() asm constraint Date: Wed, 21 Feb 2018 13:48:07 +0100 Message-Id: <20180221124528.627101123@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124524.639039577@linuxfoundation.org> References: <20180221124524.639039577@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.14-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; }