Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpftool: Query only cgroup-related attach types #7160

Closed

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: bpftool: Query only cgroup-related attach types
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=859879

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: f85af9d
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=859879
version: 2

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: f85af9d
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=859906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 2ebb87f
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=859906
version: 3

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: bb678f0
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=859906
version: 3

When CONFIG_NETKIT=y,
bpftool-cgroup shows error even if the cgroup's path is correct:

$ bpftool cgroup tree /sys/fs/cgroup
CgroupPath
ID       AttachType      AttachFlags     Name
Error: can't query bpf programs attached to /sys/fs/cgroup: No such device or address

>From strace and kernel tracing, I found netkit returned ENXIO and this command failed.
I think this AttachType(BPF_NETKIT_PRIMARY) is not relevant to cgroup.

bpftool-cgroup should query just only cgroup-related attach types.

v2->v3:
  - removed an unnecessary check

v1->v2:
  - used an array of cgroup attach types

Signed-off-by: Kenta Tada <tadakentaso@gmail.com>
Reviewed-by: Quentin Monnet <qmo@kernel.org>
@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=859906 irrelevant now. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/856984=>bpf-next branch June 11, 2024 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant