]> git.baikalelectronics.ru Git - kernel.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)
commit0886496c7dc5c9ac8f9889894d99862af0484ff7
tree092de9a17317525d0265ef0b31cd9729899e5499
parente5369deec70e3484be23e4a7b380e8a71ef3894b
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