summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorIlya Leoshkevich <iii@linux.ibm.com>2023-02-20 17:37:56 +0100
committerAlexei Starovoitov <ast@kernel.org>2023-02-22 22:08:52 +0100
commitdf2ccc180a2e6f6e4343ebee99dcfab4f8af2816 (patch)
tree322f1895b986f7b8d04bc9126c36a678727c2c49 /arch/riscv
parentLoongArch: BPF: Support mixing bpf2bpf and tailcalls (diff)
downloadlinux-df2ccc180a2e6f6e4343ebee99dcfab4f8af2816.tar.xz
linux-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 <iii@linux.ibm.com> Acked-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20230220163756.753713-1-iii@linux.ibm.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/riscv')
0 files changed, 0 insertions, 0 deletions