• Peter Zijlstra's avatar
    perf: Fix orphan hole · 78cd2c74
    Peter Zijlstra authored
    We should set event->owner before we install the event,
    otherwise there is a hole where the target task can fork() and
    we'll not inherit the event because it thinks the event is
    orphaned.
    Signed-off-by: default avatarPeter Zijlstra <peterz@infradead.org>
    Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
    Cc: Jiri Olsa <jolsa@redhat.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: linux-kernel@vger.kernel.org
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    78cd2c74
core.c 220 KB