Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-04 Thread Alexey Budankov
Hi, On 03.10.2018 20:01, Jann Horn wrote: > On Mon, Oct 1, 2018 at 10:53 PM Alexey Budankov > wrote: >> 3. Every time an event for ${PMU} is created over perf_event_open(): >>a) the calling thread's euid is checked to belong to ${PMU}_users group >> and if it does then the event's fd

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-04 Thread Alexey Budankov
Hi, On 03.10.2018 20:01, Jann Horn wrote: > On Mon, Oct 1, 2018 at 10:53 PM Alexey Budankov > wrote: >> 3. Every time an event for ${PMU} is created over perf_event_open(): >>a) the calling thread's euid is checked to belong to ${PMU}_users group >> and if it does then the event's fd

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-03 Thread Jann Horn
On Mon, Oct 1, 2018 at 10:53 PM Alexey Budankov wrote: > On 01.10.2018 19:11, Thomas Gleixner wrote: > > Peter and I discussed that and we came up with the idea that the file > > descriptor is not even required, i.e. you could make it backward > > compatible. > > > > perf_event_open() knows which

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-03 Thread Jann Horn
On Mon, Oct 1, 2018 at 10:53 PM Alexey Budankov wrote: > On 01.10.2018 19:11, Thomas Gleixner wrote: > > Peter and I discussed that and we came up with the idea that the file > > descriptor is not even required, i.e. you could make it backward > > compatible. > > > > perf_event_open() knows which

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-02 Thread Alexey Budankov
Hello, On 02.10.2018 9:40, Thomas Gleixner wrote: > > Not only the user group, it really should do the full security checks which > are done on open(). I expect it is already implemented by some internal kernel API so that it could be reused. > >>b) then traditional checks against

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-02 Thread Alexey Budankov
Hello, On 02.10.2018 9:40, Thomas Gleixner wrote: > > Not only the user group, it really should do the full security checks which > are done on open(). I expect it is already implemented by some internal kernel API so that it could be reused. > >>b) then traditional checks against

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-02 Thread Thomas Gleixner
Alexey, On Mon, 1 Oct 2018, Alexey Budankov wrote: > > perf_event_open() knows which PMU is associated with the event the caller > > tries to open. So perf_event_open() can try to access/open the special per > > PMU file on behalf of the caller. That should get the same security > > treatment

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-02 Thread Thomas Gleixner
Alexey, On Mon, 1 Oct 2018, Alexey Budankov wrote: > > perf_event_open() knows which PMU is associated with the event the caller > > tries to open. So perf_event_open() can try to access/open the special per > > PMU file on behalf of the caller. That should get the same security > > treatment

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello, On 01.10.2018 19:11, Thomas Gleixner wrote: > Peter and I discussed that and we came up with the idea that the file > descriptor is not even required, i.e. you could make it backward > compatible. > > perf_event_open() knows which PMU is associated with the event the caller > tries

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello, On 01.10.2018 19:11, Thomas Gleixner wrote: > Peter and I discussed that and we came up with the idea that the file > descriptor is not even required, i.e. you could make it backward > compatible. > > perf_event_open() knows which PMU is associated with the event the caller > tries

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Jann Horn
On Mon, Oct 1, 2018 at 6:12 PM Thomas Gleixner wrote: > From a design POV, Jann's idea to have a per PMU special file which you > need to open for getting access is way better than the extra knobs. It > allows to use all existing security mechanisms to be used. (That was Mark's idea, not mine, I

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Jann Horn
On Mon, Oct 1, 2018 at 6:12 PM Thomas Gleixner wrote: > From a design POV, Jann's idea to have a per PMU special file which you > need to open for getting access is way better than the extra knobs. It > allows to use all existing security mechanisms to be used. (That was Mark's idea, not mine, I

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Thomas Gleixner
Alexey, On Mon, 1 Oct 2018, Alexey Budankov wrote: > > On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: > >> > >> Is that true? IIRC if you want to use the perf tools after a kernel > >> update, you have to install a new version of perf anyway, no? > > There are usages in production

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Thomas Gleixner
Alexey, On Mon, 1 Oct 2018, Alexey Budankov wrote: > > On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: > >> > >> Is that true? IIRC if you want to use the perf tools after a kernel > >> update, you have to install a new version of perf anyway, no? > > There are usages in production

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello Jann and Kees, On 29.09.2018 1:02, Jann Horn wrote: > Ah, I guess the answer is "0", since you want to see data about what > other users are doing. > > Does the i915 PMU expose sampling events, counting events, or both? > The thing about sampling events is that they AFAIK always let the

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello Jann and Kees, On 29.09.2018 1:02, Jann Horn wrote: > Ah, I guess the answer is "0", since you want to see data about what > other users are doing. > > Does the i915 PMU expose sampling events, counting events, or both? > The thing about sampling events is that they AFAIK always let the

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello Jann, > On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: >> >> >> Is that true? IIRC if you want to use the perf tools after a kernel >> update, you have to install a new version of perf anyway, no? There are usages in production where perf_event_open() syscall accompanied

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello Jann, > On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: >> >> >> Is that true? IIRC if you want to use the perf tools after a kernel >> update, you have to install a new version of perf anyway, no? There are usages in production where perf_event_open() syscall accompanied

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello, On 28.09.2018 21:20, Thomas Gleixner wrote: > Start with something like Documentation/admin-guide/perf-security.rst or > whatever name fits better and add a proper documentation for the existing > knob. With the infrastructure for fine grained access control add the > general explanation

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-10-01 Thread Alexey Budankov
Hello, On 28.09.2018 21:20, Thomas Gleixner wrote: > Start with something like Documentation/admin-guide/perf-security.rst or > whatever name fits better and add a proper documentation for the existing > knob. With the infrastructure for fine grained access control add the > general explanation

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-29 Thread Thomas Gleixner
On Fri, 28 Sep 2018, Andi Kleen wrote: > > > This new file descriptor argument doesn't exist today so it would > > > need to create a new system call with more arguments > > > > Is that true? The first argument is a pointer to a struct that > > contains its own size, so it can be expanded without

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-29 Thread Thomas Gleixner
On Fri, 28 Sep 2018, Andi Kleen wrote: > > > This new file descriptor argument doesn't exist today so it would > > > need to create a new system call with more arguments > > > > Is that true? The first argument is a pointer to a struct that > > contains its own size, so it can be expanded without

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-29 Thread Thomas Gleixner
On Fri, 28 Sep 2018, Andi Kleen wrote: > So there isn't a single answer, and that is why it is important > that this if configurable. I said clearly that I'm not opposed against making it configurable. But because there is no single answer, it's even more important to have proper documentation.

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-29 Thread Thomas Gleixner
On Fri, 28 Sep 2018, Andi Kleen wrote: > So there isn't a single answer, and that is why it is important > that this if configurable. I said clearly that I'm not opposed against making it configurable. But because there is no single answer, it's even more important to have proper documentation.

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 5:12 PM Jann Horn wrote: > > On Fri, Sep 28, 2018 at 3:22 PM Tvrtko Ursulin > wrote: > > On 28/09/2018 11:26, Thomas Gleixner wrote: > > > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > > >> For situations where sysadmins might want to allow different level of > > >> access

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 5:12 PM Jann Horn wrote: > > On Fri, Sep 28, 2018 at 3:22 PM Tvrtko Ursulin > wrote: > > On 28/09/2018 11:26, Thomas Gleixner wrote: > > > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > > >> For situations where sysadmins might want to allow different level of > > >> access

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: > On Fri, Sep 28, 2018 at 10:59 PM Andi Kleen wrote: > > > > This new file descriptor argument doesn't exist today so it would > > > > need to create a new system call with more arguments > > > > > > Is that true? The first argument is a

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
On Fri, Sep 28, 2018 at 11:22:37PM +0200, Jann Horn wrote: > On Fri, Sep 28, 2018 at 10:59 PM Andi Kleen wrote: > > > > This new file descriptor argument doesn't exist today so it would > > > > need to create a new system call with more arguments > > > > > > Is that true? The first argument is a

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 10:59 PM Andi Kleen wrote: > > > This new file descriptor argument doesn't exist today so it would > > > need to create a new system call with more arguments > > > > Is that true? The first argument is a pointer to a struct that > > contains its own size, so it can be

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 10:59 PM Andi Kleen wrote: > > > This new file descriptor argument doesn't exist today so it would > > > need to create a new system call with more arguments > > > > Is that true? The first argument is a pointer to a struct that > > contains its own size, so it can be

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
> > This new file descriptor argument doesn't exist today so it would > > need to create a new system call with more arguments > > Is that true? The first argument is a pointer to a struct that > contains its own size, so it can be expanded without an ABI break. I > don't see any reason why you

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
> > This new file descriptor argument doesn't exist today so it would > > need to create a new system call with more arguments > > Is that true? The first argument is a pointer to a struct that > contains its own size, so it can be expanded without an ABI break. I > don't see any reason why you

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 10:49 PM Andi Kleen wrote: > > On Fri, Sep 28, 2018 at 06:40:17PM +0100, Mark Rutland wrote: > > On Fri, Sep 28, 2018 at 10:23:40AM -0700, Andi Kleen wrote: > > > > There's also been prior discussion on these feature in other contexts > > > > (e.g. android expoits

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 10:49 PM Andi Kleen wrote: > > On Fri, Sep 28, 2018 at 06:40:17PM +0100, Mark Rutland wrote: > > On Fri, Sep 28, 2018 at 10:23:40AM -0700, Andi Kleen wrote: > > > > There's also been prior discussion on these feature in other contexts > > > > (e.g. android expoits

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
On Fri, Sep 28, 2018 at 06:40:17PM +0100, Mark Rutland wrote: > On Fri, Sep 28, 2018 at 10:23:40AM -0700, Andi Kleen wrote: > > > There's also been prior discussion on these feature in other contexts > > > (e.g. android expoits resulting from out-of-tree drivers). It would be > > > nice to see

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
On Fri, Sep 28, 2018 at 06:40:17PM +0100, Mark Rutland wrote: > On Fri, Sep 28, 2018 at 10:23:40AM -0700, Andi Kleen wrote: > > > There's also been prior discussion on these feature in other contexts > > > (e.g. android expoits resulting from out-of-tree drivers). It would be > > > nice to see

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
> Right now we have a single knob, which is poorly documented and that should > be fixed first. But some googling gives you the information that allowing > unprivilegded access is a security risk. So the security focussed sysadmin Ah only if google could simply answer all our questions! > will

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
> Right now we have a single knob, which is poorly documented and that should > be fixed first. But some googling gives you the information that allowing > unprivilegded access is a security risk. So the security focussed sysadmin Ah only if google could simply answer all our questions! > will

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Alexey, On Fri, 28 Sep 2018, Alexey Budankov wrote: > On 28.09.2018 17:02, Thomas Gleixner wrote: > > But this does also require a proper analysis and documentation why it is > > not a security risk to expose the i915 PMU or what potential security > > issues this can create, so that the

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Alexey, On Fri, 28 Sep 2018, Alexey Budankov wrote: > On 28.09.2018 17:02, Thomas Gleixner wrote: > > But this does also require a proper analysis and documentation why it is > > not a security risk to expose the i915 PMU or what potential security > > issues this can create, so that the

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Mark Rutland
On Fri, Sep 28, 2018 at 10:23:40AM -0700, Andi Kleen wrote: > > There's also been prior discussion on these feature in other contexts > > (e.g. android expoits resulting from out-of-tree drivers). It would be > > nice to see those considered. > > > > IIRC The conclusion from prior discussions

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Mark Rutland
On Fri, Sep 28, 2018 at 10:23:40AM -0700, Andi Kleen wrote: > > There's also been prior discussion on these feature in other contexts > > (e.g. android expoits resulting from out-of-tree drivers). It would be > > nice to see those considered. > > > > IIRC The conclusion from prior discussions

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
> There's also been prior discussion on these feature in other contexts > (e.g. android expoits resulting from out-of-tree drivers). It would be > nice to see those considered. > > IIRC The conclusion from prior discussions (e.g. [1]) was that we wanted > finer granularity of control such that we

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Andi Kleen
> There's also been prior discussion on these feature in other contexts > (e.g. android expoits resulting from out-of-tree drivers). It would be > nice to see those considered. > > IIRC The conclusion from prior discussions (e.g. [1]) was that we wanted > finer granularity of control such that we

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Mark Rutland
On Fri, Sep 28, 2018 at 12:26:52PM +0200, Thomas Gleixner wrote: > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > > It would be very helpful if you cc all involved people on the cover letter > instead of just cc'ing your own pile of email addresses. CC'ed now. > > > For situations where sysadmins

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Mark Rutland
On Fri, Sep 28, 2018 at 12:26:52PM +0200, Thomas Gleixner wrote: > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > > It would be very helpful if you cc all involved people on the cover letter > instead of just cc'ing your own pile of email addresses. CC'ed now. > > > For situations where sysadmins

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Alexey Budankov
Hello, On 28.09.2018 17:02, Thomas Gleixner wrote: > Tvrtko, > > On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: >> On 28/09/2018 11:26, Thomas Gleixner wrote: >>> On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: >>> >>> It would be very helpful if you cc all involved people on the cover letter >>> instead

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Alexey Budankov
Hello, On 28.09.2018 17:02, Thomas Gleixner wrote: > Tvrtko, > > On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: >> On 28/09/2018 11:26, Thomas Gleixner wrote: >>> On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: >>> >>> It would be very helpful if you cc all involved people on the cover letter >>> instead

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Tvrtko, On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: > On 28/09/2018 15:02, Thomas Gleixner wrote: > > > Presumably you see adding fine grained control as diminishing the overall > > > security rather than raising it? Could you explain why? Because > > > incompetent > > > sysadmin will turn it off

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Tvrtko, On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: > On 28/09/2018 15:02, Thomas Gleixner wrote: > > > Presumably you see adding fine grained control as diminishing the overall > > > security rather than raising it? Could you explain why? Because > > > incompetent > > > sysadmin will turn it off

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 3:22 PM Tvrtko Ursulin wrote: > On 28/09/2018 11:26, Thomas Gleixner wrote: > > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > >> For situations where sysadmins might want to allow different level of > >> access control for different PMUs, we start creating per-PMU > >>

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Jann Horn
On Fri, Sep 28, 2018 at 3:22 PM Tvrtko Ursulin wrote: > On 28/09/2018 11:26, Thomas Gleixner wrote: > > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > >> For situations where sysadmins might want to allow different level of > >> access control for different PMUs, we start creating per-PMU > >>

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Tvrtko Ursulin
On 28/09/2018 15:02, Thomas Gleixner wrote: Tvrtko, On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: On 28/09/2018 11:26, Thomas Gleixner wrote: On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: It would be very helpful if you cc all involved people on the cover letter instead of just cc'ing your own

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Tvrtko Ursulin
On 28/09/2018 15:02, Thomas Gleixner wrote: Tvrtko, On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: On 28/09/2018 11:26, Thomas Gleixner wrote: On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: It would be very helpful if you cc all involved people on the cover letter instead of just cc'ing your own

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Tvrtko, On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: > On 28/09/2018 11:26, Thomas Gleixner wrote: > > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > > > > It would be very helpful if you cc all involved people on the cover letter > > instead of just cc'ing your own pile of email addresses. CC'ed

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Tvrtko, On Fri, 28 Sep 2018, Tvrtko Ursulin wrote: > On 28/09/2018 11:26, Thomas Gleixner wrote: > > On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: > > > > It would be very helpful if you cc all involved people on the cover letter > > instead of just cc'ing your own pile of email addresses. CC'ed

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Tvrtko Ursulin
Hi, On 28/09/2018 11:26, Thomas Gleixner wrote: Tvrtko, On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: It would be very helpful if you cc all involved people on the cover letter instead of just cc'ing your own pile of email addresses. CC'ed now. I accept it was by bad to miss adding Cc's on

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Tvrtko Ursulin
Hi, On 28/09/2018 11:26, Thomas Gleixner wrote: Tvrtko, On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: It would be very helpful if you cc all involved people on the cover letter instead of just cc'ing your own pile of email addresses. CC'ed now. I accept it was by bad to miss adding Cc's on

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Tvrtko, On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: It would be very helpful if you cc all involved people on the cover letter instead of just cc'ing your own pile of email addresses. CC'ed now. > For situations where sysadmins might want to allow different level of > access control for

Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-28 Thread Thomas Gleixner
Tvrtko, On Wed, 19 Sep 2018, Tvrtko Ursulin wrote: It would be very helpful if you cc all involved people on the cover letter instead of just cc'ing your own pile of email addresses. CC'ed now. > For situations where sysadmins might want to allow different level of > access control for

[RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in sysfs. These work in equivalent fashion as the existing perf_event_paranoid sysctl, which now becomes the

[RFC 0/5] perf: Per PMU access controls (paranoid setting)

2018-09-19 Thread Tvrtko Ursulin
From: Tvrtko Ursulin For situations where sysadmins might want to allow different level of access control for different PMUs, we start creating per-PMU perf_event_paranoid controls in sysfs. These work in equivalent fashion as the existing perf_event_paranoid sysctl, which now becomes the