]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: test_maps: cleanup sockmaps when test ends
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Tue, 23 Jan 2018 04:30:44 +0000 (13:30 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 23 Jan 2018 18:10:09 +0000 (19:10 +0100)
commitaa28f3efb2f51394de73530fac6207a4f13b226a
tree5ab3f5b8418fe372a8cf6e5dfe7ef84ff0627fc7
parent07804461cffd464b399a680a4843d8037a72285b
bpf: test_maps: cleanup sockmaps when test ends

Bug: BPF programs and maps related to sockmaps test exist
in memory even after test_maps ends.

This patch fixes it as a short term workaround (sockmap
kernel side needs real fixing) by empyting sockmaps when
test ends.

Fixes: 2d0238bc72506 ("bpf: selftests add sockmap tests")
Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
[ daniel: Note on workaround. ]
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_maps.c