diff options
author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2022-08-10 00:30:33 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-08-10 04:46:11 +0300 |
commit | de7b9927105bd2afe940c6ad22de6938edd8b1c1 (patch) | |
tree | 8b2a5de71b7b3f5cdbc9972a27724030ea1010d2 /io_uring | |
parent | 275c30bcee66a27d1aa97a215d607ad6d49804cb (diff) | |
download | linux-de7b9927105bd2afe940c6ad22de6938edd8b1c1.tar.xz |
selftests/bpf: Add test for prealloc_lru_pop bug
Add a regression test to check against invalid check_and_init_map_value
call inside prealloc_lru_pop.
The kptr should not be reset to NULL once we set it after deleting the
map element. Hence, we trigger a program that updates the element
causing its reuse, and checks whether the unref kptr is reset or not.
If it is, prealloc_lru_pop does an incorrect check_and_init_map_value
call and the test fails.
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20220809213033.24147-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions