path: root/drivers
diff options
authorDaniel Borkmann <>2016-06-27 21:38:11 +0200
committerDavid S. Miller <>2016-06-29 05:42:55 -0400
commitceb56070359b7329b5678b5d95a376fcb24767be (patch)
tree0f6deeff3c087009986f95158f27e1d2bd9ae549 /drivers
parent565ce8f32ac4a233b474f401e1d3e7e1de0a31fd (diff)
bpf, perf: delay release of BPF prog after grace period
Commit dead9f29ddcc ("perf: Fix race in BPF program unregister") moved destruction of BPF program from free_event_rcu() callback to __free_event(), which is problematic if used with tail calls: if prog A is attached as trace event directly, but at the same time present in a tail call map used by another trace event program elsewhere, then we need to delay destruction via RCU grace period since it can still be in use by the program doing the tail call (the prog first needs to be dropped from the tail call map, then trace event with prog A attached destroyed, so we get immediate destruction). Fixes: dead9f29ddcc ("perf: Fix race in BPF program unregister") Signed-off-by: Daniel Borkmann <> Acked-by: Alexei Starovoitov <> Cc: Jann Horn <> Signed-off-by: David S. Miller <>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions