Home
last modified time | relevance | path

Searched refs:expected_size (Results 1 – 3 of 3) sorted by relevance

/kernel/bpf/
Dsyscall.c83 size_t expected_size, in bpf_check_uarg_tail_zero() argument
91 if (actual_size <= expected_size) in bpf_check_uarg_tail_zero()
95 res = memchr_inv(uaddr.kernel + expected_size, 0, in bpf_check_uarg_tail_zero()
96 actual_size - expected_size) == NULL; in bpf_check_uarg_tail_zero()
98 res = check_zeroed_user(uaddr.user + expected_size, in bpf_check_uarg_tail_zero()
99 actual_size - expected_size); in bpf_check_uarg_tail_zero()
Dverifier.c11417 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local
11451 expected_size = sizeof(struct bpf_line_info); in check_btf_line()
11452 ncopy = min_t(u32, expected_size, rec_size); in check_btf_line()
11454 err = bpf_check_uarg_tail_zero(ulinfo, expected_size, rec_size); in check_btf_line()
11460 &expected_size, sizeof(expected_size))) in check_btf_line()
11545 u32 i, nr_core_relo, ncopy, expected_size, rec_size; in check_core_relo() local
11569 expected_size = sizeof(struct bpf_core_relo); in check_core_relo()
11570 ncopy = min_t(u32, expected_size, rec_size); in check_core_relo()
11577 err = bpf_check_uarg_tail_zero(u_core_relo, expected_size, rec_size); in check_core_relo()
11583 &expected_size, sizeof(expected_size))) in check_core_relo()
Dbtf.c849 u32 expected_offset, u32 expected_size) in btf_member_is_reg_int() argument
871 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int()
878 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int()