Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
fs/crypto/keysetup.c fscrypt_setup_v2_file_key() -> fscrypt_set_per_file_enc_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_inode->i_sb->s_cop->get_dummy_policy | 0,5548184023414632448,6265693363421687808,7944682147525111808 |
| PARAM_VALUE | 0 | ci->ci_inode->i_sb->s_master_keys | 1-u64max |
| PARAM_VALUE | 0 | ci->ci_mode | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_mode->ivsize | 16,32 |
| PARAM_VALUE | 0 | ci->ci_mode->keysize | 16,32,64 |
| PARAM_VALUE | 0 | ci->ci_mode->security_strength | 16,32 |
| PARAM_VALUE | 0 | ci->ci_policy.version | 2 |
| PARAM_VALUE | 1 | raw_key | 4691918924707811328 |
| BUF_SIZE | 0 | ci->ci_inode | (-1),1-s32max |
| BUF_SIZE | 1 | raw_key | 64 |
| CAPPED_DATA | 0 | ci->ci_mode->keysize | 1 |
| DATA_SOURCE | 0 | ci | $0 |
| STR_LEN | 0 | ci->ci_inode | (-1)-1010101 |
| STR_LEN | 0 | ci->ci_inode->i_sb | (-1) |
| BIT_INFO | 0 | ci->ci_policy.v2.flags | 0x0,0xe3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | ci->ci_inode->__i_nlink | 1-u32max |
| USER_DATA | 0 | ci->ci_inode->i_blocks | 0-18014398509481983,18428729675200069632-u64max |
| USER_DATA | 0 | ci->ci_inode->i_bytes | 0-511[c] |
| USER_DATA | 0 | ci->ci_inode->i_ino | 0-u64max |
| USER_DATA | 0 | ci->ci_inode->i_mode | 0-u16max |
| USER_DATA | 0 | ci->ci_inode->i_rdev | 0-u32max[c] |
| USER_DATA | 0 | ci->ci_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| NO_OVERFLOW_SIMPLE | 0 | ci->ci_data_unit_bits | |
| NO_OVERFLOW_SIMPLE | 0 | ci->ci_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | ci->ci_inode->i_linklen | |
| LOCK2 | &mk->mk_sem | ||
| TYPE_LOCK | (struct fscrypt_master_key)->mk_sem |
fs/crypto/keysetup_v1.c setup_v1_file_key_derived() -> fscrypt_set_per_file_enc_key()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ci | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_inode->i_sb->s_cop->get_dummy_policy | 0,5548184023414632448,6265693363421687808,7944682147525111808 |
| PARAM_VALUE | 0 | ci->ci_inode->i_sb->s_cop->legacy_key_prefix | 0,924751349837991936,5264834109705359360,8765449967581011968 |
| PARAM_VALUE | 0 | ci->ci_mode | 4096-ptr_max |
| PARAM_VALUE | 0 | ci->ci_mode->blk_crypto_mode | 0-4 |
| PARAM_VALUE | 0 | ci->ci_mode->keysize | 32,48,64 |
| PARAM_VALUE | 0 | ci->ci_mode->security_strength | 16,32 |
| PARAM_VALUE | 0 | ci->ci_policy.version | 0 |
| PARAM_VALUE | 1 | raw_key | 4096-ptr_max |
| BUF_SIZE | 0 | ci->ci_inode | (-1),1-s32max |
| BUF_SIZE | 1 | raw_key | 64 |
| DATA_SOURCE | 0 | ci | $0 |
| STR_LEN | 0 | ci->ci_inode | (-1)-1010101 |
| STR_LEN | 0 | ci->ci_inode->i_sb | (-1) |
| BIT_INFO | 0 | ci->ci_policy.v1.flags | 0x0,0xfb |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | ci->ci_inode->__i_nlink | 1-u32max |
| USER_DATA | 0 | ci->ci_inode->i_atime_nsec | 0-u32max |
| USER_DATA | 0 | ci->ci_inode->i_atime_sec | 0-4294967295 |
| USER_DATA | 0 | ci->ci_inode->i_blocks | 0-18014398509481983,18428729675200069632-u64max |
| USER_DATA | 0 | ci->ci_inode->i_bytes | 0-511[c] |
| USER_DATA | 0 | ci->ci_inode->i_ino | 0-u64max |
| USER_DATA | 0 | ci->ci_inode->i_mode | 0-u16max |
| USER_DATA | 0 | ci->ci_inode->i_mtime_nsec | 0-u32max |
| USER_DATA | 0 | ci->ci_inode->i_mtime_sec | 0-4294967295 |
| USER_DATA | 0 | ci->ci_inode->i_rdev | 0-u32max[c] |
| USER_DATA | 0 | ci->ci_inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| NO_OVERFLOW_SIMPLE | 0 | ci->ci_data_unit_bits | |
| NO_OVERFLOW_SIMPLE | 0 | ci->ci_inode->i_blkbits | |
| NO_OVERFLOW_SIMPLE | 0 | ci->ci_inode->i_linklen | |
| HALF_LOCKED2 | &key->sem | ||
| HALF_LOCKED2 | &mk->mk_sem |