lkml.org 
[lkml]   [2021]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V3 2/2] perf/x86: Reset the dirty counter to prevent the leak for an RDPMC task
From
Date


On 4/13/2021 8:34 PM, Andy Lutomirski wrote:
> On Tue, Apr 13, 2021 at 12:05 PM <kan.liang@linux.intel.com> wrote:
>>
>> From: Kan Liang <kan.liang@linux.intel.com>
>>
>> The counter value of a perf task may leak to another RDPMC task.
>> For example, a perf stat task as below is running on CPU 0.
>>
>> perf stat -e 'branches,cycles' -- taskset -c 0 ./workload
>
> I assume this doesn't fix the leak if the sensitive counter is systemwide?
>

Right.

> Could Intel please add proper security and ideally virtualization for
> this? Ideally RDPMC permission would be a bitmask for all RDPMC-able
> counters, not just a single on/off switch.
>

Yes, we are working on it.

For now, I think this patch is what we can do so far.

Thanks,
Kan

\
 
 \ /
  Last update: 2021-04-14 03:31    [W:0.229 / U:0.920 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site