Re: [PATCH bpf v2 3/3] selftests/bpf: Add test for cgroup iterator on a dead cgroup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux