Lines Matching refs:off
1622 static bool cgroup_dev_is_valid_access(int off, int size, in cgroup_dev_is_valid_access() argument
1632 if (off < 0 || off + size > sizeof(struct bpf_cgroup_dev_ctx)) in cgroup_dev_is_valid_access()
1635 if (off % size != 0) in cgroup_dev_is_valid_access()
1638 switch (off) { in cgroup_dev_is_valid_access()
1641 if (!bpf_ctx_narrow_access_ok(off, size, size_default)) in cgroup_dev_is_valid_access()
2180 static bool sysctl_is_valid_access(int off, int size, enum bpf_access_type type, in sysctl_is_valid_access() argument
2186 if (off < 0 || off + size > sizeof(struct bpf_sysctl) || off % size) in sysctl_is_valid_access()
2189 switch (off) { in sysctl_is_valid_access()
2194 return bpf_ctx_narrow_access_ok(off, size, size_default); in sysctl_is_valid_access()
2198 return bpf_ctx_narrow_access_ok(off, size, size_default); in sysctl_is_valid_access()
2215 switch (si->off) { in sysctl_convert_ctx_access()
2335 static bool cg_sockopt_is_valid_access(int off, int size, in cg_sockopt_is_valid_access() argument
2342 if (off < 0 || off >= sizeof(struct bpf_sockopt)) in cg_sockopt_is_valid_access()
2345 if (off % size != 0) in cg_sockopt_is_valid_access()
2349 switch (off) { in cg_sockopt_is_valid_access()
2369 switch (off) { in cg_sockopt_is_valid_access()
2410 switch (si->off) { in cg_sockopt_convert_ctx_access()