lkml.org 
[lkml]   [2015]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] x86, msr: Allow read access to /dev/cpu/X/msr
    On Sun, 28 Jun 2015, Prarit Bhargava wrote:
    > Is it easier to blacklist MSRs we don't want generally exposed, or only expose
    > the ones that we think are safe? That's sort of a devil's advocate sort of
    > question ;) and I'm wondering what the shorter list is.

    The only way to make MSR access safe is to allow it only by whitelisting.
    The x86 platform restricts all MSR access to ring 0 for a damn good reason.

    Also, such a whitelist would most likely need to be vendor and model-aware,
    and to differentiate "allow reads" from "allow writes"...

    --
    "One disk to rule them all, One disk to find them. One disk to bring
    them all and in the darkness grind them. In the Land of Redmond
    where the shadows lie." -- The Silicon Valley Tarot
    Henrique Holschuh


    \
     
     \ /
      Last update: 2015-06-28 17:41    [W:3.548 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site