On Tue, Oct 5, 2021 at 11:50 PM Jakub Sitnicki <jakub@xxxxxxxxxxxxxx> wrote: > > On Wed, Oct 06, 2021 at 02:28 AM CEST, Kumar Kartikeya Dwivedi wrote: > > Similar to the fix in commit: > > e31eec77e4ab (bpf: selftests: Fix fd cleanup in get_branch_snapshot) > > > > We use memset to set fds to -1 without breaking on future changes to > > the array size (when MAX_SERVER constant is bumped). > > > > The particular close(0) occurs on non-reuseport tests, so it can be seen > > with -n 115/{2,3} but not 115/4. This can cause problems with future > > tests if they depend on BTF fd never being acquired as fd 0, breaking > > internal libbpf assumptions. > > > > Cc: Jakub Sitnicki <jakub@xxxxxxxxxxxxxx> > > Fixes: 0ab5539f8584 (selftests/bpf: Tests for BPF_SK_LOOKUP attach point) Similar to Andrii's comment in 6/6, we need add " to the Fixes tag. > > Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx> > > Reviewed-by: Jakub Sitnicki <jakub@xxxxxxxxxxxxxx>