]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 17:44:25 +0000 (13:44 -0400)
commit5f7857b046d9dc9c91a86417208a1969b77be4d7
treee7ba443b864a151cea64a46c78711f79b32df10a
parent6ba79cf2eb189405b2ab3c4e1184b67e4a8cef4d
bpf: test_maps: cleanup sockmaps when test ends

BugLink: http://bugs.launchpad.net/bugs/1774063
[ Upstream commit 783687810e986a15ffbf86c516a1a48ff37f38f7 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/bpf/test_maps.c