Home
last modified time | relevance | path

Searched refs:size_default (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/include/linux/
Dfilter.h669 u32 size_default) in bpf_ctx_narrow_align_ok() argument
671 size_default = bpf_ctx_off_adjust_machine(size_default); in bpf_ctx_narrow_align_ok()
675 return (off & (size_default - 1)) == 0; in bpf_ctx_narrow_align_ok()
677 return (off & (size_default - 1)) + size_access == size_default; in bpf_ctx_narrow_align_ok()
682 bpf_ctx_narrow_access_ok(u32 off, u32 size, u32 size_default) in bpf_ctx_narrow_access_ok() argument
684 return bpf_ctx_narrow_align_ok(off, size, size_default) && in bpf_ctx_narrow_access_ok()
685 size <= size_default && (size & (size - 1)) == 0; in bpf_ctx_narrow_access_ok()
/Linux-v4.19/kernel/bpf/
Dcgroup.c693 const int size_default = sizeof(__u32); in cgroup_dev_is_valid_access() local
706 bpf_ctx_record_field_size(info, size_default); in cgroup_dev_is_valid_access()
707 if (!bpf_ctx_narrow_access_ok(off, size, size_default)) in cgroup_dev_is_valid_access()
711 if (size != size_default) in cgroup_dev_is_valid_access()
Dverifier.c5420 u32 size_default = bpf_ctx_off_adjust_machine(ctx_field_size); in convert_ctx_accesses() local
5435 insn->off = off & ~(size_default - 1); in convert_ctx_accesses()
/Linux-v4.19/net/core/
Dfilter.c5195 const int size_default = sizeof(__u32); in bpf_skb_is_valid_access() local
5216 if (size != size_default) in bpf_skb_is_valid_access()
5222 if (size != size_default) in bpf_skb_is_valid_access()
5225 bpf_ctx_record_field_size(info, size_default); in bpf_skb_is_valid_access()
5226 if (!bpf_ctx_narrow_access_ok(off, size, size_default)) in bpf_skb_is_valid_access()
5342 const int size_default = sizeof(__u32); in __sock_filter_check_size() local
5347 bpf_ctx_record_field_size(info, size_default); in __sock_filter_check_size()
5348 return bpf_ctx_narrow_access_ok(off, size, size_default); in __sock_filter_check_size()
5351 return size == size_default; in __sock_filter_check_size()
5543 const int size_default = sizeof(__u32); in sock_addr_is_valid_access() local
[all …]