From: Chen Ridong <chenridong@xxxxxxxxxx> 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(-) -- 2.34.1