Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 6 files:

Smatch caller information:

security/security.c security_fs_context_parse_param() -> static_key_count()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fc->uapi_mutex

security/security.c security_getprocattr() -> static_key_count()

Type Parameter Key Value

security/security.c security_getselfattr() -> static_key_count()

Type Parameter Key Value

security/security.c security_inode_init_security() -> static_key_count()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &f->sem
HALF_LOCKED2 &inode->i_rwsem
HALF_LOCKED2 &sbi->vh_mutex

security/security.c security_lsmprop_to_secctx() -> static_key_count()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &audit_cmd_mutex.lock

security/security.c security_sb_set_mnt_opts() -> static_key_count()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fc->uapi_mutex

security/security.c security_setprocattr() -> static_key_count()

Type Parameter Key Value

security/security.c security_setselfattr() -> static_key_count()

Type Parameter Key Value

security/security.c security_task_prctl() -> static_key_count()

Type Parameter Key Value

security/security.c security_vm_enough_memory_mm() -> static_key_count()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &mm->mmap_lock
HALF_LOCKED2 &vma->anon_vma->root->rwsem
HALF_LOCKED2 global &swap_lock

security/security.c security_xfrm_state_pol_flow_match() -> static_key_count()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
LOCK2 rcu_read
HALF_LOCKED2 bh

kernel/tracepoint.c tracepoint_add_func() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &tracepoints_mutex

kernel/tracepoint.c tracepoint_add_func() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &tracepoints_mutex

kernel/tracepoint.c tracepoint_remove_func() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &tracepoints_mutex
HALF_LOCKED2 &q->debugfs_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &blk_probe_mutex
HALF_LOCKED2 global &event_mutex
HALF_LOCKED2 global &sched_register_mutex

kernel/jump_label.c jump_label_test() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4297720023288242176

kernel/jump_label.c jump_label_test() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 5284822797605924864

kernel/jump_label.c jump_label_test() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4297720023288242176

kernel/jump_label.c jump_label_test() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 5284822797605924864

kernel/jump_label.c jump_label_type() -> static_key_count()

Type Parameter Key Value
DATA_SOURCE 0 key r jump_entry_key
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &jump_label_mutex
HALF_LOCKED2 irq

drivers/net/ethernet/freescale/enetc/enetc_pci_mdio.c enetc_emdio_disable_err050089() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 6809459178816409600
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pdev->dev.mutex

kernel/trace/trace_events_user.c update_enable_bit_for() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &event_mutex

kernel/trace/trace_events_user.c user_events_write_core() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING

kernel/sysctl.c proc_do_static_key() -> static_key_count()

Type Parameter Key Value
BUF_SIZE 0 key 4-5,7-8,12,16,20,24,28,32,36-37,40,44,46,48,52,63-65,74,132,768,2048
BUF_SIZE 0 key 4-5,7-8,12,16,20,24,28,32,36-37,40,44,46,48,52,63-65,74,132,768,2048
RX_PATH
TASK_NOT_RUNNING
LOCK2 &static_key_mutex
HALF_LOCKED2 &pool->lock

drivers/md/dm-zone.c dm_set_zones_restrictions() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 5998138701090603008
HALF_LOCKED2 &md->suspend_lock

mm/page_reporting.c page_reporting_register() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 8117942838981681152
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &page_reporting_mutex

lib/test_static_key_base.c invert_key() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 1063305163060277248,1494695464997916672,3493852603411722240,8761685909989715968
DATA_SOURCE 0 key $0

drivers/net/ethernet/intel/ice/ice_main.c ice_destroy_xdp_rings() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 8828393934455947264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vsi->xdp_state_lock

drivers/net/ethernet/intel/ice/ice_main.c ice_prepare_xdp_rings() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 8828393934455947264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vsi->xdp_state_lock

drivers/net/ethernet/intel/ice/ice_main.c ice_xdp_ring_from_qid() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 8828393934455947264
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &vsi->xdp_state_lock

lib/test_static_keys.c invert_key() -> static_key_count()

Type Parameter Key Value
DATA_SOURCE 0 key $0

lib/test_static_keys.c verify_keys() -> static_key_count()

Type Parameter Key Value

lib/test_static_keys.c verify_keys() -> static_key_count()

Type Parameter Key Value

kernel/bpf/syscall.c bpf_enable_runtime_stats() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 1919471653690982400
LOCK2 global &bpf_stats_enabled_mutex

kernel/trace/trace_events_hist.c trace_synth() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

lib/once.c once_deferred() -> static_key_count()

Type Parameter Key Value
HALF_LOCKED2 &pool->lock

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_determine_xdp_q_idx() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 5134154488592199680
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 rcu_read

kernel/cgroup/cpuset.c nr_cpusets() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 7623684723379707904
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &cpuset_mutex
HALF_LOCKED2 global &cpuset_top_mutex

kernel/sched/build_utility.c clear_sched_clock_stable() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 394417295042871296
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &watchdog_lock
HALF_LOCKED2 irq

kernel/cgroup/cgroup.c cgroup_ssid_enabled() -> static_key_count()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &m->lock
HALF_LOCKED2 &of->mutex

lib/crc/crc32-main.c crc32_optimizations_arch() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4333058920839696384

lib/crc/crc32-main.c crc32_optimizations_arch() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 457977682025508864

drivers/net/ethernet/intel/libeth/xdp.c __libeth_xdpsq_get() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 1922276841013084160
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/intel/libeth/xdp.c __libeth_xdpsq_put() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 1922276841013084160
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &rtnl_mutex

drivers/net/ethernet/intel/ixgbe/ixgbe_xsk.c ixgbe_determine_xdp_q_idx() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 5134154488592199680
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 bh
HALF_LOCKED2 rcu_read

drivers/md/dm-table.c dm_table_add_target() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 4864967297515540480
HALF_LOCKED2 &md->type_lock

drivers/md/dm-stats.c dm_stats_create() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 8695651406508441600
LOCK2 &md->suspend_lock
LOCK2 &stats->mutex
TYPE_LOCK (struct dm_stats)->mutex
TYPE_LOCK (struct mapped_device)->suspend_lock

arch/x86/kernel/cpu/bugs.c ibpb_state() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 7173092023950950400
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

arch/x86/kernel/cpu/bugs.c ibpb_state() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 8400199729950224384
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

arch/x86/kernel/cpu/bugs.c spectre_v2_user_apply_mitigation() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 7173092023950950400

arch/x86/kernel/cpu/bugs.c stibp_state() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 1832466898171625472
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

kernel/cgroup/cpuset-v1.c nr_cpusets() -> static_key_count()

Type Parameter Key Value
PARAM_VALUE 0 key 7623684723379707904
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 global &cpuset_mutex
HALF_LOCKED2 global &cpuset_top_mutex