diff options
author | 2022-08-09 23:30:33 +0200 | |
---|---|---|
committer | 2022-08-09 18:46:11 -0700 | |
commit | de7b9927105bd2afe940c6ad22de6938edd8b1c1 (patch) | |
tree | 8b2a5de71b7b3f5cdbc9972a27724030ea1010d2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bpf: Don't reinit map value in prealloc_lru_pop (diff) | |
download | linux-dev-de7b9927105bd2afe940c6ad22de6938edd8b1c1.tar.xz linux-dev-de7b9927105bd2afe940c6ad22de6938edd8b1c1.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions