Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 24 files:
- certs/blacklist.c, line 173
- crypto/asymmetric_keys/asymmetric_type.c, line 85
- crypto/asymmetric_keys/x509_public_key.c, line 210
- drivers/bus/moxtet.c, line 477
- drivers/char/tpm/tpm-sysfs.c, line 319
- drivers/hwmon/pmbus/q54sj108a2.c
- drivers/hwmon/pmbus/ucd9000.c, line 433
- drivers/media/i2c/ccs/ccs-reg-access.c, line 246
- drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.c, line 204
- drivers/net/netdevsim/dev.c, line 160
- drivers/nvme/target/core.c, line 1846
- drivers/platform/cznic/turris-omnia-mcu-base.c, line 71
- drivers/s390/crypto/zcrypt_cex4.c
- drivers/target/iscsi/iscsi_target_auth.c
- drivers/target/target_core_fabric_lib.c
- drivers/ufs/core/ufshcd.c, line 8824
- fs/ecryptfs/ecryptfs_kernel.h, line 46
- fs/nfsd/nfs4recover.c, line 1736
- fs/overlayfs/namei.c, line 745
- kernel/bpf/core.c, line 584
- kernel/bpf/syscall.c
- lib/hexdump.c, line 96
- net/tipc/crypto.c, line 583
- security/integrity/evm/evm_crypto.c, line 203
Smatch caller information:
drivers/ufs/core/ufshcd.c ufshcd_create_device_id() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 16,4096-ptr_max |
| PARAM_VALUE | 1 | src | 0,4096-ptr_max |
| PARAM_VALUE | 1 | *src | 0-255 |
| PARAM_VALUE | 2 | count | 0-1999999 |
| BUF_SIZE | 0 | dst | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 0 | dst | 0-s32max,18446744071562067968-u64max |
| DATA_SOURCE | 0 | dst | r _kzalloc_noprof |
| RX_PATH | |||
| NOCHECK_CALL | |||
| LOCK2 | &hba->host_sem | ||
| TYPE_LOCK | (struct ufs_hba)->host_sem |
security/integrity/evm/evm_crypto.c dump_security_xattr_l() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 16,4096-ptr_max |
| PARAM_VALUE | 2 | count | 64-1999999 |
| CAPPED_DATA | 2 | count | 1 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 1 | src | $1 |
| DATA_SOURCE | 2 | count | $2 |
| UNITS | 2 | count | unit_byte |
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | &inode->i_rwsem |
fs/ecryptfs/keystore.c ecryptfs_to_hex() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 0 | dst | 17 |
| BUF_SIZE | 0 | dst | 17 |
| BUF_SIZE | 1 | src | (-1),8 |
| DATA_SOURCE | 0 | dst | $0 |
| DATA_SOURCE | 1 | src | $1 |
| DATA_SOURCE | 2 | count | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &crypt_stat->cs_mutex |
fs/ecryptfs/debug.c ecryptfs_to_hex() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 5550214803391299584 |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 0 | dst | 17 |
| BUF_SIZE | 0 | dst | 17 |
| BUF_SIZE | 1 | src | 8 |
| DATA_SOURCE | 0 | dst | $0 |
| DATA_SOURCE | 1 | src | $1 |
| DATA_SOURCE | 2 | count | $2 |
kernel/bpf/syscall.c bpf_link_show_fdinfo() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 7521116550771200000 |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 0 | dst | 17 |
| BUF_SIZE | 1 | src | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| LOCK2 | rcu_read | ||
| TYPE_LOCK | (struct seq_file)->lock |
kernel/bpf/syscall.c bpf_prog_show_fdinfo() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 6603751581080690688 |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 0 | dst | 17 |
| BUF_SIZE | 1 | src | 8 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &m->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
drivers/platform/cznic/turris-omnia-mcu-base.c omnia_get_version_hash() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | src | 8540070355482222592 |
| PARAM_VALUE | 2 | count | 20 |
| BUF_SIZE | 0 | dst | 41 |
| BUF_SIZE | 1 | src | 20 |
| DATA_SOURCE | 0 | dst | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &of->mutex |
drivers/bus/moxtet.c input_read() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 8010809566866112512 |
| PARAM_VALUE | 1 | src | 2822196100361166848 |
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 0 | dst | 21 |
| BUF_SIZE | 1 | src | 10 |
| NOCHECK_CALL |
drivers/nvme/target/core.c nvmet_subsys_alloc() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | src | 3434107658600988672 |
| PARAM_VALUE | 2 | count | 10 |
| BUF_SIZE | 0 | dst | 20 |
| BUF_SIZE | 1 | src | 10 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| HALF_LOCKED2 | &subsys->su_mutex |
drivers/hwmon/pmbus/ucd9000.c ucd9000_debugfs_read_mfr_status() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 3349831121587027968 |
| PARAM_VALUE | 1 | src | 3851880559882268672 |
| PARAM_VALUE | 2 | count | 0-32 |
| BUF_SIZE | 0 | dst | 66 |
| BUF_SIZE | 1 | src | 32 |
| CAPPED_DATA | 2 | count | 1 |
drivers/target/iscsi/iscsi_target_auth.c chap_gen_challenge() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 16,4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-1999999,u32max |
| BUF_SIZE | 0 | dst | 0-u32max |
| BUF_SIZE | 0 | dst | 0-u32max |
| BUF_SIZE | 1 | src | 32 |
| DATA_SOURCE | 0 | dst | r _kzalloc_noprof |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/target/iscsi/iscsi_target_auth.c chap_server_compute_hash() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 16,4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-1999999 |
| BUF_SIZE | 0 | dst | 2-8000002 |
| BUF_SIZE | 0 | dst | 2-8000002 |
| BUF_SIZE | 1 | src | 0-1999999 |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 0 | dst | r _kzalloc_noprof |
| DATA_SOURCE | 1 | src | r _kzalloc_noprof |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
drivers/target/iscsi/iscsi_target_auth.c chap_server_compute_hash() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 16,4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-1999999 |
| BUF_SIZE | 0 | dst | 2-8000002 |
| BUF_SIZE | 0 | dst | 2-8000002 |
| BUF_SIZE | 1 | src | 0-u32max |
| CAPPED_DATA | 2 | count | 1 |
| DATA_SOURCE | 0 | dst | r _kzalloc_noprof |
| DATA_SOURCE | 1 | src | r _kzalloc_noprof |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
certs/blacklist.c get_raw_hash() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4097-18446744073709547521 |
| PARAM_VALUE | 2 | count | 0-1999997,9223372036854775805-9223372036854775807 |
| BUF_SIZE | 1 | src | (-1),32 |
| DATA_SOURCE | 1 | src | $0 |
| DATA_SOURCE | 2 | count | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
drivers/target/target_core_fabric_lib.c sas_parse_pr_out_transport_id() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 1170156516362416128 |
| PARAM_VALUE | 1 | *src | 0-255 |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 0 | dst | 17 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->se_port_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_fabric_lib.c sbp_parse_pr_out_transport_id() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 3178085099125506048 |
| PARAM_VALUE | 1 | *src | 0-255 |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 0 | dst | 17 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->se_port_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/target/target_core_fabric_lib.c srp_parse_pr_out_transport_id() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 6799113007704907776 |
| PARAM_VALUE | 1 | *src | 0-255 |
| PARAM_VALUE | 2 | count | 16 |
| BUF_SIZE | 0 | dst | 33 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->se_port_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/net/netdevsim/dev.c nsim_dev_trap_fa_cookie_read() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 16,4096-ptr_max |
| BUF_SIZE | 0 | dst | 0-u32max |
| BUF_SIZE | 0 | dst | 0-u32max |
| DATA_SOURCE | 0 | dst | r _kmalloc_noprof |
| PREEMPT_ADD | <- disables preempt | ||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &nsim_dev->fa_cookie_lock | ||
| TYPE_LOCK | (struct nsim_dev)->fa_cookie_lock |
drivers/hwmon/pmbus/q54sj108a2.c q54sj108a2_debugfs_read() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-s32max |
| BUF_SIZE | 0 | dst | 66 |
| BUF_SIZE | 1 | src | 34 |
| DATA_SOURCE | 2 | count | r i2c_smbus_read_block_data |
| TERMINATED | 0 | dst | 1 |
| TERMINATED | 1 | src | 1 |
drivers/hwmon/pmbus/q54sj108a2.c q54sj108a2_debugfs_read() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4096-ptr_max |
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-s32max |
| BUF_SIZE | 0 | dst | 66 |
| BUF_SIZE | 1 | src | 34 |
| DATA_SOURCE | 2 | count | r i2c_smbus_read_block_data |
| TERMINATED | 0 | dst | 1 |
| TERMINATED | 1 | src | 1 |
crypto/asymmetric_keys/x509_public_key.c x509_key_preparse() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4098-18446744073709547521 |
| PARAM_VALUE | 2 | count | 0-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &asymmetric_key_parsers_sem | ||
| HALF_LOCKED2 | global &key_types_sem |
drivers/media/i2c/ccs/ccs-reg-access.c ccs_write_data_regs() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 1-32 |
| BUF_SIZE | 0 | dst | 65 |
| CAPPED_DATA | 2 | count | 1 |
| TERMINATED | 0 | dst | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | src | unit_byte |
| UNITS | 2 | count | unit_byte |
| HALF_LOCKED2 | _T->lock |
drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_dbg.c dr_dump_hex_print() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 48,64,127 |
| BUF_SIZE | 0 | dst | 256 |
| BUF_SIZE | 1 | src | (-1),64 |
| DATA_SOURCE | 0 | dst | $0 |
| DATA_SOURCE | 1 | src | $1 |
| DATA_SOURCE | 2 | count | $2 [m] |
| FUZZY_MAX | 2 | count | 127 |
| HARD_MAX | 2 | count | 127 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | count | unit_byte |
| LOCK2 | &dmn->dump_info.dbg_mutex | ||
| LOCK2 | &dmn->info.rx.mutex | ||
| LOCK2 | &dmn->info.tx.mutex | ||
| LOCK2 | &file->lock | ||
| TYPE_LOCK | (struct mlx5dr_dbg_dump_info)->dbg_mutex | ||
| TYPE_LOCK | (struct mlx5dr_domain_rx_tx)->mutex | ||
| TYPE_LOCK | (struct seq_file)->lock |
net/tipc/crypto.c tipc_aead_init() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | src | 4096-ptr_max |
| PARAM_VALUE | 1 | *src | 0-255 |
| PARAM_VALUE | 2 | count | 5 |
| BUF_SIZE | 0 | dst | 11 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | src | unit_byte |
| HALF_LOCKED2 | global &rtnl_mutex |
fs/overlayfs/namei.c ovl_get_index_name_fh() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 16,4096-ptr_max |
| BUF_SIZE | 0 | dst | 2 |
| BUF_SIZE | 0 | dst | 2 |
| DATA_SOURCE | 0 | dst | r _kmalloc_array_noprof |
| NOSPEC | 2 | count | |
| NOSPEC | 2 | count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | count | 0-255[c] |
| UNITS | 2 | count | unit_byte |
| USER_PTR | 1 | src |
crypto/asymmetric_keys/asymmetric_type.c find_asymmetric_key() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4099-18446744073709547521 |
| PARAM_VALUE | 2 | count | 0-u16max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | count | unit_byte |
| HALF_LOCKED2 | &dest_keyring->sem | ||
| HALF_LOCKED2 | &keyring->sem |
drivers/char/tpm/tpm-sysfs.c null_name_show() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 1-u64max |
| PARAM_VALUE | 2 | count | 34 |
| BUF_SIZE | 1 | src | 34 |
| CAPPED_DATA | 0 | dst | 1 |
| DATA_SOURCE | 0 | dst | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/nfsd/nfs4recover.c bin_to_hex_dup() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 16,4096-ptr_max |
| PARAM_VALUE | 2 | count | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 0 | dst | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 0 | dst | 0-s32max,18446744071562067968-u64max |
| BUF_SIZE | 1 | src | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | dst | r _kzalloc_noprof |
| DATA_SOURCE | 1 | src | $0 |
| DATA_SOURCE | 2 | count | $1 |
| NOCHECK_CALL | |||
| UNITS | 1 | src | unit_byte |
| UNITS | 2 | count | unit_byte |
kernel/bpf/core.c bpf_prog_ksym_set_name() -> bin2hex()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dst | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 8 |
| BUF_SIZE | 1 | src | 8 |
| STR_LEN | 0 | dst | (-1) |
| STR_LEN | 0 | dst | (-1) |
| UNITS | 2 | count | unit_byte |