Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 14 files:
- drivers/net/bonding/bond_main.c
- drivers/net/ethernet/intel/idpf/xdp.c, line 135
- drivers/net/ethernet/mellanox/mlx5/core/en_main.c
- drivers/net/hyperv/netvsc_bpf.c, line 181
- drivers/net/hyperv/netvsc_drv.c
- kernel/bpf/bpf_iter.c, line 601
- kernel/bpf/dispatcher.c, line 61
- kernel/bpf/inode.c
- kernel/bpf/syscall.c
- kernel/bpf/trampoline.c, line 1097
- kernel/events/core.c, line 13471
- net/bpf/bpf_dummy_struct_ops.c, line 173
- net/core/dev.c, line 10391
- net/core/sock_map.c
Smatch caller information:
kernel/bpf/bpf_iter.c prepare_seq_file() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &link_mutex |
kernel/bpf/syscall.c __bpf_prog_get() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
kernel/bpf/syscall.c bpf_perf_link_attach() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | prog | 1 |
| DATA_SOURCE | 0 | prog | $1 |
| NOCHECK_CALL |
drivers/net/hyperv/netvsc_drv.c netvsc_attach() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
drivers/net/hyperv/netvsc_drv.c netvsc_devinfo_get() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| DATA_SOURCE | 0 | prog | r netvsc_xdp_get |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | global &rtnl_mutex |
net/bpf/bpf_dummy_struct_ops.c bpf_struct_ops_test_run() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| PARAM_VALUE | 0 | prog->aux | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | prog->aux->attach_btf_id | 1 |
| DATA_SOURCE | 0 | prog | $0 |
| NOCHECK_CALL |
kernel/bpf/inode.c __get_prog_inode() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | prog | unit_array_size |
kernel/bpf/inode.c bpf_any_get() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | prog | $0 |
| NOCHECK_CALL | |||
| UNITS | 0 | prog | unit_array_size |
drivers/net/bonding/bond_main.c bond_xdp_set() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock |
drivers/net/bonding/bond_main.c bond_xdp_set() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->lock |
drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_alloc_rq() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &priv->state_lock |
drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_xdp_set() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| PARAM_VALUE | 0 | prog->aux | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &priv->state_lock | ||
| HALF_LOCKED2 | &netdev->lock | ||
| TYPE_LOCK | (struct mlx5e_priv)->state_lock |
drivers/net/hyperv/netvsc_bpf.c netvsc_vf_setxdp() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
net/core/sock_map.c sock_map_link_create() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| NOCHECK_CALL |
net/core/sock_map.c sock_map_link_update_prog() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | prog->expected_attach_type | 1 |
| CAPPED_DATA | 0 | prog->type | 1 |
| DATA_SOURCE | 0 | prog | $1 |
| NOCHECK_CALL | |||
| LOCK2 | global &sockmap_mutex |
kernel/bpf/dispatcher.c bpf_dispatcher_add_prog() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| PARAM_VALUE | 0 | prog->aux | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | prog | 1 |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &d->mutex | ||
| TYPE_LOCK | (struct bpf_dispatcher)->mutex |
drivers/net/ethernet/intel/idpf/xdp.c idpf_xdp_rxq_assign_prog() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 1-u64max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | prog | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/bpf/trampoline.c cgroup_shim_alloc() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| PARAM_VALUE | 0 | prog->aux | 4096-ptr_max |
| BUF_SIZE | 0 | prog | 0-s32max |
| BUF_SIZE | 0 | prog | 0-s32max |
| DATA_SOURCE | 0 | prog | r bpf_prog_alloc |
| NOCHECK_CALL | |||
| LOCK2 | global &cgroup_mutex |
net/core/dev.c dev_xdp_install() -> bpf_prog_inc()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | prog | 4096-ptr_max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | prog | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | prog->expected_attach_type | 1 |
| DATA_SOURCE | 0 | prog | $5 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | global &rtnl_mutex |