]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
selftests/bpf: Add tests for reading a dangling map iter fd
authorHou Tao <houtao1@huawei.com>
Wed, 10 Aug 2022 08:05:36 +0000 (16:05 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 10 Aug 2022 17:12:48 +0000 (10:12 -0700)
commit5836d81e4b039429f409007ba7e0235391537397
tree092de9a17317525d0265ef0b31cd9729899e5499
parentd247049f4fd088e4e40294819a932a6057b3632c
selftests/bpf: Add tests for reading a dangling map iter fd

After closing both related link fd and map fd, reading the map
iterator fd to ensure it is OK to do so.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20220810080538.1845898-8-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/bpf_iter.c