Received: by 10.213.65.68 with SMTP id h4csp516730imn; Fri, 16 Mar 2018 10:08:24 -0700 (PDT) X-Google-Smtp-Source: AG47ELv1cBOZ27PsOc4TM5KVwgf4pTgGVy0hESHkbjC3bb8N2YApO753apIbVKm6lHZ/tr2s+N6U X-Received: by 10.98.66.89 with SMTP id p86mr2168923pfa.228.1521220104262; Fri, 16 Mar 2018 10:08:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521220104; cv=none; d=google.com; s=arc-20160816; b=p08nkMOq2GYuowTJYTk5QaP0nx4gPf/fE0O1XLzUrylXOYMMUd/DKL8miuXVe9FXoz Ut7J4HTG7QhnKBIlhnw102Yfzs2hkUAAP7SlEn7RWT2VgUmSUEz9zdg3T126rlVTAkWg ZulVZV2TmPD9WBH1cMdVd1MDKg4rPWoWjwUVLY+Z2H+s1Z0W3BgnaKe+nLzTyTw1Z4uR OXtsIZc3yaXMGprlBAk9cy9PpFiWpMLQPAQyj5vE/EMb2DloTJ2IkkPryZzeDg/i8dzB fDwqvlRWM8MqyQ7J4M8/f9ZlrbIJNkR7XK/EdDJk6EAMoW44EHWDBrXkqWrmO4sv03Y0 fveA== 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=Gytr+Xd5NT33+Ni6t3/IRQ6h6n60GaacKJiswXljZqU=; b=tFOUDf1nmEpWl3L0gfpZvAqqeE3oS9l6eWdyS5i99ssFfttSOMSfVod9K12dfXHLoW cI5AaElm0hNlab/O5dk0TLEwYjr06lGrn+jl8K1MoBLQjD7nKsOXMsYSpoWvlo44wot1 qb1JkuRQ4EQp/mmZX0mjxu9YykKkB9mCMwotpeq2CYtTQFiHO9qc3ALcqy5gBWiK/0VS vh6zMxpWxeEPUfn4brjXXKA61P6z0MnffM1FB51K6HBuNrX2FpxfIaO5QFHe6T0XgSuA P8/hYuvNZsMwJNtbCGGrb8l6LKdPSLCf54qn08n1FlhSxvX7gUyudCHxJfEqCVyr50Jq jT9Q== 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 e28si5201322pgn.464.2018.03.16.10.08.09; Fri, 16 Mar 2018 10:08:24 -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 S933384AbeCPPba (ORCPT + 99 others); Fri, 16 Mar 2018 11:31:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:37490 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933348AbeCPPb0 (ORCPT ); Fri, 16 Mar 2018 11:31:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 039C6114D; Fri, 16 Mar 2018 15:31:25 +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.9 39/86] nospec: Include dependency Date: Fri, 16 Mar 2018 16:23:02 +0100 Message-Id: <20180316152320.039234992@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@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.9-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