From mboxrd@z Thu Jan 1 00:00:00 1970 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,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 108B5C3A5A0 for ; Mon, 20 Apr 2020 12:49:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E281E206E9 for ; Mon, 20 Apr 2020 12:49:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587386952; bh=HFt2cNSRVwRrNyRATsHeOZAVGfis+zFjOerb5zwBaPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=aJ6JeVNDmRxvb/tCRwva40w1pJl2D0EQCQkkslO2fNq2KkBHkAK+fzVpLmBHatm6M 5B0j9cYfp5AAEv6zWraI2Nzysk647myWoczA0KvD9ClMdxWDIhStB5JAPKXpNvbQQY 4QjeTd4NLxZZWG00P+JAD82mo4n+/6cAzirc9WCA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729377AbgDTMtM (ORCPT ); Mon, 20 Apr 2020 08:49:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:46050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729372AbgDTMtK (ORCPT ); Mon, 20 Apr 2020 08:49:10 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 D504C206DD; Mon, 20 Apr 2020 12:49:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1587386950; bh=HFt2cNSRVwRrNyRATsHeOZAVGfis+zFjOerb5zwBaPs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zNL0wIHSlIpKTBqWnTrNC5Bo5hn7Z7tUSbC1UljEeEsS/OHkao9fP1LZsBfW4chPS 6pu5Z5RajBe2Wtv6Y2Giix8brg44zb7fNfnj10b7IGpIxXypEqvknkWG1pYxBnAck3 81FzDdZNqPMi3ZA/xQ7/aGq9/BLzexf6C8Ej8/FU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John Allen , Borislav Petkov Subject: [PATCH 4.19 32/40] x86/microcode/AMD: Increase microcode PATCH_MAX_SIZE Date: Mon, 20 Apr 2020 14:39:42 +0200 Message-Id: <20200420121504.970966773@linuxfoundation.org> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200420121444.178150063@linuxfoundation.org> References: <20200420121444.178150063@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: John Allen commit bdf89df3c54518eed879d8fac7577fcfb220c67e upstream. Future AMD CPUs will have microcode patches that exceed the default 4K patch size. Raise our limit. Signed-off-by: John Allen Signed-off-by: Borislav Petkov Cc: stable@vger.kernel.org # v4.14.. Link: https://lkml.kernel.org/r/20200409152931.GA685273@mojo.amd.com Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/microcode_amd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/include/asm/microcode_amd.h +++ b/arch/x86/include/asm/microcode_amd.h @@ -41,7 +41,7 @@ struct microcode_amd { unsigned int mpb[0]; }; -#define PATCH_MAX_SIZE PAGE_SIZE +#define PATCH_MAX_SIZE (3 * PAGE_SIZE) #ifdef CONFIG_MICROCODE_AMD extern void __init load_ucode_amd_bsp(unsigned int family);