Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/md/dm-integrity.c __journal_read_write() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->bufio->async_write_error s32min-s32max
PARAM_VALUE 0 ic->commit_wq->flags 0-4294967295
PARAM_VALUE 0 ic->commit_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->commit_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->commit_wq->work_color s32min-s32max
PARAM_VALUE 0 ic->failed 0-s32max
PARAM_VALUE 0 ic->internal_hash 1
PARAM_VALUE 0 ic->internal_hash_digestsize 1-u32max
PARAM_VALUE 0 ic->journal 4096-ptr_max
PARAM_VALUE 0 ic->journal_section_entries 1-255
PARAM_VALUE 0 ic->journal_section_sectors 1-u16max
PARAM_VALUE 0 ic->journal_sections 1-u32max
PARAM_VALUE 0 ic->recalc_wq->flags 0-4294967295
PARAM_VALUE 0 ic->recalc_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->recalc_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->recalc_wq->work_color s32min-s32max
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 0 ic->tag_size 0-4294967294
PARAM_VALUE 0 ic->writer_wq->flags 0-4294967295
PARAM_VALUE 0 ic->writer_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->writer_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->writer_wq->work_color s32min-s32max
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 4 offset 0-4095
PARAM_VALUE 5 result 691577724353830912
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 5 result 64
CAPPED_DATA 0 ic->sectors_per_block 1
CAPPED_DATA 0 ic->tag_size 1
DATA_SOURCE 3 data r integrity_identity
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 sector unit_byte
HALF_LOCKED2 &md->io_barrier

drivers/md/dm-integrity.c __journal_read_write() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->bufio->async_write_error s32min-s32max
PARAM_VALUE 0 ic->commit_wq->flags 0-4294967295
PARAM_VALUE 0 ic->commit_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->commit_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->commit_wq->work_color s32min-s32max
PARAM_VALUE 0 ic->failed 0-s32max
PARAM_VALUE 0 ic->internal_hash 1
PARAM_VALUE 0 ic->journal 4096-ptr_max
PARAM_VALUE 0 ic->journal_section_entries 1-255
PARAM_VALUE 0 ic->journal_section_sectors 1-u16max
PARAM_VALUE 0 ic->journal_sections 1-u32max
PARAM_VALUE 0 ic->recalc_wq->flags 0-4294967295
PARAM_VALUE 0 ic->recalc_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->recalc_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->recalc_wq->work_color s32min-s32max
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 0 ic->writer_wq->flags 0-4294967295
PARAM_VALUE 0 ic->writer_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->writer_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->writer_wq->work_color s32min-s32max
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 4 offset 0-4095
PARAM_VALUE 5 result 4096-ptr_max
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
CAPPED_DATA 0 ic->sectors_per_block 1
DATA_SOURCE 3 data r integrity_identity
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 sector unit_byte
HALF_LOCKED2 &md->io_barrier

drivers/md/dm-integrity.c dm_integrity_check() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 5 result 5850486509963984896
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 5 result 64
DATA_SOURCE 0 ic $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 sector unit_byte
UNITS 3 data unit_page
UNITS 4 offset unit_byte
HALF_LOCKED2 &pool->lock

drivers/md/dm-integrity.c dm_integrity_inline_recheck() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->dev 4096-ptr_max
PARAM_VALUE 0 ic->recheck_pool.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 4 offset 0
PARAM_VALUE 5 result 528801916394954752
BUF_SIZE 5 result 64
CAPPED_DATA 0 ic->tuple_size 1
NOCHECK_CALL
UNITS 2 sector unit_byte
HALF_LOCKED2 &pool->lock

drivers/md/dm-integrity.c dm_integrity_map_inline() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->dev 4096-ptr_max
PARAM_VALUE 0 ic->endio_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ic->in_progress.rb_node 4096-ptr_max
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 5 result 4096-ptr_max
BUF_SIZE 0 ic (-1),16,40-s32max
BUF_SIZE 0 ic (-1),16,40-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 sector unit_byte
UNITS 3 data unit_page
UNITS 4 offset unit_byte
HALF_LOCKED2 &md->io_barrier

drivers/md/dm-integrity.c do_journal_write() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->bufio->async_write_error s32min-s32max
PARAM_VALUE 0 ic->commit_wq->flags 0-4294967295
PARAM_VALUE 0 ic->commit_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->commit_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->commit_wq->work_color s32min-s32max
PARAM_VALUE 0 ic->endio_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ic->failed 0-s32max
PARAM_VALUE 0 ic->in_progress.rb_node 4096-ptr_max
PARAM_VALUE 0 ic->internal_hash 1
PARAM_VALUE 0 ic->journal 4096-ptr_max
PARAM_VALUE 0 ic->journal_section_entries 1-255
PARAM_VALUE 0 ic->journal_section_sectors 1-u16max
PARAM_VALUE 0 ic->journal_sections 1-u32max
PARAM_VALUE 0 ic->journal_uptodate 0
PARAM_VALUE 0 ic->mode 0-81,83-255
PARAM_VALUE 0 ic->provided_data_sectors 1-u64max
PARAM_VALUE 0 ic->recalc_wq->flags 0-4294967295
PARAM_VALUE 0 ic->recalc_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->recalc_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->recalc_wq->work_color s32min-s32max
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 0 ic->writer_wq->flags 0-4294967295
PARAM_VALUE 0 ic->writer_wq->flush_color s32min-s32max
PARAM_VALUE 0 ic->writer_wq->nr_drainers s32min-s32max
PARAM_VALUE 0 ic->writer_wq->work_color s32min-s32max
PARAM_VALUE 0 ic->wrote_to_journal 0
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 4 offset 0-4095
PARAM_VALUE 5 result 262687316228714496
BUF_SIZE 0 ic 16,40-s32max
BUF_SIZE 0 ic 16,40-s32max
BUF_SIZE 5 result 255
CAPPED_DATA 0 ic->journal_sections 1
CAPPED_DATA 0 ic->provided_data_sectors 1
CAPPED_DATA 0 ic->sectors_per_block 1
DATA_SOURCE 0 ic $0
DATA_SOURCE 3 data r integrity_identity
NOCHECK_CALL
UNITS 2 sector unit_byte
LOCK2 &md->suspend_lock
TYPE_LOCK (struct mapped_device)->suspend_lock

drivers/md/dm-integrity.c integrity_metadata() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->internal_hash 1
PARAM_VALUE 0 ic->mode 0-81,83-255
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 5 result 16,4096-u64max
BUF_SIZE 5 result 0-38654705655,u64max
BUF_SIZE 5 result 0-38654705655,u64max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 sector unit_byte
UNITS 3 data unit_page
UNITS 4 offset unit_byte

drivers/md/dm-integrity.c integrity_recalc() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->dev 4096-ptr_max
PARAM_VALUE 0 ic->endio_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ic->failed 0-s32max
PARAM_VALUE 0 ic->in_progress.rb_node 4096-ptr_max
PARAM_VALUE 0 ic->provided_data_sectors 1-u64max
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 0 ic->ti 4096-ptr_max
PARAM_VALUE 0 ic->ti->table 4096-ptr_max
PARAM_VALUE 0 ic->ti->table->md 4096-ptr_max
PARAM_VALUE 1 ahash_req 734033913334476800
PARAM_VALUE 4 offset 0-4095
PARAM_VALUE 5 result 1-u64max
BUF_SIZE 5 result 0-u64max
CAPPED_DATA 0 ic->internal_hash_digestsize 1
DATA_SOURCE 3 data r integrity_identity
NOCHECK_CALL
UNITS 2 sector unit_byte

drivers/md/dm-integrity.c integrity_recalc_inline() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->dev 4096-ptr_max
PARAM_VALUE 0 ic->endio_wait.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ic->failed 0-s32max
PARAM_VALUE 0 ic->in_progress.rb_node 4096-ptr_max
PARAM_VALUE 0 ic->provided_data_sectors 1-u64max
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 0 ic->ti 4096-ptr_max
PARAM_VALUE 0 ic->ti->table 4096-ptr_max
PARAM_VALUE 0 ic->ti->table->md 4096-ptr_max
PARAM_VALUE 1 ahash_req 7388166864062304256
PARAM_VALUE 4 offset 0-4095
PARAM_VALUE 5 result 16,4096-u64max
BUF_SIZE 5 result 0-u64max
CAPPED_DATA 0 ic->internal_hash_digestsize 1
CAPPED_DATA 2 sector 1
DATA_SOURCE 3 data r integrity_identity
MEM_ZERO 5 result
NOCHECK_CALL
UNITS 2 sector unit_byte

drivers/md/dm-integrity.c integrity_recheck() -> integrity_sector_checksum()

Type Parameter Key Value
PARAM_VALUE 0 ic 4096-ptr_max
PARAM_VALUE 0 ic->dev 4096-ptr_max
PARAM_VALUE 0 ic->internal_hash 1
PARAM_VALUE 0 ic->mode 0-81,83-255
PARAM_VALUE 0 ic->recheck_pool.lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ic->sb 4096-ptr_max
PARAM_VALUE 0 ic->sb->salt 0-255
PARAM_VALUE 1 ahash_req 4096-ptr_max
PARAM_VALUE 5 result 5344616860696854528
BUF_SIZE 5 result 255
BUF_SIZE 5 result 255
DATA_SOURCE 5 result $1
BIT_INFO 4 offset 0x0,0xfffffe00
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 sector unit_byte