Defined in 1 files as a function:
Referenced in 11 files:
- include/linux/bpf.h
- kernel/bpf/arraymap.c, line 381
- kernel/bpf/bpf_local_storage.c, line 562
- kernel/bpf/bpf_task_storage.c, line 101
- kernel/bpf/btf.c
- kernel/bpf/hashtab.c
- kernel/bpf/helpers.c
- kernel/bpf/local_storage.c, line 154
- kernel/bpf/syscall.c
- kernel/bpf/verifier.c
- net/core/bpf_sk_storage.c
Smatch caller information:
kernel/bpf/local_storage.c cgroup_storage_update_elem() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| HALF_LOCKED2 | rcu_read |
kernel/bpf/bpf_local_storage.c bpf_local_storage_update() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
kernel/bpf/bpf_local_storage.c bpf_obj_swap_uptrs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0,4096-u64max |
| PARAM_VALUE | 1 | type | 2048 |
| DATA_SOURCE | 0 | rec | $0 |
| RX_PATH |
kernel/bpf/arraymap.c array_map_update_elem() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| HALF_LOCKED2 | rcu_read |
kernel/bpf/arraymap.c bpf_map_has_internal_structs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 9218 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &sockmap_mutex |
net/core/bpf_sk_storage.c bpf_sk_storage_clone_elem() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &newsk->sk_lock.slock | ||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk |
net/core/bpf_sk_storage.c diag_get() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | &ilb->lock |
kernel/bpf/syscall.c bpf_map_check_op_flags() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
kernel/bpf/syscall.c bpf_obj_free_task_work() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 4096-ptr_max |
| PARAM_VALUE | 0 | rec->field_mask | 8192-u32max |
| PARAM_VALUE | 1 | type | 8192 |
| DATA_SOURCE | 0 | rec | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/syscall.c bpf_obj_free_timer() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 4096-ptr_max |
| PARAM_VALUE | 0 | rec->field_mask | 2-u32max |
| PARAM_VALUE | 1 | type | 2 |
| DATA_SOURCE | 0 | rec | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/syscall.c bpf_obj_free_workqueue() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 4096-ptr_max |
| PARAM_VALUE | 0 | rec->field_mask | 1024-u32max |
| PARAM_VALUE | 1 | type | 1024 |
| DATA_SOURCE | 0 | rec | $0 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/syscall.c bpf_obj_pin_uptrs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2048 |
| DATA_SOURCE | 0 | rec | $0 |
kernel/bpf/syscall.c bpf_obj_unpin_uptrs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0,4096-u64max |
| PARAM_VALUE | 1 | type | 2048 |
| DATA_SOURCE | 0 | rec | $0 |
kernel/bpf/syscall.c generic_map_delete_batch() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
kernel/bpf/syscall.c map_lookup_and_delete_elem() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
kernel/bpf/btf.c btf_parse_fields() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 4096-ptr_max |
| PARAM_VALUE | 1 | type | 32 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| DATA_SOURCE | 0 | rec | r _kzalloc_noprof |
kernel/bpf/btf.c btf_parse_fields() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 4096-ptr_max |
| PARAM_VALUE | 1 | type | 128 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| DATA_SOURCE | 0 | rec | r _kzalloc_noprof |
kernel/bpf/btf.c btf_parse_fields() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 4096-ptr_max |
| PARAM_VALUE | 1 | type | 64 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| DATA_SOURCE | 0 | rec | r _kzalloc_noprof |
kernel/bpf/btf.c btf_parse_fields() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 4096-ptr_max |
| PARAM_VALUE | 0 | rec->field_mask | 64-u32max |
| PARAM_VALUE | 1 | type | 256 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| BUF_SIZE | 0 | rec | 80-103079215088 |
| DATA_SOURCE | 0 | rec | r _kzalloc_noprof |
kernel/bpf/verifier.c btf_ld_kptr_type() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 1-u64max |
| PARAM_VALUE | 1 | type | 320 |
| DATA_SOURCE | 0 | rec | r kptr_pointee_btf_record |
kernel/bpf/verifier.c check_helper_call() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0 |
| PARAM_VALUE | 1 | type | 4097 |
| BUF_SIZE | 0 | rec | 0 |
kernel/bpf/verifier.c check_map_field_pointer() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2 |
| DATA_SOURCE | 1 | type | $3 |
kernel/bpf/verifier.c check_map_prog_compatibility() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 32 |
kernel/bpf/verifier.c check_map_prog_compatibility() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0,4096-u64max |
| PARAM_VALUE | 1 | type | 128 |
kernel/bpf/verifier.c check_map_prog_compatibility() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0,4096-u64max |
| PARAM_VALUE | 1 | type | 4097 |
kernel/bpf/verifier.c check_map_prog_compatibility() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0,4096-u64max |
| PARAM_VALUE | 1 | type | 1 |
kernel/bpf/verifier.c process_kptr_func() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 28 |
kernel/bpf/verifier.c process_spin_lock() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1,4096 |
| DATA_SOURCE | 0 | rec | r reg_btf_record |
| FUZZY_MAX | 1 | type | 4096 |
| BIT_INFO | 1 | type | 0x0,0x1001 |
| HARD_MAX | 1 | type | 4096 |
kernel/bpf/verifier.c refine_map_lookup_value() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 9218 |
kernel/bpf/verifier.c reg_may_point_to_spin_lock() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 4097 |
kernel/bpf/hashtab.c bpf_map_check_op_flags() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| HALF_LOCKED2 | rcu_read |
kernel/bpf/hashtab.c bpf_map_has_internal_structs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 9218 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &sockmap_mutex |
kernel/bpf/hashtab.c htab_map_update_elem() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| HALF_LOCKED2 | rcu_read |
kernel/bpf/hashtab.c rhtab_map_update_elem() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 1 |
| HALF_LOCKED2 | rcu_read |
kernel/bpf/helpers.c bpf_map_free_internal_structs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/helpers.c bpf_map_free_internal_structs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0,4096-u64max |
| PARAM_VALUE | 1 | type | 1024 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/helpers.c bpf_map_free_internal_structs() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | rec | 0,4096-u64max |
| PARAM_VALUE | 1 | type | 8192 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | rcu_read |
kernel/bpf/bpf_task_storage.c bpf_pid_task_storage_update_elem() -> btf_record_has_field()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | type | 2048 |
| HALF_LOCKED2 | rcu_read |