aboutsummaryrefslogtreecommitdiff
path: root/kernel/trace/trace_output.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2024-11-01 11:17:53 -0700
committerSteven Rostedt (Google) <[email protected]>2024-11-01 14:39:07 -0400
commit61c6fefa92bb4ed7a34163b94f6ffac628237a29 (patch)
treed20e5bad53b23de4c653b9f9865f37bb25460fdc /kernel/trace/trace_output.c
parentf44ec8733a8469143fde1984b5e6931b2e2f6f3f (diff)
bpf: decouple BPF link/attach hook and BPF program sleepable semantics
BPF link's lifecycle protection scheme depends on both BPF hook and BPF program. If *either* of those require RCU Tasks Trace GP, then we need to go through a chain of GPs before putting BPF program refcount and deallocating BPF link memory. This patch adds bpf_link-specific sleepable flag, which can be set to true even if underlying BPF program is not sleepable itself. If either link->sleepable or link->prog->sleepable is true, we'll go through a chain of RCU Tasks Trace GP and RCU GP before putting BPF program and freeing memory. This will be used to protect BPF link for sleepable (faultable) raw tracepoints in the next patch. Link: https://lore.kernel.org/[email protected] Tested-by: Jordan Rife <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'kernel/trace/trace_output.c')
0 files changed, 0 insertions, 0 deletions