diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2022-11-04 09:36:49 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-11-04 11:51:45 -0700 |
commit | 4f999b767769b76378c3616c624afd6f4bb0d99f (patch) | |
tree | a392af5680bb1b3435accd9fb49bd16304cee0fa /tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c | |
parent | 7a830b53c17bbadcf99f778f28aaaa4e6c41df5f (diff) |
selftests/bpf: make test_align selftest more robust
test_align selftest relies on BPF verifier log emitting register states
for specific instructions in expected format. Unfortunately, BPF
verifier precision backtracking log interferes with such expectations.
And instruction on which precision propagation happens sometimes don't
output full expected register states. This does indeed look like
something to be improved in BPF verifier, but is beyond the scope of
this patch set.
So to make test_align a bit more robust, inject few dummy R4 = R5
instructions which capture desired state of R5 and won't have precision
tracking logs on them. This fixes tests until we can improve BPF
verifier output in the presence of precision tracking.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20221104163649.121784-7-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_load_bytes.c')
0 files changed, 0 insertions, 0 deletions