Skip to content

Commit e1a7545

Browse files
auyerborkmann
authored andcommitted
bpf: Fix typo in function save_aux_ptr_type
I found this typo in the save_aux_ptr_type function. s/allow_trust_missmatch/allow_trust_mismatch/ I did not find this anywhere else in the codebase. Signed-off-by: Rafael Passos <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 735f5b8 commit e1a7545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/bpf/verifier.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6971,7 +6971,7 @@ static int check_mem_access(struct bpf_verifier_env *env, int insn_idx, u32 regn
69716971
}
69726972

69736973
static int save_aux_ptr_type(struct bpf_verifier_env *env, enum bpf_reg_type type,
6974-
bool allow_trust_missmatch);
6974+
bool allow_trust_mismatch);
69756975

69766976
static int check_atomic(struct bpf_verifier_env *env, int insn_idx, struct bpf_insn *insn)
69776977
{
@@ -17530,7 +17530,7 @@ static bool reg_type_mismatch(enum bpf_reg_type src, enum bpf_reg_type prev)
1753017530
}
1753117531

1753217532
static int save_aux_ptr_type(struct bpf_verifier_env *env, enum bpf_reg_type type,
17533-
bool allow_trust_missmatch)
17533+
bool allow_trust_mismatch)
1753417534
{
1753517535
enum bpf_reg_type *prev_type = &env->insn_aux_data[env->insn_idx].ptr_type;
1753617536

@@ -17548,7 +17548,7 @@ static int save_aux_ptr_type(struct bpf_verifier_env *env, enum bpf_reg_type typ
1754817548
* src_reg == stack|map in some other branch.
1754917549
* Reject it.
1755017550
*/
17551-
if (allow_trust_missmatch &&
17551+
if (allow_trust_mismatch &&
1755217552
base_type(type) == PTR_TO_BTF_ID &&
1755317553
base_type(*prev_type) == PTR_TO_BTF_ID) {
1755417554
/*

0 commit comments

Comments
 (0)