Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
net/core/filter.c bpf_skb_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 0-75,84-91,100-139,160-167,176-179 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c bpf_sock_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 4,8,12,24-27,44,52-55,72,76 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c bpf_sock_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 48-49 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 2,4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| BIT_INFO | 2 | size_default | 0x0,0x6 |
| UNITS | 0 | off | unit_byte |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c sk_lookup_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 8-19,40-43,60-67 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c sk_lookup_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 36-37 |
| PARAM_VALUE | 1 | size | 1-2,8 |
| PARAM_VALUE | 2 | size_default | 2 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c sk_lookup_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 38-39 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 2 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c sk_reuseport_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 16-31 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c sock_addr_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 1-u32max |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 1 | size | unit_byte |
| UNITS | 2 | size_default | unit_byte |
net/core/filter.c sock_ops_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 212 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 2 | size_default | unit_byte |
kernel/bpf/cgroup.c cgroup_dev_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 0-3 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 2 | size_default | unit_byte |
kernel/bpf/cgroup.c sysctl_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 0-3 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 2 | size_default | unit_byte |
kernel/bpf/cgroup.c sysctl_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 4-7 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 4 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 2 | size_default | unit_byte |
kernel/trace/bpf_trace.c pe_prog_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 168-175 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 8 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 2 | size_default | unit_byte |
kernel/trace/bpf_trace.c pe_prog_is_valid_access() -> bpf_ctx_narrow_access_ok()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | off | 176-183 |
| PARAM_VALUE | 1 | size | 1-2,4,8 |
| PARAM_VALUE | 2 | size_default | 8 |
| DATA_SOURCE | 0 | off | $0 |
| DATA_SOURCE | 1 | size | $1 |
| UNITS | 0 | off | unit_byte |
| UNITS | 2 | size_default | unit_byte |