aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2022-08-09 23:30:33 +0200
committerAlexei Starovoitov <[email protected]>2022-08-09 18:46:11 -0700
commitde7b9927105bd2afe940c6ad22de6938edd8b1c1 (patch)
tree8b2a5de71b7b3f5cdbc9972a27724030ea1010d2 /scripts/gdb/linux/utils.py
parent275c30bcee66a27d1aa97a215d607ad6d49804cb (diff)
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 <[email protected]> Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions