Received: by 10.213.65.68 with SMTP id h4csp463265imn; Tue, 13 Mar 2018 09:51:48 -0700 (PDT) X-Google-Smtp-Source: AG47ELu1RPGARJwSECGEwl2CSd+ihPRlpULlVq5HqRBcMhrOp2uCr9wI8k2Femav5uDTaz/7/4CO X-Received: by 10.101.102.79 with SMTP id z15mr1001334pgv.181.1520959908483; Tue, 13 Mar 2018 09:51:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520959908; cv=none; d=google.com; s=arc-20160816; b=zqz40kf7NTTREcoEDW0aIKVxBeLjC3G9LHQJU5zVI/AHJ8qfrMddsHs0Jgu+p5Q8jT SGOURBhjtKIRCqWTpvtnTHQMDvukaOeIHOUNImbnq3YwsL2x8PyKRNkjencPrJejz93m nLVO42VfdFoc6WcTN7fg+FydMu8NWhcEwso7UIe2qaKIleZCEgjlmp/+ekPkAXVXNFWh XEYlzB3ZN0JcW+2ZwueMqEZXbtCAh8l7ahYR52FQoG1VS25y32OGsIXMgDvghzJLVtqg 2vq5oJp2Dh2K8tSjNh7LkoYI/Tj/y5RVVMLIwTNBy0ho+3SqDdFj7a9zDTQ/8JZW/Scn dlWg== 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=Yv7ufM4ugw4KWdYmYza5M6i/yfBOsbuQYvRwujwMKVc=; b=ds62EdgdNlcccHp1qrcxUd+Ku7dHPYpQI76QmU/jfEiDriXmM3nECFn5Xr8yXAxNKa eIbPmEf3Q63RJXzgssakIR1a9AHy7t7n4yL3Y7pGU3pg6o8liM2z2+1NpDrd+oGarBtn 8rVozkpZuH8gS75HI7lcS5uaWCOPHEtmOwBm0gdMK1whDtmWjIQhwzrIfVqfd7BBR1j7 5GA0YLq7Aog9HbitqGv0gIMLqoqqYKChoRPPzpeU9iofNV4sc4u5j0J5wf2HopaFNCdm pLEjBl6QBjz4l2PgWsGFo28RR+8Q5M4syyBSqklkmtMrOE1Dasaeh0QgD1gflViRhT6h nh9Q== 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 e127si276855pgc.170.2018.03.13.09.51.34; Tue, 13 Mar 2018 09:51:48 -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 S933306AbeCMQuL (ORCPT + 99 others); Tue, 13 Mar 2018 12:50:11 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59174 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752738AbeCMPbS (ORCPT ); Tue, 13 Mar 2018 11:31:18 -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 7D57C1113; Tue, 13 Mar 2018 15:31:16 +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.15 081/146] nospec: Include dependency Date: Tue, 13 Mar 2018 16:24:08 +0100 Message-Id: <20180313152327.044053693@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152320.439085687@linuxfoundation.org> References: <20180313152320.439085687@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 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