Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dfilter.h1016 bpf_ctx_narrow_access_ok(u32 off, u32 size, u32 size_default) in bpf_ctx_narrow_access_ok() argument
1018 return size <= size_default && (size & (size - 1)) == 0; in bpf_ctx_narrow_access_ok()
1022 bpf_ctx_narrow_access_offset(u32 off, u32 size, u32 size_default) in bpf_ctx_narrow_access_offset() argument
1024 u8 access_off = off & (size_default - 1); in bpf_ctx_narrow_access_offset()
1029 return size_default - (access_off + size); in bpf_ctx_narrow_access_offset()
/linux/net/core/
H A Dfilter.c8589 const int size_default = sizeof(__u32); in bpf_skb_is_valid_access() local
8606 if (info->is_ldsx || size != size_default) in bpf_skb_is_valid_access()
8613 if (size != size_default) in bpf_skb_is_valid_access()
8639 if (size != size_default) in bpf_skb_is_valid_access()
8642 bpf_ctx_record_field_size(info, size_default); in bpf_skb_is_valid_access()
8643 if (!bpf_ctx_narrow_access_ok(off, size, size_default)) in bpf_skb_is_valid_access()
8822 const int size_default = sizeof(__u32); in bpf_sock_is_valid_access() local
8841 bpf_ctx_record_field_size(info, size_default); in bpf_sock_is_valid_access()
8842 return bpf_ctx_narrow_access_ok(off, size, size_default); in bpf_sock_is_valid_access()
8844 field_size = size == size_default ? in bpf_sock_is_valid_access()
[all …]
/linux/kernel/bpf/
H A Dverifier.c20342 u32 target_size, size_default, off; in convert_ctx_accesses() local
20522 size_default = bpf_ctx_off_adjust_machine(ctx_field_size); in convert_ctx_accesses()
20538 insn->off = off & ~(size_default - 1); in convert_ctx_accesses()
20553 off, size, size_default) * 8; in convert_ctx_accesses()