* On the issue of CPU model-specific registers write protection in UEFI secure boot mode
@ 2019-02-07 1:37 Artem S. Tashkinov
2019-02-07 16:24 ` Sean Christopherson
0 siblings, 1 reply; 2+ messages in thread
From: Artem S. Tashkinov @ 2019-02-07 1:37 UTC (permalink / raw)
To: linux-kernel
Hello LKML,
Is there a serious reason why CPU MSR is write protected in UEFI secure
boot mode in Linux?
* In order to even use MSR you have to be root to `modprobe msr`.
* In order to read/write from/to MSR you have to be root as
/dev/cpu/*/msr is accessible only by root.
* CPU registers don't survive reboot/power cycles.
* I'm not a CPU designer but if I'm not mistaken MSR cannot be used to
create any sort of stealth malware.
So, I'm asking this question because these registers allow to fine tune
Intel CPU power parameters ( https://github.com/georgewhewell/undervolt
) like voltage and others and make it possible to run your system both
faster and cooler and right now it's not possible under Linux and
perfectly possible under competing proprietary OSes.
Of course, the user can
* fetch his distro kernel sources
* apply a patch from (
https://github.com/intel/intel-cmt-cat/wiki/UEFI-Secure-Boot-Compatibility )
* install his own UEFI certificate
* compile, sign and install a patched MSR kernel module
However this all has to be done for each new kernel release and many
Linux users just cannot do anything on this list.
Best regards,
Artem
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: On the issue of CPU model-specific registers write protection in UEFI secure boot mode
2019-02-07 1:37 On the issue of CPU model-specific registers write protection in UEFI secure boot mode Artem S. Tashkinov
@ 2019-02-07 16:24 ` Sean Christopherson
0 siblings, 0 replies; 2+ messages in thread
From: Sean Christopherson @ 2019-02-07 16:24 UTC (permalink / raw)
To: Artem S. Tashkinov; +Cc: linux-kernel
On Thu, Feb 07, 2019 at 01:37:16AM +0000, Artem S. Tashkinov wrote:
> Hello LKML,
>
> Is there a serious reason why CPU MSR is write protected in UEFI secure boot
> mode in Linux?
> * In order to even use MSR you have to be root to `modprobe msr`.
> * In order to read/write from/to MSR you have to be root as /dev/cpu/*/msr
> is accessible only by root.
> * CPU registers don't survive reboot/power cycles.
> * I'm not a CPU designer but if I'm not mistaken MSR cannot be used to
> create any sort of stealth malware.
Rewriting SYSENTER MSRs allows arbitrary ring0 code execution. That's
the most obvious example, there are undoubtedly other attacks that can
be concocted by modifying MSRs.
https://lkml.kernel.org/r/20130208191213.GA25081@www.outflux.net
https://lkml.kernel.org/r/149141201983.30815.1240162780237131881.stgit@warthog.procyon.org.uk
> So, I'm asking this question because these registers allow to fine tune
> Intel CPU power parameters ( https://github.com/georgewhewell/undervolt )
> like voltage and others and make it possible to run your system both faster
> and cooler and right now it's not possible under Linux and perfectly
> possible under competing proprietary OSes.
>
> Of course, the user can
>
> * fetch his distro kernel sources
> * apply a patch from (
> https://github.com/intel/intel-cmt-cat/wiki/UEFI-Secure-Boot-Compatibility )
> * install his own UEFI certificate
> * compile, sign and install a patched MSR kernel module
>
> However this all has to be done for each new kernel release and many Linux
> users just cannot do anything on this list.
>
> Best regards,
> Artem
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-07 16:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-07 1:37 On the issue of CPU model-specific registers write protection in UEFI secure boot mode Artem S. Tashkinov
2019-02-07 16:24 ` Sean Christopherson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.