diff options
| author | Alexei Starovoitov <ast@fb.com> | 2016-06-15 18:25:39 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:19 +0200 |
| commit | 529e188d899d30867b23d39ac446218b487f06a1 (patch) | |
| tree | 2b001bb4947b72a88b140ad49ed75fcc1309fe71 /include/linux | |
| parent | fad207f2c734142b8ba4b211ce10af433d499430 (diff) | |
bpf, trace: check event type in bpf_perf_event_read
commit ad572d174787daa59e24b8b5c83028c09cdb5ddb upstream.
similar to bpf_perf_event_output() the bpf_perf_event_read() helper
needs to check the type of the perf_event before reading the counter.
Fixes: a43eec304259 ("bpf: introduce bpf_perf_event_output() helper")
Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
