]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit783687810e986a15ffbf86c516a1a48ff37f38f7
tree5ab3f5b8418fe372a8cf6e5dfe7ef84ff0627fc7
parent8e6875250a1189e0d8db8b05e18abe63c2744521
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: 6f6d33f3b3d0f ("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