Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 3 files:
- drivers/char/tpm/tpm2-cmd.c, line 205
- drivers/char/tpm/tpm2-sessions.c, line 317
- security/keys/trusted-keys/trusted_tpm2.c
Smatch caller information:
drivers/char/tpm/tpm2-cmd.c tpm2_pcr_extend() -> tpm_buf_append_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->auth | 1-u64max |
| PARAM_VALUE | 0 | chip->dev.driver_data->state | 0-9223372036854775799 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready->wait.lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.done | 0 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | chip->tpm_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 1 | buf | 3454032230291607552 |
| PARAM_VALUE | 1 | buf->data | 0 |
| PARAM_VALUE | 3 | name | 0 |
| DATA_SOURCE | 0 | chip | $0 |
| DATA_SOURCE | 2 | handle | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | handle | 1-u32max |
| LOCK2 | 0 | &chip->ops_sem | |
| LOCK2 | 0 | &chip->tpm_mutex | |
| HALF_LOCKED2 | global &ima_extend_list_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
security/keys/trusted-keys/trusted_tpm2.c tpm2_load_cmd() -> tpm_buf_append_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->auth | 1-u64max |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex->wait_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | chip->dev.driver_data->state | 0-9223372036854775799 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready->wait.lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.done | 0 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->dev.kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops->cmd_ready | 0,4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops_sem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | chip->tpm_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 1 | buf | 4267813598517657600 |
| PARAM_VALUE | 1 | buf->data | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | buf->flags | 0 |
| PARAM_VALUE | 1 | buf->handles | 0 |
| PARAM_VALUE | 1 | buf->length | 10 |
| PARAM_VALUE | 2 | handle | 1-u32max |
| PARAM_VALUE | 3 | name | 0 |
| DATA_SOURCE | 0 | chip | $0 |
| USER_DATA | 2 | handle | 1-u32max |
| LOCK2 | 0 | &chip->ops_sem | |
| LOCK2 | 0 | &chip->tpm_mutex | |
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
security/keys/trusted-keys/trusted_tpm2.c tpm2_seal_trusted() -> tpm_buf_append_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->auth | 1-u64max |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count | 0-4294967295 |
| PARAM_VALUE | 0 | chip->dev.driver_data->state | 0-9223372036854775799 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready->wait.lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.done | 0 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->dev.kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->dev.kobj.release.work.entry.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops->cmd_ready | 0,4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops->go_idle | 0,4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops_sem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | chip->tpm_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | 0-s32max |
| PARAM_VALUE | 1 | buf | 2500137228463173632 |
| PARAM_VALUE | 1 | buf->data | 18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | buf->flags | 0 |
| PARAM_VALUE | 1 | buf->handles | 0 |
| PARAM_VALUE | 1 | buf->length | 10 |
| PARAM_VALUE | 2 | handle | 1-u32max |
| PARAM_VALUE | 3 | name | 0 |
| DATA_SOURCE | 0 | chip | $0 |
| USER_DATA | 2 | handle | 1-u32max |
| LOCK2 | 0 | &chip->ops_sem | |
| LOCK2 | 0 | &chip->tpm_mutex | |
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
security/keys/trusted-keys/trusted_tpm2.c tpm2_unseal_cmd() -> tpm_buf_append_name()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->auth | 1-u64max |
| PARAM_VALUE | 0 | chip->auth->aes_key.k->rndkeys | 0-255 |
| PARAM_VALUE | 0 | chip->auth->aes_key.nrounds | 10,12,14 |
| PARAM_VALUE | 0 | chip->auth->attrs | 1,33,65-66 |
| PARAM_VALUE | 0 | chip->auth->handle | 0-255 |
| PARAM_VALUE | 0 | chip->auth->ordinal | 0-4294967295 |
| PARAM_VALUE | 0 | chip->auth->passphrase_len | s32min-s32max |
| PARAM_VALUE | 0 | chip->auth->session | 1-s32max |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex->wait_lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | chip->dev.driver_data->locality_count_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | chip->dev.driver_data->state | 0-9223372036854775799 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready->wait.lock.owner | (-4611686018427387904)-4611686018427387903 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.done | 0 |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->dev.driver_data->tpm_ready.wait.lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->dev.kobj.release->timer->entry.pprev | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops->cmd_ready | 0,4096-ptr_max |
| PARAM_VALUE | 0 | chip->ops_sem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->list.next | 2212933610777083904 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->list.prev | 2212933610777083904 |
| PARAM_VALUE | 0 | chip->ops_sem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | chip->tpm_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | chip->tpm_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | *chip->auth->name_h | 0-4294967295 |
| PARAM_VALUE | 0 | *chip->auth->our_nonce | 0-255 |
| PARAM_VALUE | 0 | *chip->auth->passphrase | 0-255 |
| PARAM_VALUE | 0 | *chip->auth->scratch | 0-255 |
| PARAM_VALUE | 0 | *chip->auth->tpm_nonce | 0-255 |
| PARAM_VALUE | 1 | buf | 4765448974262747136 |
| PARAM_VALUE | 1 | buf->data | 0 |
| PARAM_VALUE | 3 | name | 0 |
| DATA_SOURCE | 0 | chip | $0 |
| DATA_SOURCE | 2 | handle | $3 |
| LOCK2 | 0 | &chip->ops_sem | |
| LOCK2 | 0 | &chip->tpm_mutex | |
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |