Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
security/integrity/ima/ima_main.c process_buffer_measurement() -> ima_calc_buffer_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | hash | 4096-ptr_max |
| PARAM_VALUE | 2 | hash->algo | 0-22 |
| BUF_SIZE | 0 | buf | (-1),1-1000000001,2147479553 |
| BUF_SIZE | 0 | buf | (-1),1-1000000001,2147479553 |
| DATA_SOURCE | 0 | buf | $2 |
| DATA_SOURCE | 1 | len | $3 |
| STR_LEN | 0 | buf | (-1),7,9-11,13 |
| STR_LEN | 0 | buf | (-1),7,9-11,13 |
| BIT_INFO | 2 | hash | 0x4bef66d7408e8000,0x4bef66d7408e8000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | len | 1-2147483646[c] |
| UNITS | 1 | len | unit_byte |
| USER_PTR | 0 | buf | |
| HALF_LOCKED2 | &iint->mutex | ||
| HALF_LOCKED2 | global &ima_write_mutex |
security/integrity/ima/ima_main.c process_buffer_measurement() -> ima_calc_buffer_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 293898379696164864 |
| PARAM_VALUE | 2 | hash | 4096-ptr_max |
| PARAM_VALUE | 2 | hash->algo | 0-22 |
| PARAM_VALUE | 2 | *hash->digest | 0-255 |
| BUF_SIZE | 0 | buf | 64 |
| BIT_INFO | 2 | hash | 0x42ea645600880000,0xffffffffffffffff |
| BIT_INFO | 2 | hash | 0x42ea645600880000,0xffffffffffffffff |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &ima_write_mutex | ||
| HALF_LOCKED2 | global &selinux_state.policy_mutex |
security/integrity/ima/ima_api.c ima_collect_measurement() -> ima_calc_buffer_hash()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | buf | 1-u64max |
| PARAM_VALUE | 2 | hash | 4096-ptr_max |
| DATA_SOURCE | 0 | buf | $2 |
| DATA_SOURCE | 1 | len | $3 |
| BIT_INFO | 2 | hash | 0x42ea75563ca95000,0x42ea75563ca95000 |
| UNITS | 1 | len | unit_byte |
| LOCK2 | &iint->mutex | ||
| TYPE_LOCK | (struct ima_iint_cache)->mutex |