diff options
author | Peter Zijlstra <[email protected]> | 2015-01-29 14:44:34 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2015-02-04 08:07:12 +0100 |
commit | a83fe28e2e45392464858a96745db26ac73670c8 (patch) | |
tree | f5512a81ef46a14319e1600079b36e9cea11ee90 /net/switchdev/switchdev.c | |
parent | 8f95b435b62522aed3381aaea920de8d09ccabf3 (diff) |
perf: Fix put_event() ctx lock
So what I suspect; but I'm in zombie mode today it seems; is that while
I initially thought that it was impossible for ctx to change when
refcount dropped to 0, I now suspect its possible.
Note that until perf_remove_from_context() the event is still active and
visible on the lists. So a concurrent sys_perf_event_open() from another
task into this task can race.
Reported-by: Vince Weaver <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Stephane Eranian <[email protected]>
Cc: [email protected]
Cc: Jiri Olsa <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions