Received: by 10.213.65.68 with SMTP id h4csp426714imn; Tue, 13 Mar 2018 08:42:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELsLpDgR9xXVI7X+ZfEWaRsLvSHAZJs9eGHHxRUj3LYaR5vFvQpO+mVoAyapEBPouTtR2EL2 X-Received: by 10.99.103.195 with SMTP id b186mr853815pgc.446.1520955755715; Tue, 13 Mar 2018 08:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955755; cv=none; d=google.com; s=arc-20160816; b=lXs9PoBcSdLtccwde0wudaeMJE+0kjV4Qa1W4aZNY0JwEZLSaX3zEO67NaNSJhdKGM 2m/QlPyJTIlIFnZpXpAkffOvF4GlfAM3+fM/h7BaqnBEcAmKBvaP0GPQK0O8FdsgboFs 7kysbmoK7sgCyPwj9HUGhgUPgZC9tudoXmOPmGKHWBhH0xTiPrDWO4Hed1ZsCAhhp98v Ujg2TO17Q/atUNQ6+9R/pQz99OzldhsEiia7+VjoSkuCNJLtVPoa2EKZlNakZlsNzROv CE3Exr6dXdUvQpUmdOCnnpQS/REsviE+fncjZ9f27Cxj0nmefF95bwZRmQg28FlZg1/B iUZw== 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=e7bwfUiKF0DPOGXyU18IOhPCXPiamT8MElV8p0LyJf8=; b=PY4zL+bUvw13JQ/MxAaYNvpPucRPzcLpKvfBdDOTVnwv/IhuCjyEB6PV8o42CXGUR/ PIjbIC3H3BGCM3z7tJlKczg6BBYxDm8yX4pdMndpTfbjhUq9rB2y8IFjudHh0NNpiPxg M4TmYnES6OJVr//Hjdm1UWTW2vF0U8lMz33+ShF+Zdybxy2OEQAnotfj4aHxiSIbl4Gx ubZEqCdb9+Hop2ciKuzIWeUPpqRlEl4/JhWhhnb6Pd9UkaywJ3Z4pPaKeKpZO2n47L4J U6WdiikqVZJCRGB2zPCt8R0kfrDwnup1JnIYh3PKKuZC3dkStCvJ8onssptSymbeyZxP Y1qg== 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 v12-v6si312538plo.170.2018.03.13.08.42.19; Tue, 13 Mar 2018 08:42:35 -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 S964793AbeCMPku (ORCPT + 99 others); Tue, 13 Mar 2018 11:40:50 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36118 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934371AbeCMPkp (ORCPT ); Tue, 13 Mar 2018 11:40:45 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D88051134; Tue, 13 Mar 2018 15:40:41 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christian Borntraeger , Dan Williams , Andy Lutomirski , Arjan van de Ven , Borislav Petkov , Dave Hansen , David Woodhouse , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Will Deacon , linux-arch@vger.kernel.org, Ingo Molnar Subject: [PATCH 4.14 116/140] nospec: Include dependency Date: Tue, 13 Mar 2018 16:25:19 +0100 Message-Id: <20180313152505.978882805@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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 eb6174f6d1be16b19cfa43dac296bfed003ce1a6 upstream. The nospec.h header expects the per-architecture header file to optionally define array_index_mask_nospec(). Include that dependency to prevent inadvertent fallback to the default array_index_mask_nospec() implementation. The default implementation may not provide a full mitigation on architectures that perform data value speculation. Reported-by: Christian Borntraeger Signed-off-by: Dan Williams Cc: Andy Lutomirski Cc: Arjan van de Ven Cc: Borislav Petkov Cc: Dave Hansen Cc: David Woodhouse Cc: Greg Kroah-Hartman Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Will Deacon Cc: linux-arch@vger.kernel.org Link: http://lkml.kernel.org/r/151881605404.17395.1341935530792574707.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- include/linux/nospec.h | 1 + 1 file changed, 1 insertion(+) --- a/include/linux/nospec.h +++ b/include/linux/nospec.h @@ -5,6 +5,7 @@ #ifndef _LINUX_NOSPEC_H #define _LINUX_NOSPEC_H +#include /** * array_index_mask_nospec() - generate a ~0 mask when index < size, 0 otherwise