bpf: Fix bpf_strncmp proto.
authorAlexei Starovoitov <ast@kernel.org>
Mon, 13 Mar 2023 23:58:43 +0000 (16:58 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Tue, 14 Mar 2023 06:08:21 +0000 (23:08 -0700)
commitc9267aa8b794c2188d49c7d7bd2990e98b2d6b84
tree7dd80af18ce80a68cd887b86cb2e55ed23870012
parentb9fe8e8d03d0df28b2431e3aaf8e115cf7bf2f65
bpf: Fix bpf_strncmp proto.

bpf_strncmp() doesn't write into its first argument.
Make sure that the verifier knows about it.

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20230313235845.61029-2-alexei.starovoitov@gmail.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
kernel/bpf/helpers.c