diff options
author | Maxim Mikityanskiy <maxtram95@gmail.com> | 2024-09-09 16:39:09 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-09-09 15:58:17 -0700 |
commit | bee109b7b3e50739b88252a219fa07ecd78ad628 (patch) | |
tree | deddf35e7e450e37bf4658bb000be9a9baa38452 /crypto/ahash.c | |
parent | f028d7716cdeae3be7d8d211482248916b25b1c2 (diff) | |
download | linux-bee109b7b3e50739b88252a219fa07ecd78ad628.tar.gz linux-bee109b7b3e50739b88252a219fa07ecd78ad628.tar.bz2 linux-bee109b7b3e50739b88252a219fa07ecd78ad628.zip |
bpf: Fix error message on kfunc arg type mismatch
When "arg#%d expected pointer to ctx, but got %s" error is printed, both
template parts actually point to the type of the argument, therefore, it
will also say "but got PTR", regardless of what was the actual register
type.
Fix the message to print the register type in the second part of the
template, change the existing test to adapt to the new format, and add a
new test to test the case when arg is a pointer to context, but reg is a
scalar.
Fixes: 00b85860feb8 ("bpf: Rewrite kfunc argument handling")
Signed-off-by: Maxim Mikityanskiy <maxim@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/bpf/20240909133909.1315460-1-maxim@isovalent.com
Diffstat (limited to 'crypto/ahash.c')
0 files changed, 0 insertions, 0 deletions