Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3336357imu; Sun, 11 Nov 2018 12:39:27 -0800 (PST) X-Google-Smtp-Source: AJdET5eW/dGauJ4kaAjZeRBfO332X+8HKlI5XzumJAFxCDmlFCuZIPYYTzOf6PU2/dZ/cjiyC5WM X-Received: by 2002:a17:902:b598:: with SMTP id a24-v6mr17357723pls.231.1541968767594; Sun, 11 Nov 2018 12:39:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541968767; cv=none; d=google.com; s=arc-20160816; b=a1OaBAdpbdFQlHgwaQgBgjACvAah95JKkHiTqztYgeF6452kBeTuS2SDYM/9r4CWlf 2anBDke/qGMw0KpkGnKGUUC2Q+k5+xo1VyOKt87ZbMlb6cjOb31V5gISHvQNz1OL/YNr 12H/onWM/ZF1OV0BgPaB2EDu9JbERkPWIp2Dtfijz0jRKHG8W5gHEvJORyj+bLZpPO/V UKqa6dJuKGqPQxMXtD74m4k0e7x9PrVT87qYm9x/tv1P2suNjFw6uL5OQnKYHZ3bxVav tuKvAieZBUM/n1VH6drvucs7ftuW5I1F21UnYC5iQ80OvhoshJzoJGb8fZzxpxAxfNWj 9SZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=VEa2sw6arVC25zrHVMoijLNvGtCAa+T+rNAD9V5Kuck=; b=hf5icXKOfk6n+XWhg5HhgVtaogFUk9wnF3Nl0wvYBo4Z+b2DF7ImEuenZfc8kDHGrM 4+ZKFVhf4eoaDy5RlHtKQWGklMOGsrqWEFk/rvk136hLgwRNXIv1reqp6FiSe356Z4EX xu6X59PbOs+4aGe/Nao7rDT9gadwBGf0sfhcFo72Ee+cGxDyVSpzEKlIwEvklRDo89zI bE/CQwjOwP0YeYMaQFPPoBbK9Vq4T4pZMSwW16uiaQgT/DITbdwJz8AjxvmAyLvPeldD LuGGRcRz8XUIKHh+fmPd/PSw/CLg1oow07ElKghZJ0ArXeFpdrORcrsgbqlFe8NQIP4t YyfA== 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 r4si14552452pgi.387.2018.11.11.12.39.12; Sun, 11 Nov 2018 12:39:27 -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 S1730039AbeKLFsJ (ORCPT + 99 others); Mon, 12 Nov 2018 00:48:09 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:49534 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729979AbeKLFsH (ORCPT ); Mon, 12 Nov 2018 00:48:07 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvsT-0000oP-Dt; Sun, 11 Nov 2018 19:58:37 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsS-0001aK-Uk; Sun, 11 Nov 2018 19:58:36 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Peter Zijlstra" , "Andy Lutomirski" , "Linus Torvalds" , "Ingo Molnar" , "Dan Williams" , "Thomas Gleixner" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 159/366] x86/speculation: Fix up array_index_nospec_mask() asm constraint In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 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: Ben Hutchings --- 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; }