On Mon, Jun 29, 2020 at 10:56:28AM +0100, Lorenz Bauer wrote: > The sockmap code currently ignores the value of attach_bpf_fd when > detaching a program. This is contrary to the usual behaviour of > checking that attach_bpf_fd represents the currently attached > program. > > Ensure that attach_bpf_fd is indeed the currently attached > program. It turns out that all sockmap selftests already do this, > which indicates that this is unlikely to cause breakage. Please update the tools/testing/selftests/bpf/test_maps.c. It is currently broken: #> ./test_maps Failed empty parser prog detach