diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2024-12-02 16:22:35 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-12-02 18:47:41 -0800 |
commit | bd74e238ae6944b462f57ce8752440a011ba4530 (patch) | |
tree | a6d52b148671d8270b985ecf8cf2547c42c96a44 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | d4c44354bcaffed729c4eba8c0f2ecfd61fea743 (diff) |
bpf: Zero index arg error string for dynptr and iter
Andrii spotted that process_dynptr_func's rejection of incorrect
argument register type will print an error string where argument numbers
are not zero-indexed, unlike elsewhere in the verifier. Fix this by
subtracting 1 from regno. The same scenario exists for iterator
messages. Fix selftest error strings that match on the exact argument
number while we're at it to ensure clean bisection.
Suggested-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions