Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1433637
| From | David Miller <davem@davemloft.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH net] bpf, perf: delay release of BPF prog after grace period |
| Date | 2016-06-29 11:50 +0200 |
| Message-ID | <rPki7-2xi-47@gated-at.bofh.it> (permalink) |
| References | <rOKxZ-4Bc-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Daniel Borkmann <daniel@iogearbox.net>
Date: Mon, 27 Jun 2016 21:38:11 +0200
> 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 <daniel@iogearbox.net>
> Acked-by: Alexei Starovoitov <ast@kernel.org>
> Cc: Jann Horn <jann@thejh.net>
Applied and queued up for -stable, thanks Daniel.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH net] bpf, perf: delay release of BPF prog after grace period Daniel Borkmann <daniel@iogearbox.net> - 2016-06-27 21:40 +0200 Re: [PATCH net] bpf, perf: delay release of BPF prog after grace period David Miller <davem@davemloft.net> - 2016-06-29 11:50 +0200
csiph-web