Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

kernel/bpf/syscall.c __bpf_prog_put_noref() -> btf_put()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/bpf/syscall.c __bpf_prog_put_noref() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 1-u64max
BUF_SIZE 0 btf s32min-s32max
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/bpf/syscall.c bpf_map_free() -> btf_put()

Type Parameter Key Value
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
NOCHECK_CALL

kernel/bpf/syscall.c bpf_prog_load() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->kernel_btf 0
BUF_SIZE 0 btf s32min-(-2),1-s32max
BUF_SIZE 0 btf s32min-(-2),1-s32max
DATA_SOURCE 0 btf r btf_get_by_fd
NOCHECK_CALL

kernel/bpf/syscall.c bpf_prog_load() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->refcnt.refs.counter s32min-s32max
BUF_SIZE 0 btf s32min-(-2),0-s32max
BUF_SIZE 0 btf s32min-(-2),0-s32max
NOCHECK_CALL

kernel/bpf/syscall.c bpf_prog_load() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->refcnt.refs.counter s32min-s32max
BUF_SIZE 0 btf s32min-(-2),0-s32max
BUF_SIZE 0 btf s32min-(-2),0-s32max
NOCHECK_CALL

kernel/bpf/syscall.c bpf_prog_load() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-(-2),0-s32max
BUF_SIZE 0 btf s32min-(-2),0-s32max
NOCHECK_CALL

kernel/bpf/syscall.c btf_record_free() -> btf_put()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/bpf/syscall.c map_create_alloc() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->kernel_btf 1
BUF_SIZE 0 btf s32min-(-2),1-s32max
BUF_SIZE 0 btf s32min-(-2),1-s32max
DATA_SOURCE 0 btf r btf_get_by_fd
NOCHECK_CALL

kernel/bpf/btf.c ____bpf_btf_find_by_name_kind() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->kernel_btf 1
NOCHECK_CALL

kernel/bpf/btf.c ____bpf_btf_find_by_name_kind() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
NOCHECK_CALL

kernel/bpf/btf.c __register_bpf_struct_ops() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf r btf_get_module_btf
NOCHECK_CALL

kernel/bpf/btf.c __register_btf_kfunc_id_set() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf r btf_get_module_btf
NOCHECK_CALL

kernel/bpf/btf.c bpf_core_find_cands() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf r idr_get_next
NOCHECK_CALL
LOCK2 global &cand_cache_mutex

kernel/bpf/btf.c bpf_find_btf_id() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf r idr_get_next
NOCHECK_CALL

kernel/bpf/btf.c btf_get_fd_by_id() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->refcnt.refs.counter (-1073741824),0-s32max
DATA_SOURCE 0 btf r idr_find
NOCHECK_CALL

kernel/bpf/btf.c btf_new_fd() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->id 1-s32max
PARAM_VALUE 0 btf->refcnt.refs.counter 1
PARAM_VALUE 0 btf->struct_meta_tab 0,4096-ptr_max
BUF_SIZE 0 btf 248
DATA_SOURCE 0 btf r btf_parse
NOCHECK_CALL

kernel/bpf/btf.c btf_parse_kptr() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
NOCHECK_CALL

kernel/bpf/btf.c btf_release() -> btf_put()

Type Parameter Key Value
BUF_SIZE 0 btf (-1),26
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

kernel/bpf/btf.c register_btf_id_dtor_kfuncs() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->dtor_kfunc_tab 0,4096-ptr_max
BUF_SIZE 0 btf->dtor_kfunc_tab 4-2044,u64max
DATA_SOURCE 0 btf r btf_get_module_btf
NOCHECK_CALL

kernel/bpf/map_in_map.c bpf_map_meta_free() -> btf_put()

Type Parameter Key Value
NOCHECK_CALL

kernel/bpf/check_btf.c bpf_prepare_btf_info() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->kernel_btf 1
BUF_SIZE 0 btf s32min-(-2),1-s32max
BUF_SIZE 0 btf s32min-(-2),1-s32max
DATA_SOURCE 0 btf r btf_get_by_fd
NOCHECK_CALL

kernel/trace/trace_events.c event_btf_ids_read() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
DATA_SOURCE 0 btf r btf_get_module_btf
NOCHECK_CALL
LOCK2 _T->lock

kernel/bpf/verifier.c __add_used_btf() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
CAPPED_DATA 0 btf 1
DATA_SOURCE 0 btf $1
NOCHECK_CALL

kernel/bpf/verifier.c __find_kfunc_desc_btf() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
DATA_SOURCE 0 btf r fd_array_get_btf
NOCHECK_CALL

kernel/bpf/verifier.c __find_kfunc_desc_btf() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->kernel_btf 1
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
DATA_SOURCE 0 btf r fd_array_get_btf
NOCHECK_CALL

kernel/bpf/verifier.c bpf_free_kfunc_btf_tab() -> btf_put()

Type Parameter Key Value
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

kernel/bpf/verifier.c check_pseudo_btf_id() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-(-1),1-s32max
BUF_SIZE 0 btf s32min-(-1),1-s32max
CAPPED_DATA 0 btf->start_id 1
NOCHECK_CALL

kernel/bpf/bpf_struct_ops.c bpf_struct_ops_map_alloc() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
BUF_SIZE 0 btf s32min-(-2),1-s32max
BUF_SIZE 0 btf s32min-(-2),1-s32max
DATA_SOURCE 0 btf r btf_get_by_fd
NOCHECK_CALL

kernel/bpf/bpf_struct_ops.c bpf_struct_ops_map_alloc() -> btf_put()

Type Parameter Key Value
PARAM_VALUE 0 btf 4096-ptr_max
PARAM_VALUE 0 btf->kernel_btf 1
BUF_SIZE 0 btf s32min-(-2),1-s32max
BUF_SIZE 0 btf s32min-(-2),1-s32max
DATA_SOURCE 0 btf r btf_get_by_fd
NOCHECK_CALL

kernel/bpf/core.c __bpf_free_used_btfs() -> btf_put()

Type Parameter Key Value
NOCHECK_CALL