On Thu, Nov 10, 2022 at 10:08 PM Hou Tao <houtao@xxxxxxxxxxxxxxx> wrote: > > From: Hou Tao <houtao1@xxxxxxxxxx> > > The test closes both iterator link fd and cgroup fd, and removes the > cgroup file to make a dead cgroup before reading from cgroup iterator. > It also uses kern_sync_rcu() and usleep() to wait for the release of > start cgroup. If the start cgroup is not pinned by cgroup iterator, > reading from iterator fd will trigger use-after-free. > > Acked-by: Yonghong Song <yhs@xxxxxx> > Signed-off-by: Hou Tao <houtao1@xxxxxxxxxx> Acked-by: Hao Luo <haoluo@xxxxxxxxxx>