Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5762847imm; Mon, 23 Jul 2018 05:46:30 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc8Ii9YQ0Zeo+wlpBH2OU+WVFhWHozinTNe8zvCy7FXaGAyA9XLMRscaaCy3veBx0RAm/so X-Received: by 2002:a63:e001:: with SMTP id e1-v6mr12106943pgh.380.1532349990408; Mon, 23 Jul 2018 05:46:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532349990; cv=none; d=google.com; s=arc-20160816; b=GGtuyrG43dXHseywyWED2ViFD2+L8Msxf3EBVR1VkPqJvY7qoJDq9T4fkuJ07puaJr ZPKyGrqg6tV9JvkzKdR+dZTJSHn1sX1/VDCVg7AZdsfrNd1ZCFOIulU7AC8fLXt0SDrC LzYzOARHZVf67uJe4d0hJqyNuGHKJ50JhEa6l9YY4bLiwER07sThLQ5d8ZRZ44avL2w9 dEsiUzcBcAwxHr1zAOLG1CzZxqwVCQSjbkyDA/iew0k2R2xGBia4Hra8SCr0R/A/GHbK pRewheAJadTJftUPHrOzq/CIr7lJG0I7pyfszLrhGKA1zJ3GjB0g7mvUrDMMWJHOvfDV J/vA== 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=aThg/Y3UTleR8YMQFZGmcIwMsrUqSzp4cHnpzPfxDRg=; b=XB162a/OiLmu3xqR4+jzWprx8bDTxsRyb7iZ3u5/dFG/XLjn7G5NnxbJr/+XVocpC9 iSa0uvy8Gdtke7DO6pPiJHfKEwBzjSm8mr9dxClcWrAcqYdNlgkkAk0CB56lBJVi+kNA 31e1vzVC4u35lKt6IUGf25c353tOOKQNV3HUVJ//juk4wZWOhxy5F4rpuXTHe74MBEdZ dfW89/DugKF2te26cuNPxL3l6j7AZ8Xiu0BTUf3bgoPGBWfqBaprx9nEf6qh1tdXeiK5 SHBjf64HktC7uGdnjkbJ1RYWrxLhGFxiWDNYKQN/gDBeRXyMwVXVNzm8VxBMOJg08n1t m/5A== 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 d1-v6si8113692pld.515.2018.07.23.05.46.15; Mon, 23 Jul 2018 05:46:30 -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; 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 S2388339AbeGWNpC (ORCPT + 99 others); Mon, 23 Jul 2018 09:45:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48952 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388005AbeGWNpC (ORCPT ); Mon, 23 Jul 2018 09:45:02 -0400 Received: from localhost (LFbn-1-12238-233.w90-92.abo.wanadoo.fr [90.92.53.233]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E411940B; Mon, 23 Jul 2018 12:43:57 +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 , "Srivatsa S. Bhat" , "Matt Helsley (VMware)" , Alexey Makhalov , Bo Gan Subject: [PATCH 4.4 034/107] x86/speculation: Fix up array_index_nospec_mask() asm constraint Date: Mon, 23 Jul 2018 14:41:28 +0200 Message-Id: <20180723122414.566458755@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180723122413.003644357@linuxfoundation.org> References: <20180723122413.003644357@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.4-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 Signed-off-by: Srivatsa S. Bhat Reviewed-by: Matt Helsley (VMware) Reviewed-by: Alexey Makhalov Reviewed-by: Bo Gan 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 volatile ("cmp %1,%2; sbb %0,%0;" :"=r" (mask) - :"r"(size),"r" (index) + :"g"(size),"r" (index) :"cc"); return mask; }