Defined in 1 files as a prototype:
Defined in 1 files as a macro:
Defined in 1 files as a function:
Referenced in 4 files:
- kernel/bpf/cpumap.c
- kernel/bpf/devmap.c, line 909
- kernel/bpf/local_storage.c
- net/core/sock_map.c, line 980
Smatch caller information:
kernel/bpf/local_storage.c bpf_cgroup_storage_alloc() -> bpf_map_kmalloc_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 1 | size | 104 |
| PARAM_VALUE | 2 | flags | 1052096 |
| UNITS | 1 | size | unit_byte |
| HALF_LOCKED2 | global &cgroup_mutex |
kernel/bpf/local_storage.c bpf_cgroup_storage_alloc() -> bpf_map_kmalloc_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg | 0,4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg->css.refcnt.percpu_count_ptr | 1-u64max |
| PARAM_VALUE | 2 | flags | 1052096 |
| DATA_SOURCE | 1 | size | r bpf_cgroup_storage_calculate_size |
| HALF_LOCKED2 | global &cgroup_mutex |
kernel/bpf/local_storage.c cgroup_storage_update_elem() -> bpf_map_kmalloc_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | map->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | map->ops->map_update_batch | 0,7911141981172039680 |
| PARAM_VALUE | 1 | size | 16-4294967311 |
| PARAM_VALUE | 2 | flags | 10496 |
| BUF_SIZE | 0 | map | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | map | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | map | $0 |
| NO_OVERFLOW_SIMPLE | 0 | map->value_size | |
| HALF_LOCKED2 | rcu_read |
kernel/bpf/devmap.c __dev_map_alloc_node() -> bpf_map_kmalloc_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 1 | size | 64 |
| PARAM_VALUE | 2 | flags | 10240 |
| UNITS | 1 | size | unit_byte |
| HALF_LOCKED2 | &dtab->index_lock | ||
| HALF_LOCKED2 | flags | ||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/cpumap.c __cpu_map_entry_alloc() -> bpf_map_kmalloc_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | map->ops->map_update_batch | 0,7911141981172039680 |
| PARAM_VALUE | 1 | size | 472 |
| PARAM_VALUE | 2 | flags | 11712 |
| DATA_SOURCE | 0 | map | $0 |
| DATA_SOURCE | 3 | node | r __cpu_to_node |
| UNITS | 1 | size | unit_byte |
kernel/bpf/cpumap.c __cpu_map_entry_alloc() -> bpf_map_kmalloc_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg | 0,4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg | 4096-ptr_max |
| PARAM_VALUE | 0 | map->objcg->memcg->css.refcnt.percpu_count_ptr | 1-u64max |
| PARAM_VALUE | 0 | map->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | map->ops->map_update_batch | 0,7911141981172039680 |
| PARAM_VALUE | 1 | size | 320 |
| PARAM_VALUE | 2 | flags | 11456 |
| DATA_SOURCE | 0 | map | $0 |
| DATA_SOURCE | 3 | node | r __cpu_to_node |
| UNITS | 1 | size | unit_byte |
net/core/sock_map.c sock_hash_alloc_elem() -> bpf_map_kmalloc_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | map | 4096-ptr_max |
| PARAM_VALUE | 2 | flags | 10272 |
| UNITS | 1 | size | unit_byte |
| LOCK2 | &bucket->lock | ||
| LOCK2 | bh | ||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| TYPE_LOCK | (struct bpf_shtab_bucket)->lock |