diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-07-29 07:09:12 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-07-30 02:30:22 +0300 |
commit | 1d4e1eab456e1ee92a94987499b211db05f900ea (patch) | |
tree | 5b82ae2c43008bf5b78126fad7b2762c1d1514b8 /tools | |
parent | 5b801dfb7feb2738975d80223efc2fc193e55573 (diff) | |
download | linux-1d4e1eab456e1ee92a94987499b211db05f900ea.tar.xz |
bpf: Fix map leak in HASH_OF_MAPS map
Fix HASH_OF_MAPS bug of not putting inner map pointer on bpf_map_elem_update()
operation. This is due to per-cpu extra_elems optimization, which bypassed
free_htab_elem() logic doing proper clean ups. Make sure that inner map is put
properly in optimized case as well.
Fixes: 8c290e60fa2a ("bpf: fix hashmap extra_elems logic")
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-1-andriin@fb.com
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions