diff options
author | Yafang Shao <laoar.shao@gmail.com> | 2022-07-13 19:09:36 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2022-07-14 23:51:35 +0300 |
commit | 5002615a37b1e23a4b51c386ee22c8f90a70b4dd (patch) | |
tree | 73e4fbe8dc4b36df020595c39f8ba811808fa60f /block/sed-opal.c | |
parent | ca2e1a627035002cd33d9667431e80bad90c25fa (diff) | |
download | linux-5002615a37b1e23a4b51c386ee22c8f90a70b4dd.tar.xz |
bpf: Warn on non-preallocated case for BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE
BPF_PROG_TYPE_RAW_TRACEPOINT_WRITABLE is also tracing type, which may
cause unexpected memory allocation if we set BPF_F_NO_PREALLOC. Let's
also warn on it similar as we do in case of BPF_PROG_TYPE_RAW_TRACEPOINT.
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220713160936.57488-1-laoar.shao@gmail.com
Diffstat (limited to 'block/sed-opal.c')
0 files changed, 0 insertions, 0 deletions