Re: [PATCH bpf-next] selftests/bpf: fix spurious test failures in core_retro selftest

2020-08-01 Thread Alexei Starovoitov
On Fri, Jul 31, 2020 at 2:55 PM John Fastabend wrote: > > Andrii Nakryiko wrote: > > core_retro selftest uses BPF program that's triggered on sys_enter > > system-wide, but has no protection from some unrelated process doing syscall > > while selftest is running. This leads to occasional test fail

RE: [PATCH bpf-next] selftests/bpf: fix spurious test failures in core_retro selftest

2020-07-31 Thread John Fastabend
Andrii Nakryiko wrote: > core_retro selftest uses BPF program that's triggered on sys_enter > system-wide, but has no protection from some unrelated process doing syscall > while selftest is running. This leads to occasional test failures with > unexpected PIDs being returned. Fix that by filtering

[PATCH bpf-next] selftests/bpf: fix spurious test failures in core_retro selftest

2020-07-31 Thread Andrii Nakryiko
core_retro selftest uses BPF program that's triggered on sys_enter system-wide, but has no protection from some unrelated process doing syscall while selftest is running. This leads to occasional test failures with unexpected PIDs being returned. Fix that by filtering out all processes that are not