summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@google.com>2023-11-14 07:54:52 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-11-24 00:04:04 +0300
commitc0c6bde586c7dce82719b4ff32a2db6af9ee3d65 (patch)
treefa3610ce4bae16c4ea1ab3fa962ad79b6bb275da /tools/perf/scripts/python/export-to-postgresql.py
parentd3fa86b1a7b4cdc4367acacea16b72e0a200b3d7 (diff)
downloadlinux-c0c6bde586c7dce82719b4ff32a2db6af9ee3d65.tar.xz
netdevsim: Don't accept device bound programs
Commit 2b3486bc2d23 ("bpf: Introduce device-bound XDP programs") introduced device-bound programs by largely reusing existing offloading infrastructure. This changed the semantics of 'prog->aux->offload' a bit. Now, it's non-NULL for both offloaded and device-bound programs. Instead of looking at 'prog->aux->offload' let's call bpf_prog_is_offloaded which should be true iff the program is offloaded and not merely device-bound. Fixes: 2b3486bc2d23 ("bpf: Introduce device-bound XDP programs") Reported-by: syzbot+44c2416196b7c607f226@syzkaller.appspotmail.com Signed-off-by: Stanislav Fomichev <sdf@google.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Jakub Kicinski <kuba@kernel.org> Cc: Dipendra Khadka <kdipendra88@gmail.com> Link: https://lore.kernel.org/bpf/20231114045453.1816995-2-sdf@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions