Defined in 1 files as a function:
Referenced in 9 files:
- include/linux/bpf-cgroup.h, line 183
- include/net/sock.h, line 1443
- kernel/bpf/cgroup.c
- kernel/cgroup/cgroup.c
- net/core/filter.c
- net/ipv4/inet_diag.c
- net/mptcp/subflow.c
- net/netfilter/nft_socket.c, line 49
- net/netfilter/xt_cgroup.c
Smatch caller information:
net/ipv4/inet_diag.c inet_diag_bc_sk() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &hslot->lock | ||
| HALF_LOCKED2 | &ibb->lock | ||
| HALF_LOCKED2 | &ilb->lock | ||
| HALF_LOCKED2 | &nlk->nl_cb_mutex | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct netlink_sock)->nl_cb_mutex |
net/ipv4/inet_diag.c inet_diag_msg_attrs_fill() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | sk |
net/core/filter.c __bpf_sk_ancestor_cgroup_id() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
net/core/filter.c __bpf_sk_cgroup_id() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
net/core/filter.c cgroup_bpf_sock_enabled() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &conn->lock | ||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | rcu_read | ||
| HALF_LOCKED2 | sk |
net/core/filter.c sk_under_cgroup_hierarchy() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
kernel/bpf/cgroup.c __cgroup_bpf_run_filter_getsockopt() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| PARAM_VALUE | 0 | skcd->cgroup | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/bpf/cgroup.c __cgroup_bpf_run_filter_getsockopt_kern() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| RX_PATH | |||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | sk |
kernel/bpf/cgroup.c __cgroup_bpf_run_filter_setsockopt() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| PARAM_VALUE | 0 | skcd->cgroup | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/bpf/cgroup.c __cgroup_bpf_run_filter_sk() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
kernel/bpf/cgroup.c __cgroup_bpf_run_filter_skb() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| PARAM_VALUE | 0 | skcd->cgroup | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/cgroup.c __cgroup_bpf_run_filter_sock_addr() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &u->iolock | ||
| HALF_LOCKED2 | sk |
kernel/bpf/cgroup.c __cgroup_bpf_run_filter_sock_ops() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/cgroup.c __cgroup_bpf_run_lsm_sock() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
kernel/bpf/cgroup.c __cgroup_bpf_run_lsm_socket() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
kernel/cgroup/cgroup.c cgroup_sk_clone() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| BUF_SIZE | 0 | skcd | (-1),16 |
| BUF_SIZE | 0 | skcd | (-1),16 |
| DATA_SOURCE | 0 | skcd | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | sk |
kernel/cgroup/cgroup.c cgroup_sk_free() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| BUF_SIZE | 0 | skcd | (-1),16 |
| BUF_SIZE | 0 | skcd | (-1),16 |
| DATA_SOURCE | 0 | skcd | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/socket.c cgroup_bpf_sock_enabled() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/ipv6/ip6_output.c cgroup_bpf_sock_enabled() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/xt_cgroup.c cgroup_mt_v1() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| BUF_SIZE | 0 | skcd | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &table->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/netfilter/xt_cgroup.c cgroup_mt_v2() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| BUF_SIZE | 0 | skcd | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &table->lock | ||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |
net/mptcp/subflow.c __mptcp_inherit_cgrp_data() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| BUF_SIZE | 0 | skcd | 16 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | ssk |
net/mptcp/subflow.c __mptcp_inherit_cgrp_data() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| BUF_SIZE | 0 | skcd | 16 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk | ||
| HALF_LOCKED2 | ssk |
net/netfilter/nft_socket.c nft_sock_get_eval_cgroupv2() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
net/ipv4/ip_output.c cgroup_bpf_sock_enabled() -> sock_cgroup_ptr()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | skcd | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | bh | ||
| HALF_LOCKED2 | rcu_read |