Andrii Nakryiko wrote: > test_core_reloc_kernel.c selftest is the only CO-RE test that reads and > returns for validation calling thread's information (pid, tgid, comm). Thus it > has to make sure that only test_prog's invocations are honored. > > Fixes: df36e621418b ("selftests/bpf: add CO-RE relocs testing setup") > Reported-by: Alexei Starovoitov <ast@xxxxxxxxxx> > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> > --- > .../selftests/bpf/prog_tests/core_reloc.c | 16 +++++++++++----- > .../selftests/bpf/progs/test_core_reloc_kernel.c | 4 ++++ > 2 files changed, 15 insertions(+), 5 deletions(-) > Looks good. Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>