From: Borislav Petkov <bp@alien8.de>
To: X86 ML <x86@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>, Borislav Petkov <bp@suse.de>
Subject: [PATCH 0/2] Add a microcode disable chicken bit
Date: Mon, 19 May 2014 20:59:15 +0200 [thread overview]
Message-ID: <1400525957-11525-1-git-send-email-bp@alien8.de> (raw)
From: Borislav Petkov <bp@suse.de>
Hi,
so there are situations where we want to be able to turn off the
microcode loader, especially the early part, to rule out any possible
influence from it accessing ucode blobs early from the initrd and/or
having other effects on the system.
These patches add a "dis_ucode_ldr" (when early loading is not built in,
use with the prefix, i.e. "microcode.dis_ucode_ldr") which enables that.
For that we needed a fairly self-contained cmdline parsing function
which we almost copied from arch/x86/boot/cmdline.c
The dancing in check_loader_disabled_*() variants is needed because on
32-bit we're running before paging is enabled and there we need to deal
with physical addresses.
As always, any comments and suggestions are appreciated.
Thanks.
Borislav Petkov (2):
x86: Carve out cmdline parsing function
x86, microcode: Add a disable chicken bit
arch/x86/include/asm/cmdline.h | 6 +++
arch/x86/include/asm/microcode.h | 1 +
arch/x86/kernel/cpu/microcode/core.c | 6 +++
arch/x86/kernel/cpu/microcode/core_early.c | 37 +++++++++++++
arch/x86/lib/Makefile | 2 +-
arch/x86/lib/cmdline.c | 84 ++++++++++++++++++++++++++++++
6 files changed, 135 insertions(+), 1 deletion(-)
create mode 100644 arch/x86/include/asm/cmdline.h
create mode 100644 arch/x86/lib/cmdline.c
--
1.9.0
next reply other threads:[~2014-05-19 18:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-19 18:59 Borislav Petkov [this message]
2014-05-19 18:59 ` [PATCH 1/2] x86: Carve out cmdline parsing function Borislav Petkov
2014-05-21 3:45 ` [tip:x86/microcode] x86, boot: Carve out early " tip-bot for Borislav Petkov
2014-05-19 18:59 ` [PATCH 2/2] x86, microcode: Add a disable chicken bit Borislav Petkov
2014-05-21 3:45 ` [tip:x86/microcode] " tip-bot for Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400525957-11525-1-git-send-email-bp@alien8.de \
--to=bp@alien8.de \
--cc=bp@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome