diff options
| author | Ilya Leoshkevich <[email protected]> | 2023-02-20 16:37:56 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-02-22 21:08:52 +0000 |
| commit | df2ccc180a2e6f6e4343ebee99dcfab4f8af2816 (patch) | |
| tree | 322f1895b986f7b8d04bc9126c36a678727c2c49 /tools/testing/selftests/bpf/prog_tests/tracing_struct.c | |
| parent | LoongArch: BPF: Support mixing bpf2bpf and tailcalls (diff) | |
| download | kernel-df2ccc180a2e6f6e4343ebee99dcfab4f8af2816.tar.gz kernel-df2ccc180a2e6f6e4343ebee99dcfab4f8af2816.zip | |
bpf: Check for helper calls in check_subprogs()
The condition src_reg != BPF_PSEUDO_CALL && imm == BPF_FUNC_tail_call
may be satisfied by a kfunc call. This would lead to unnecessarily
setting has_tail_call. Use src_reg == 0 instead.
Signed-off-by: Ilya Leoshkevich <[email protected]>
Acked-by: Stanislav Fomichev <[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/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions
