Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

fs/btrfs/tests/extent-io-tests.c test_eb_mem_ops() -> memcpy_extent_buffer()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 0 dst->folio_shift 12
PARAM_VALUE 0 dst->folio_size 4096
PARAM_VALUE 0 dst->fs_info 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->prev 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->eb_leak_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dst->leak_list.next 4096-ptr_max
PARAM_VALUE 0 dst->leak_list.prev 4096-ptr_max
PARAM_VALUE 0 dst->len 0-65536
PARAM_VALUE 0 dst->lock.count.counter 0
PARAM_VALUE 0 dst->lock.dep_map->name 0-255
PARAM_VALUE 0 dst->lock.first_waiter 0
PARAM_VALUE 0 dst->lock.magic 4096-ptr_max
PARAM_VALUE 0 dst->lock.osq.tail.counter 0
PARAM_VALUE 0 dst->lock.owner.counter 0
PARAM_VALUE 0 dst->refs.refs.counter 1
PARAM_VALUE 0 dst->writeback_inhibitors.counter 0
PARAM_VALUE 1 dst_offset 0
PARAM_VALUE 2 src_offset 16
PARAM_VALUE 3 len 16
CAPPED_DATA 0 dst 1
DATA_SOURCE 0 dst r alloc_dummy_extent_buffer
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst->len
NO_OVERFLOW_SIMPLE 0 dst->start

fs/btrfs/tests/extent-io-tests.c test_eb_mem_ops() -> memcpy_extent_buffer()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 0 dst->folio_shift 12
PARAM_VALUE 0 dst->folio_size 4096
PARAM_VALUE 0 dst->fs_info 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->prev 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 dst->fs_info->eb_leak_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dst->leak_list.next 4096-ptr_max
PARAM_VALUE 0 dst->leak_list.prev 4096-ptr_max
PARAM_VALUE 0 dst->len 0-65536
PARAM_VALUE 0 dst->lock.count.counter 0
PARAM_VALUE 0 dst->lock.dep_map->name 0-255
PARAM_VALUE 0 dst->lock.first_waiter 0
PARAM_VALUE 0 dst->lock.magic 4096-ptr_max
PARAM_VALUE 0 dst->lock.osq.tail.counter 0
PARAM_VALUE 0 dst->lock.owner.counter 0
PARAM_VALUE 0 dst->refs.refs.counter 1
PARAM_VALUE 0 dst->writeback_inhibitors.counter 0
PARAM_VALUE 1 dst_offset 0
PARAM_VALUE 2 src_offset 2048
PARAM_VALUE 3 len 16
CAPPED_DATA 0 dst 1
DATA_SOURCE 0 dst r alloc_dummy_extent_buffer
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst->len
NO_OVERFLOW_SIMPLE 0 dst->start

fs/btrfs/tests/extent-io-tests.c test_eb_mem_ops() -> memcpy_extent_buffer()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 0 dst->folio_shift 12
PARAM_VALUE 0 dst->folio_size 4096
PARAM_VALUE 0 dst->fs_info 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->prev 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 dst->fs_info->eb_leak_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dst->leak_list.next 4096-ptr_max
PARAM_VALUE 0 dst->leak_list.prev 4096-ptr_max
PARAM_VALUE 0 dst->len 0-65536
PARAM_VALUE 0 dst->lock.count.counter 0
PARAM_VALUE 0 dst->lock.dep_map->name 0-255
PARAM_VALUE 0 dst->lock.first_waiter 0
PARAM_VALUE 0 dst->lock.magic 4096-ptr_max
PARAM_VALUE 0 dst->lock.osq.tail.counter 0
PARAM_VALUE 0 dst->lock.owner.counter 0
PARAM_VALUE 0 dst->refs.refs.counter 1
PARAM_VALUE 0 dst->writeback_inhibitors.counter 0
PARAM_VALUE 1 dst_offset 0
PARAM_VALUE 2 src_offset 2048
PARAM_VALUE 3 len 2048
CAPPED_DATA 0 dst 1
DATA_SOURCE 0 dst r alloc_dummy_extent_buffer
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst->len
NO_OVERFLOW_SIMPLE 0 dst->start

fs/btrfs/tests/extent-io-tests.c test_eb_mem_ops() -> memcpy_extent_buffer()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 0 dst->folio_shift 12
PARAM_VALUE 0 dst->folio_size 4096
PARAM_VALUE 0 dst->fs_info 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->prev 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 dst->fs_info->eb_leak_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dst->leak_list.next 4096-ptr_max
PARAM_VALUE 0 dst->leak_list.prev 4096-ptr_max
PARAM_VALUE 0 dst->len 0-65536
PARAM_VALUE 0 dst->lock.count.counter 0
PARAM_VALUE 0 dst->lock.dep_map->name 0-255
PARAM_VALUE 0 dst->lock.first_waiter 0
PARAM_VALUE 0 dst->lock.magic 4096-ptr_max
PARAM_VALUE 0 dst->lock.osq.tail.counter 0
PARAM_VALUE 0 dst->lock.owner.counter 0
PARAM_VALUE 0 dst->refs.refs.counter 1
PARAM_VALUE 0 dst->writeback_inhibitors.counter 0
PARAM_VALUE 1 dst_offset 0
PARAM_VALUE 2 src_offset 3968
PARAM_VALUE 3 len 256
CAPPED_DATA 0 dst 1
DATA_SOURCE 0 dst r alloc_dummy_extent_buffer
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst->len
NO_OVERFLOW_SIMPLE 0 dst->start

fs/btrfs/tests/extent-io-tests.c test_eb_mem_ops() -> memcpy_extent_buffer()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 0 dst->folio_shift 12
PARAM_VALUE 0 dst->folio_size 4096
PARAM_VALUE 0 dst->fs_info 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->next 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->allocated_ebs.next->prev 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 dst->fs_info->eb_leak_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 dst->leak_list.next 4096-ptr_max
PARAM_VALUE 0 dst->leak_list.prev 4096-ptr_max
PARAM_VALUE 0 dst->len 0-65536
PARAM_VALUE 0 dst->lock.count.counter 0
PARAM_VALUE 0 dst->lock.dep_map->name 0-255
PARAM_VALUE 0 dst->lock.first_waiter 0
PARAM_VALUE 0 dst->lock.magic 4096-ptr_max
PARAM_VALUE 0 dst->lock.osq.tail.counter 0
PARAM_VALUE 0 dst->lock.owner.counter 0
PARAM_VALUE 0 dst->refs.refs.counter 1
PARAM_VALUE 0 dst->writeback_inhibitors.counter 0
PARAM_VALUE 1 dst_offset 3968
PARAM_VALUE 2 src_offset 4224
PARAM_VALUE 3 len 256
CAPPED_DATA 0 dst 1
DATA_SOURCE 0 dst r alloc_dummy_extent_buffer
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst->len
NO_OVERFLOW_SIMPLE 0 dst->start

fs/btrfs/extent_io.c memmove_extent_buffer() -> memcpy_extent_buffer()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 0 dst->fs_info->btree_inode->i_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864,868497899885588480,1471448175530500096,2021658383390310400,2445877819203563520,2512819722689847296,2649270699546726400,2761259683714371584,2893332316235677696-s64max
PARAM_VALUE 0 dst->lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 dst->lock.first_waiter->type 0-1
PARAM_VALUE 1 dst_offset 0-18446744073709551614
PARAM_VALUE 2 src_offset 1-u64max
CAPPED_DATA 0 dst 1
CAPPED_DATA 1 dst_offset 1
CAPPED_DATA 1 dst_offset 1
DATA_SOURCE 0 dst $0
DATA_SOURCE 1 dst_offset $1
DATA_SOURCE 2 src_offset $2
DATA_SOURCE 3 len $3
PARAM_COMPARE 0 dst->len > $1
PARAM_COMPARE 0 dst->len >= $2
PARAM_COMPARE 0 dst->len >= $3
PARAM_COMPARE 1 dst_offset < $0->len
PARAM_COMPARE 1 dst_offset < $2
PARAM_COMPARE 1 dst_offset < $2
PARAM_COMPARE 2 src_offset <= $0->len
PARAM_COMPARE 2 src_offset > $1
PARAM_COMPARE 3 len <= $0->len
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 dst->len
NO_OVERFLOW_SIMPLE 0 dst->start
NO_OVERFLOW_SIMPLE 1 dst_offset
NO_OVERFLOW_SIMPLE 2 src_offset
NO_OVERFLOW_SIMPLE 3 len
UNITS 1 dst_offset unit_byte
UNITS 2 src_offset unit_byte
UNITS 3 len unit_byte
HALF_LOCKED2 &fs_info->tree_mod_log_lock
HALF_LOCKED2 0 &dst->lock

fs/btrfs/ctree.c btrfs_duplicate_item() -> memcpy_extent_buffer()

Type Parameter Key Value
PARAM_VALUE 0 dst 4096-ptr_max
PARAM_VALUE 1 dst_offset 101-4294967396
PARAM_VALUE 2 src_offset 101-4294967396
DATA_SOURCE 3 len r btrfs_item_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 len unit_byte