Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/char/tpm/tpm-interface.c, line 339 (as a function)
- include/linux/tpm.h, line 496 (as a function)
Referenced in 3 files:
- drivers/char/tpm/tpm-interface.c, line 359
- drivers/char/tpm/tpm-sysfs.c, line 386
- security/integrity/ima/ima_crypto.c, line 422
Smatch caller information:
drivers/char/tpm/tpm-sysfs.c pcr_value_show() -> tpm_pcr_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->allocated_banks | 4096-ptr_max |
| PARAM_VALUE | 0 | chip->nr_allocated_banks | 0-s32max |
| PARAM_VALUE | 1 | pcr_idx | 0-23 |
| PARAM_VALUE | 2 | digest | 6697441726350983168 |
| PARAM_VALUE | 2 | digest->alg_id | 4,11-13,18 |
| CAPPED_DATA | 0 | chip->nr_allocated_banks | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
security/integrity/ima/ima_crypto.c ima_pcrread() -> tpm_pcr_read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | chip | 1-u64max |
| PARAM_VALUE | 1 | pcr_idx | 0-9 |
| PARAM_VALUE | 2 | digest | 7862892439689994240 |
| DATA_SOURCE | 1 | pcr_idx | $0 |
| DATA_SOURCE | 2 | digest | $1 |
| FUZZY_MAX | 1 | pcr_idx | 9 |
| HARD_MAX | 1 | pcr_idx | 9 |
| RX_PATH | |||
| TASK_NOT_RUNNING |