Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813AbbGAUOo (ORCPT ); Wed, 1 Jul 2015 16:14:44 -0400 Received: from mail.skyhub.de ([78.46.96.112]:41472 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753027AbbGAUOj (ORCPT ); Wed, 1 Jul 2015 16:14:39 -0400 From: Borislav Petkov To: LKML Cc: Aravind Gopalakrishnan , X86 ML Subject: [PATCH 0/2] x86/microcode/amd: Do not overwrite specific patch levels Date: Wed, 1 Jul 2015 22:14:14 +0200 Message-Id: <1435781656-1890-1-git-send-email-bp@alien8.de> X-Mailer: git-send-email 2.3.5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 965 Lines: 26 From: Borislav Petkov Certain patch levels supplied by the BIOS should not be upgraded and overwritten by the microcode loader because doing so leaves the system dead in the water. The two below provide for filtering out those levels and avoiding the update, thereby making those patch levels final. Borislav Petkov (2): x86/microcode/amd: Extract current patch level read to a function x86/microcode/amd: Do not overwrite final patch levels arch/x86/include/asm/microcode_amd.h | 1 + arch/x86/kernel/cpu/microcode/amd.c | 52 +++++++++++++++++++++++++++++-- arch/x86/kernel/cpu/microcode/amd_early.c | 24 ++++++++------ 3 files changed, 65 insertions(+), 12 deletions(-) -- 2.3.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/