Skip to content

Commit b5692b9

Browse files
committed
fix codde
1 parent 2fa2884 commit b5692b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/bpf/liveness.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,10 @@ bpf_insn_successors(struct bpf_verifier_env *env, u32 idx)
500500
if (opcode_info->can_jump)
501501
succ->items[succ->cnt++] = idx + bpf_jmp_offset(insn) + 1;
502502

503+
if (unlikely(insn->code == (BPF_JMP | BPF_CALL) && insn->src_reg == 0
504+
&& insn->imm == BPF_FUNC_tail_call))
505+
succ->items[succ->cnt++] = idx;
506+
503507
return succ;
504508
}
505509

0 commit comments

Comments
 (0)