summaryrefslogtreecommitdiff
path: root/tools/scripts
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <memxor@gmail.com>2024-12-02 16:22:35 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-02 10:34:18 +0100
commitfdaaf929432f3ead52074ff535aecc7bed5deb18 (patch)
treef50037870933daf13ae45d7c6288ce1c7ff26c46 /tools/scripts
parenta089dad6f92d21184cdd867dbd2af1e9193dde4e (diff)
downloadlinux-fdaaf929432f3ead52074ff535aecc7bed5deb18.tar.gz
linux-fdaaf929432f3ead52074ff535aecc7bed5deb18.tar.bz2
linux-fdaaf929432f3ead52074ff535aecc7bed5deb18.zip
bpf: Zero index arg error string for dynptr and iter
[ Upstream commit bd74e238ae6944b462f57ce8752440a011ba4530 ] 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 <andrii@kernel.org> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20241203002235.3776418-1-memxor@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/scripts')
0 files changed, 0 insertions, 0 deletions