diff options
author | Alexei Starovoitov <ast@fb.com> | 2016-09-02 03:37:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-02 19:46:44 +0200 |
commit | fdc15d388d600d5a1599e14c700af105a5b60761 (patch) | |
tree | 6c197edb2fc2040e8069ff372baebcda5770ba25 /samples/bpf/bpf_helpers.h | |
parent | bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type (diff) | |
download | linux-fdc15d388d600d5a1599e14c700af105a5b60761.tar.xz linux-fdc15d388d600d5a1599e14c700af105a5b60761.zip |
bpf: perf_event progs should only use preallocated maps
Make sure that BPF_PROG_TYPE_PERF_EVENT programs only use
preallocated hash maps, since doing memory allocation
in overflow_handler can crash depending on where nmi got triggered.
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions