From patchwork Thu Feb 13 15:21:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 231520 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70CE4C2BA83 for ; Thu, 13 Feb 2020 15:39:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3F0672073C for ; Thu, 13 Feb 2020 15:39:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581608343; bh=2hDNtUMZ3bVVDkYuSsiXRwcAD0Gcxj1di8cHa1rNswk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=eXwCIqQs3a99HbJZQt9UJygzvv3SVktJM/fmXEUhuHII/xWB+RDaRSTzx9+5jwyQx TWxyO8vxW2e+L+D2zU2ImDrHoe77oWOiEH47x0IETt1lrKCDyyDBiH8e94t43RyjQS qfAU5ZRCcnuXuuEUJVlQd9NjtE/Q9qpvjaFqzFJ0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727998AbgBMPjB (ORCPT ); Thu, 13 Feb 2020 10:39:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:59042 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728863AbgBMP3I (ORCPT ); Thu, 13 Feb 2020 10:29:08 -0500 Received: from localhost (unknown [104.132.1.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DEAD2206DB; Thu, 13 Feb 2020 15:29:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581607748; bh=2hDNtUMZ3bVVDkYuSsiXRwcAD0Gcxj1di8cHa1rNswk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TmLbIqqF9NcrHBXAYN//ORoFdxR+yYxbn9ZmfZMREtzq8LkWHhsSDq1AwkNYCjN7g hV3lxLDsYZ5eUYEfRHE3jfE7T9l3p4mu5Be66eATpCnY71PJJacfcNBpp7zrJ4Jh8e XpYqS6dP9E7R788cnm19ARNrbCajwnGrIpzg0kVs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Borislav Petkov , "Peter Zijlstra (Intel)" , Andy Lutomirski , x86@kernel.org, Linus Torvalds , Andrew Morton , Dave Hansen Subject: [PATCH 5.5 106/120] x86/alternatives: add missing insn.h include Date: Thu, 13 Feb 2020 07:21:42 -0800 Message-Id: <20200213151936.373535433@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200213151901.039700531@linuxfoundation.org> References: <20200213151901.039700531@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Dave Hansen commit 3a1255396b5aba40299d5dd5bde67b160a44117f upstream. From: Dave Hansen While testing my MPX removal series, Borislav noted compilation failure with an allnoconfig build. Turned out to be a missing include of insn.h in alternative.c. With MPX, it got it implicitly from: asm/mmu_context.h -> asm/mpx.h -> asm/insn.h Fixes: c3d6324f841b ("x86/alternatives: Teach text_poke_bp() to emulate instructions") Reported-by: Borislav Petkov Cc: Peter Zijlstra (Intel) Cc: Andy Lutomirski Cc: x86@kernel.org Cc: Linus Torvalds Cc: Andrew Morton Signed-off-by: Dave Hansen Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/alternative.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/kernel/alternative.c +++ b/arch/x86/kernel/alternative.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include