diff options
author | 2020-07-28 21:09:13 -0700 | |
---|---|---|
committer | 2020-07-30 01:30:26 +0200 | |
commit | 0ba58348414eb10249480635545758b40b3c33b6 (patch) | |
tree | cb6f2183d57cb567b728fb8583efa0009089196b /net | |
parent | bpf: Fix map leak in HASH_OF_MAPS map (diff) | |
download | linux-dev-0ba58348414eb10249480635545758b40b3c33b6.tar.xz linux-dev-0ba58348414eb10249480635545758b40b3c33b6.zip |
selftests/bpf: Extend map-in-map selftest to detect memory leaks
Add test validating that all inner maps are released properly after skeleton
is destroyed. To ensure determinism, trigger kernel-side synchronize_rcu()
before checking map existence by their IDs.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200729040913.2815687-2-andriin@fb.com
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions