Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 9 files:
- arch/x86/kernel/cpu/sgx/encl.c, line 125
- drivers/gpu/drm/drm_gem_shmem_helper.c, line 555
- drivers/gpu/drm/i915/gem/i915_gem_shmem.c, line 300
- drivers/gpu/drm/i915/gem/i915_gem_ttm.c, line 448
- drivers/gpu/drm/msm/msm_gem.c, line 854
- drivers/gpu/drm/ttm/ttm_backup.c
- fs/xfs/scrub/xfile.c, line 324
- fs/xfs/xfs_buf_mem.c, line 189
- mm/shmem.c
Smatch caller information:
drivers/gpu/drm/ttm/ttm_backup.c ttm_backup_backup_folio() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | 0,4096-17592186036224 |
| PARAM_VALUE | 2 | lend | 4095-26388279050239,u64max |
| CAPPED_DATA | 1 | lstart | 1 |
| CAPPED_DATA | 2 | lend | 1 |
| BIT_INFO | 1 | lstart | 0x0,0xffffffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | lstart | unit_byte |
| UNITS | 2 | lend | unit_byte |
| HALF_LOCKED2 | global &bch_register_lock |
drivers/gpu/drm/ttm/ttm_backup.c ttm_backup_drop() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | s64min-(-8192),0,4096-s64max |
| PARAM_VALUE | 2 | lend | 4095,8191-18446744073709547519 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 1 | lstart | unit_byte |
| UNITS | 2 | lend | unit_byte |
fs/xfs/xfs_buf_mem.c xmbuf_stale() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | s64min-(-512),0,512-s64max |
| BIT_INFO | 1 | lstart | 0x0,0x7ffffffffffffe00 |
| BIT_INFO | 1 | lstart | 0x0,0xfffffffffffffe00 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &rr->lock |
mm/shmem.c shmem_evict_inode() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_lru.next | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_lru.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->a_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | inode->i_op->sync_lazytime | 0,6951464784224747520 |
| PARAM_VALUE | 0 | inode->i_sb | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb->s_export_op->encode_fh | 0,2,4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb->s_inode_list_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_sb->s_op | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb->s_op->evict_inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb_list.next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb_list.next->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb_list.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_sb_list.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_size | 0 |
| PARAM_VALUE | 1 | lstart | 0 |
| PARAM_VALUE | 2 | lend | u64max |
| CAPPED_DATA | 0 | inode | 1 |
| CAPPED_DATA | 0 | inode->i_io_list.next | 1 |
| DATA_SOURCE | 0 | inode | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 0 | inode->i_mapping->host->i_bytes |
mm/shmem.c shmem_fallocate() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_private | 3826570664617107456 |
| PARAM_VALUE | 0 | inode->i_rwsem.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | inode->i_rwsem.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | inode->i_rwsem.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | inode->i_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | inode->i_rwsem.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | inode->i_sb | 4096-ptr_max |
| BUF_SIZE | 0 | inode->i_private | 40 |
| DATA_SOURCE | 1 | lstart | $2 |
| NOSPEC | 1 | lstart | |
| NOSPEC | 1 | lstart | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | lstart | 0-s64max |
| LOCK2 | 0 | &inode->i_rwsem | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
mm/shmem.c shmem_setattr() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | inode | 4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->host->i_sb->s_export_op->encode_fh | 0,2,4096-ptr_max |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | inode->i_mapping->i_mmap_rwsem.first_waiter->type | 0-1 |
| PARAM_VALUE | 2 | lend | u64max |
| CAPPED_DATA | 1 | lstart | 1 |
| CAPPED_DATA | 1 | lstart | 1 |
| NOSPEC | 0 | inode->i_size | |
| NOSPEC | 1 | lstart | |
| NOSPEC | 1 | lstart | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | inode->i_mode | 0-u16max |
| USER_DATA | 0 | inode->i_size | (-9223372036854775807)-(-4),0-s64max |
| USER_DATA | 1 | lstart | (-9223372036854775807)-(-4096),0-s64max[c] |
| UNITS | 1 | lstart | unit_byte |
| HALF_LOCKED2 | &dentry->d_inode->i_rwsem | ||
| HALF_LOCKED2 | &dentry->d_lockref.lock | ||
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock |
drivers/gpu/drm/i915/gem/i915_gem_ttm.c i915_ttm_purge() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | 0 |
| PARAM_VALUE | 2 | lend | u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | obj->base.resv |
drivers/gpu/drm/i915/gem/i915_gem_shmem.c shmem_truncate() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | 0 |
| PARAM_VALUE | 2 | lend | u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | obj->base.resv |
fs/xfs/scrub/xfile.c xfile_discard() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| DATA_SOURCE | 1 | lstart | $1 |
| NOCHECK_CALL | |||
| UNITS | 1 | lstart | unit_byte |
| UNITS | 2 | lend | unit_byte |
arch/x86/kernel/cpu/sgx/encl.c sgx_encl_truncate_backing_page() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | s64min-(-4096),0,4096-s64max |
| PARAM_VALUE | 2 | lend | 4095 |
| CAPPED_DATA | 1 | lstart | 1 |
| BIT_INFO | 1 | lstart | 0x0,0xfffffffffffff000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 2 | lend | unit_byte |
| LOCK2 | &encl->lock | ||
| TYPE_LOCK | (struct sgx_encl)->lock |
drivers/gpu/drm/drm_gem_shmem_helper.c drm_gem_shmem_purge_locked() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | 0 |
| PARAM_VALUE | 2 | lend | u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &bo->mappings.lock | ||
| HALF_LOCKED2 | &pfdev->shrinker_lock | ||
| HALF_LOCKED2 | obj->resv | ||
| HALF_LOCKED2 | shmem->base.resv |
drivers/gpu/drm/msm/msm_gem.c msm_gem_purge() -> shmem_truncate_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | lstart | 0 |
| PARAM_VALUE | 2 | lend | u64max |
| NOCHECK_CALL |