]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
libbpf: Fix probe for BPF_PROG_TYPE_CGROUP_SOCKOPT
authorRobin Gögge <r.goegge@googlemail.com>
Wed, 28 Jul 2021 22:58:25 +0000 (00:58 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 24 Sep 2021 09:57:05 +0000 (11:57 +0200)
commit0812298dbf0656430365690580b35528ff46ae48
treec59abf5bd60882c5fdf3e69e7d4a2e50fc3f6584
parent7060f6839769a8fbefdb6d9f22d48a9e573e2128
libbpf: Fix probe for BPF_PROG_TYPE_CGROUP_SOCKOPT

BugLink: https://bugs.launchpad.net/bugs/1943756
[ Upstream commit 78d14bda861dd2729f15bb438fe355b48514bfe0 ]

This patch fixes the probe for BPF_PROG_TYPE_CGROUP_SOCKOPT,
so the probe reports accurate results when used by e.g.
bpftool.

Fixes: 4cdbfb59c44a ("libbpf: support sockopt hooks")
Signed-off-by: Robin Gögge <r.goegge@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20210728225825.2357586-1-r.goegge@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/lib/bpf/libbpf_probes.c