Home
last modified time | relevance | path

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

/kernel/bpf/
Dsyscall.c79 size_t expected_size, in bpf_check_uarg_tail_zero() argument
82 unsigned char __user *addr = uaddr + expected_size; in bpf_check_uarg_tail_zero()
88 if (actual_size <= expected_size) in bpf_check_uarg_tail_zero()
91 res = check_zeroed_user(addr, actual_size - expected_size); in bpf_check_uarg_tail_zero()
Dbtf.c703 u32 expected_offset, u32 expected_size) in btf_member_is_reg_int() argument
725 BITS_ROUNDUP_BYTES(nr_bits) == expected_size; in btf_member_is_reg_int()
732 BITS_ROUNDUP_BYTES(nr_bits) != expected_size) in btf_member_is_reg_int()
Dverifier.c9058 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local
9092 expected_size = sizeof(struct bpf_line_info); in check_btf_line()
9093 ncopy = min_t(u32, expected_size, rec_size); in check_btf_line()
9095 err = bpf_check_uarg_tail_zero(ulinfo, expected_size, rec_size); in check_btf_line()
9099 if (put_user(expected_size, in check_btf_line()