aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2023-03-02 15:50:05 -0800
committerAlexei Starovoitov <[email protected]>2023-03-04 11:14:32 -0800
commitc1ee85a9806a720aa054f68fe7f9c79418f36c2b (patch)
tree41e29a5dfd316afa82aeef5ac69a035f5852d051 /lib/string_helpers.c
parent653ae3a874aca6764a4c1f5a8bf1b072ade0d6f4 (diff)
bpf: fix visit_insn()'s detection of BPF_FUNC_timer_set_callback helper
It's not correct to assume that any BPF_CALL instruction is a helper call. Fix visit_insn()'s detection of bpf_timer_set_callback() helper by also checking insn->code == 0. For kfuncs insn->code would be set to BPF_PSEUDO_KFUNC_CALL, and for subprog calls it will be BPF_PSEUDO_CALL. Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions