lkml.org 
[lkml]   [2014]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/5] perf: Fix tracepoint events permissions check
On Fri, Jul 11, 2014 at 01:56:17PM +0200, Jiri Olsa wrote:
> hi,
> sending fix for bug reported by Alexander Yarygin in here:
> http://marc.info/?l=linux-kernel&m=140475133707722&w=2
>
> The main problem was, that the event_init tracepoint callback
> checked permission of the 'current' task instead of the event
> owner task.
>
> While this is ok for perf_event_open syscall check, it is wrong
> once event_init is called during fork to create child events.
> In this case the permission of the forked task is checked instead
> of the owner task of the parent event.

also available in here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/core_perm

jirka


\
 
 \ /
  Last update: 2014-07-11 15:21    [W:0.133 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site