]> 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)
commit5621ef3318540f340c7ea13f12c00ec07b991e2e
tree092de9a17317525d0265ef0b31cd9729899e5499
parentb4f1d8e27da50b6f521ea8e54ed75bab83d85026
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