Re: [PATCH v2 bpf-next 1/4] bpf: decouple the lifetime of cgroup_bpf from cgroup itself

2019-05-22 Thread Yonghong Song
On 5/22/19 4:20 PM, Roman Gushchin wrote: > Currently the lifetime of bpf programs attached to a cgroup is bound > to the lifetime of the cgroup itself. It means that if a user > forgets (or intentionally avoids) to detach a bpf program before > removing the cgroup, it will stay attached up to

[PATCH v2 bpf-next 1/4] bpf: decouple the lifetime of cgroup_bpf from cgroup itself

2019-05-22 Thread Roman Gushchin
Currently the lifetime of bpf programs attached to a cgroup is bound to the lifetime of the cgroup itself. It means that if a user forgets (or intentionally avoids) to detach a bpf program before removing the cgroup, it will stay attached up to the release of the cgroup. Since the cgroup can stay