Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 6 files:
- drivers/char/tpm/tpm-buf.c, line 97
- drivers/char/tpm/tpm1-cmd.c
- drivers/char/tpm/tpm2-cmd.c
- drivers/char/tpm/tpm2-sessions.c
- drivers/char/tpm/tpm2-space.c, line 154
- security/keys/trusted-keys/trusted_tpm2.c
Smatch caller information:
drivers/char/tpm/tpm2-sessions.c tpm2_read_public() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8814368143488847872 |
| 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_read_public() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 8814368143488847872 |
| 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 tpm_buf_append_auth() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544,2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_append_hmac_session() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544,2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_append_hmac_session() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544,2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_append_name() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| PARAM_VALUE | 0 | buf->length | 10 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_append_name() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| PARAM_VALUE | 0 | buf->length | 10 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_append_salt() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3238085801097465856 |
| DATA_SOURCE | 0 | buf | $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-sessions.c tpm_buf_append_salt() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 3238085801097465856 |
| DATA_SOURCE | 0 | buf | $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-sessions.c tpm_buf_check_hmac_response() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544,2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_check_hmac_response() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544,2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_fill_hmac_session() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544,2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| DATA_SOURCE | 0 | buf | $1 |
| 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 tpm_buf_fill_hmac_session() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544,2500137228463173632,3454032230291607552,4267813598517657600,4765448974262747136 |
| DATA_SOURCE | 0 | buf | $1 |
| 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_get_random() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 6547586339947524096 |
| 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_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 5415216281497542656 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &of->mutex |
drivers/char/tpm/tpm2-cmd.c tpm2_get_random() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544 |
| 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_random() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1289353834079596544 |
| 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 |
security/keys/trusted-keys/trusted_tpm2.c tpm2_unseal_cmd() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4765448974262747136 |
| 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_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 4765448974262747136 |
| 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-space.c tpm2_save_context() -> tpm_buf_length()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 2830270277408600064 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->ops_sem | ||
| HALF_LOCKED2 | &chip->tpm_mutex | ||
| HALF_LOCKED2 | &priv->buffer_mutex |