Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- drivers/char/tpm/tpm-buf.c, line 27
- drivers/char/tpm/tpm-sysfs.c, line 47
- drivers/char/tpm/tpm1-cmd.c
- drivers/char/tpm/tpm2-cmd.c
- drivers/char/tpm/tpm2-sessions.c
- drivers/char/tpm/tpm2-space.c
- drivers/char/tpm/tpm_vtpm_proxy.c
- security/keys/trusted-keys/trusted_tpm1.c
- security/keys/trusted-keys/trusted_tpm2.c
Smatch caller information:
drivers/char/tpm/tpm2-sessions.c tpm2_create_primary() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8979946474034294784 |
| PARAM_VALUE | 1 | tag | 32770 |
| PARAM_VALUE | 2 | ordinal | 305 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/char/tpm/tpm2-sessions.c tpm2_read_public() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8814368143488847872 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 371 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm2-sessions.c tpm2_start_auth_session() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3238085801097465856 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 374 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm_vtpm_proxy.c vtpm_proxy_request_locality() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3379137064221065216 |
| PARAM_VALUE | 1 | tag | 32770 |
| PARAM_VALUE | 2 | ordinal | 536875008 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &dev->mutex |
drivers/char/tpm/tpm_vtpm_proxy.c vtpm_proxy_request_locality() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3379137064221065216 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 536875008 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &dev->mutex |
drivers/char/tpm/tpm1-cmd.c tpm1_continue_selftest() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3986272475522613248 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 83 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/char/tpm/tpm1-cmd.c tpm1_get_random() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 6547586339947524096 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 70 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm1-cmd.c tpm1_getcap() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 6279000267516870656 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 101 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/char/tpm/tpm1-cmd.c tpm1_pcr_extend() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8563504111148785664 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 20 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm1-cmd.c tpm1_pcr_read() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 5415216281497542656 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 21 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/char/tpm/tpm1-cmd.c tpm1_pm_suspend() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3132235788938567680 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 152 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &fsm->lock | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm1-cmd.c tpm1_startup() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 7482454454816579584 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 153 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/keys/trusted-keys/trusted_tpm1.c key_seal() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 6258139523740004352 |
| PARAM_VALUE | 1 | tag | 0 |
| PARAM_VALUE | 2 | ordinal | 0 |
security/keys/trusted-keys/trusted_tpm1.c key_unseal() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8256672715506819072 |
| PARAM_VALUE | 1 | tag | 0 |
| PARAM_VALUE | 2 | ordinal | 0 |
drivers/char/tpm/tpm2-cmd.c tpm2_do_selftest() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 6267099816396873728 |
| PARAM_VALUE | 0 | buf->data | 0,18379471554275704832,18446612682070032384 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 323 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/char/tpm/tpm2-cmd.c tpm2_flush_context() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 2776815064932691968 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 357 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &priv->buffer_mutex |
drivers/char/tpm/tpm2-cmd.c tpm2_get_cc_attrs_tbl() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3023699687611850752 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 378 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/char/tpm/tpm2-cmd.c tpm2_get_pcr_allocation() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4544113194563657728 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 378 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/char/tpm/tpm2-cmd.c tpm2_get_random() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544 |
| PARAM_VALUE | 1 | tag | 0 |
| PARAM_VALUE | 2 | ordinal | 0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm2-cmd.c tpm2_get_tpm_pt() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3123880985322483712 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 378 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/char/tpm/tpm2-cmd.c tpm2_pcr_extend() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3454032230291607552 |
| PARAM_VALUE | 1 | tag | 32770 |
| PARAM_VALUE | 2 | ordinal | 386 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | global &ima_extend_list_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm2-cmd.c tpm2_pcr_read() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8607141726755409920 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 382 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex |
drivers/char/tpm/tpm2-cmd.c tpm2_probe() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 5202873187926589440 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 378 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/char/tpm/tpm2-cmd.c tpm2_shutdown() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 146936894276833280 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 325 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem |
drivers/char/tpm/tpm2-cmd.c tpm2_startup() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 6224177166544572416 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 324 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
security/keys/trusted-keys/trusted_tpm2.c tpm2_load_cmd() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4267813598517657600 |
| PARAM_VALUE | 1 | tag | 32770 |
| PARAM_VALUE | 2 | ordinal | 343 |
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &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_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 2500137228463173632 |
| PARAM_VALUE | 1 | tag | 32770 |
| PARAM_VALUE | 2 | ordinal | 339 |
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &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_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4765448974262747136 |
| PARAM_VALUE | 1 | tag | 32770 |
| PARAM_VALUE | 2 | ordinal | 350 |
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm-sysfs.c pubek_show() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1148426160039636992 |
| PARAM_VALUE | 1 | tag | 193 |
| PARAM_VALUE | 2 | ordinal | 124 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm2-space.c tpm2_load_context() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 5379678439361470464 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 353 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &chip->ops_sem | ||
| LOCK2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &priv->buffer_mutex | ||
| TYPE_LOCK | (struct tpm_chip)->ops_sem | ||
| TYPE_LOCK | (struct tpm_chip)->tpm_mutex |
drivers/char/tpm/tpm2-space.c tpm2_save_context() -> tpm_buf_init()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 2830270277408600064 |
| PARAM_VALUE | 1 | tag | 32769 |
| PARAM_VALUE | 2 | ordinal | 354 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &priv->buffer_mutex |