mbox series

[v1,0/2] Only cgroup v2 can be attached by bpf programs

Message ID 20241018081520.694139-1-chenridong@huaweicloud.com (mailing list archive)
Headers show
Series Only cgroup v2 can be attached by bpf programs | expand

Message

Chen Ridong Oct. 18, 2024, 8:15 a.m. UTC
From: Chen Ridong <chenridong@huawei.com>

Only cgroup v2 can be attached by bpf programs. This patchset reverts
commit 04f8ef5643bc ("cgroup: Fix memory leak caused by missing
cgroup_bpf_offline") and avoid cgroup_bpf_inherit and cgroup_bpf_offline
being call in cgroup v1.

Chen Ridong (2):
  Revert "cgroup: Fix memory leak caused by missing cgroup_bpf_offline"
  cgroup/bpf: only cgroup v2 can be attached by bpf programs

 kernel/cgroup/cgroup.c | 21 ++++++++++++---------
 1 file changed, 12 insertions(+), 9 deletions(-)

Comments

Tejun Heo Oct. 21, 2024, 8:03 p.m. UTC | #1
On Fri, Oct 18, 2024 at 08:15:18AM +0000, Chen Ridong wrote:
> From: Chen Ridong <chenridong@huawei.com>
> 
> Only cgroup v2 can be attached by bpf programs. This patchset reverts
> commit 04f8ef5643bc ("cgroup: Fix memory leak caused by missing
> cgroup_bpf_offline") and avoid cgroup_bpf_inherit and cgroup_bpf_offline
> being call in cgroup v1.

Applied to cgroup/for-6.13.

Thanks.