diff options
| author | Alexei Starovoitov <ast@fb.com> | 2016-09-01 18:37:23 -0700 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2022-04-19 00:50:31 +0300 |
| commit | 6fb2e7e6badd0cf82a08be9e4741fe501cf4a4a7 (patch) | |
| tree | 3c385e5da1aef7c79a1ac918220b3b373a3eb1ef /samples/bpf/sock_example.c | |
| parent | b103579f6a01b72be1a732a8c80078721e5c4f8d (diff) | |
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>
Signed-off-by: Chatur27 <jasonbright2709@gmail.com>
Diffstat (limited to 'samples/bpf/sock_example.c')
0 files changed, 0 insertions, 0 deletions
