Re: [PATCH 1/2] selftests/bpf: Avoid errno clobbering

2020-12-01 Thread Andrii Nakryiko
On Sat, Nov 28, 2020 at 11:28 AM Florian Lehner wrote: > > Commit 8184d44c9a57 ("selftests/bpf: skip verifier tests for unsupported > program types") added a check to skip unsupported program types. As > bpf_probe_prog_type can change errno, do_single_test should save it before > printing a reason

[PATCH 1/2] selftests/bpf: Avoid errno clobbering

2020-11-28 Thread Florian Lehner
Commit 8184d44c9a57 ("selftests/bpf: skip verifier tests for unsupported program types") added a check to skip unsupported program types. As bpf_probe_prog_type can change errno, do_single_test should save it before printing a reason why a supported BPF program type failed to load. Fixes: 8184d44c