Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/block/nbd.c __nbd_ioctl() -> nbd_set_size()

Type Parameter Key Value
PARAM_VALUE 0 nbd 4096-ptr_max
PARAM_VALUE 0 nbd->config 4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 nbd->config_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 nbd->config_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner (-1)
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner_cpu u32max
BUF_SIZE 0 nbd s32min-(-2),1-s32max
BUF_SIZE 0 nbd s32min-(-2),1-s32max
DATA_SOURCE 0 nbd $1
DATA_SOURCE 2 blksize $3
CAPABLE 0 21
USER_DATA 2 blksize s64min-s64max
UNITS 0 nbd unit_byte
LOCK2 0 &nbd->config_lock
TYPE_LOCK (struct nbd_device)->config_lock

drivers/block/nbd.c __nbd_ioctl() -> nbd_set_size()

Type Parameter Key Value
PARAM_VALUE 0 nbd 4096-ptr_max
PARAM_VALUE 0 nbd->config 4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 nbd->config_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 nbd->config_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner (-1)
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 2 blksize 0-4294967295
BUF_SIZE 0 nbd s32min-(-2),1-s32max
BUF_SIZE 0 nbd s32min-(-2),1-s32max
DATA_SOURCE 0 nbd $1
DATA_SOURCE 1 bytesize $3
CAPABLE 0 21
USER_DATA 1 bytesize s64min-s64max
UNITS 0 nbd unit_byte
LOCK2 0 &nbd->config_lock
TYPE_LOCK (struct nbd_device)->config_lock

drivers/block/nbd.c __nbd_ioctl() -> nbd_set_size()

Type Parameter Key Value
PARAM_VALUE 0 nbd 4096-ptr_max
PARAM_VALUE 0 nbd->config 4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 nbd->config_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 nbd->config_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner (-1)
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 2 blksize 0-4294967295
BUF_SIZE 0 nbd s32min-(-2),1-s32max
BUF_SIZE 0 nbd s32min-(-2),1-s32max
DATA_SOURCE 0 nbd $1
CAPABLE 0 21
UNITS 0 nbd unit_byte
LOCK2 0 &nbd->config_lock
TYPE_LOCK (struct nbd_device)->config_lock

drivers/block/nbd.c nbd_genl_size_set() -> nbd_set_size()

Type Parameter Key Value
PARAM_VALUE 0 nbd 4096-ptr_max
PARAM_VALUE 0 nbd->config 4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 nbd->config_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 nbd->config_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner (-1)
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 nbd->config_refs.refs.counter (-1073741824),0-s32max
PARAM_VALUE 0 nbd->disk->part0->bd_device.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 nbd->disk->part0->bd_device.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 nbd->disk->queue->mq_kobj->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->type 0-1
PARAM_VALUE 0 nbd->disk->queue_kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 nbd->refs.refs.counter (-1073741824),0-s32max
BUF_SIZE 0 nbd (-1),848
BUF_SIZE 0 nbd (-1),848
DATA_SOURCE 0 nbd $1
FUZZY_MAX 0 nbd->refs.refs.counter 2
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 nbd->tag_set.shared_tags->bitmap_tags.sb.depth
NO_OVERFLOW_SIMPLE 0 nbd->tag_set.shared_tags->breserved_tags.sb.depth
LOCK2 0 &nbd->config_lock
HALF_LOCKED2 &dev->lock
HALF_LOCKED2 &devlink->lock
HALF_LOCKED2 &net->xfrm.xfrm_cfg_mutex
HALF_LOCKED2 global &audit_cmd_mutex.lock
HALF_LOCKED2 global &cb_lock
HALF_LOCKED2 global &crypto_cfg_mutex
HALF_LOCKED2 global &dpll_lock
HALF_LOCKED2 global &hwsim_phys_lock
HALF_LOCKED2 global &net_dm_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 rcu_read
TYPE_LOCK (struct nbd_device)->config_lock

drivers/block/nbd.c nbd_start_device() -> nbd_set_size()

Type Parameter Key Value
PARAM_VALUE 0 nbd 4096-ptr_max
PARAM_VALUE 0 nbd->config 4096-ptr_max
PARAM_VALUE 0 nbd->config->socks 1-u64max
PARAM_VALUE 0 nbd->config_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 nbd->config_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 nbd->config_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 nbd->config_lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner (-1)
PARAM_VALUE 0 nbd->config_lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 nbd->disk 4096-ptr_max
PARAM_VALUE 0 nbd->disk->part0->bd_device.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 nbd->disk->part0->bd_device.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 nbd->disk->queue->mq_kobj->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->handoff_set 0-1
PARAM_VALUE 0 nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->type 0-1
PARAM_VALUE 0 nbd->disk->queue_kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 nbd->tag_set.tag_list_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 nbd->tag_set.update_nr_hwq_lock.dep_map->name 0-255
PARAM_VALUE 0 nbd->tag_set.update_nr_hwq_lock.first_waiter->handoff_set 1
PARAM_VALUE 0 nbd->tag_set.update_nr_hwq_lock.first_waiter->list.next 2624917664208203776
PARAM_VALUE 0 nbd->tag_set.update_nr_hwq_lock.first_waiter->list.prev 2624917664208203776
PARAM_VALUE 0 nbd->tag_set.update_nr_hwq_lock.first_waiter->type 0-1
PARAM_VALUE 0 nbd->tag_set.update_nr_hwq_lock.osq.tail.counter 0-s32max
PARAM_VALUE 2 blksize 0-4294967295
BUF_SIZE 0 nbd s32min-(-1),1-s32max
BUF_SIZE 0 nbd s32min-(-1),1-s32max
BUF_SIZE 0 nbd->backend (-1),1-65536
CAPPED_DATA 0 &nbd->config_lock 1
CAPPED_DATA 0 &nbd->tag_set 1
DATA_SOURCE 0 nbd $0
RX_PATH
TASK_NOT_RUNNING
USER_DATA 0 *nbd->backend 0-255
NO_OVERFLOW_SIMPLE 0 nbd->tag_set.shared_tags->bitmap_tags.sb.depth
NO_OVERFLOW_SIMPLE 0 nbd->tag_set.shared_tags->breserved_tags.sb.depth
UNITS 0 nbd unit_byte
USER_PTR 0 nbd->backend
LOCK2 0 &nbd->config_lock
TYPE_LOCK (struct nbd_device)->config_lock