Defined in 2 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/vfio/vfio_main.c vfio_device_fops_release() -> vfio_device_put_registration()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/vfio/vfio_main.c vfio_unregister_group_dev() -> vfio_device_put_registration()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->cdev.kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 device->cdev.kobj.release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 device->debug_root 0
PARAM_VALUE 0 device->device->driver_data->cis_virt (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device->driver_data->fake_cis 0-255
PARAM_VALUE 0 device->device->driver_data->skt_mutex.first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device->kobj.parent->kset->kobj.release.timer->entry->next->pprev 1-u64max
PARAM_VALUE 0 device->device->kobj.release.timer->entry->next->pprev 1-u64max
PARAM_VALUE 0 device->device->kobj.release.timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 device->device->p->knode_bus.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device->p->knode_class.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device->p->knode_driver.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device->p->knode_parent.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device.devres_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->device.driver_data->battery_dev->id (-2)
PARAM_VALUE 0 device->device.driver_data->callback->add 5235430000054906880
PARAM_VALUE 0 device->device.driver_data->callback->early_resume 6956900869090054144
PARAM_VALUE 0 device->device.driver_data->callback->remove 1719268733136482304
PARAM_VALUE 0 device->device.driver_data->callback->requery 4713442613417914368
PARAM_VALUE 0 device->device.driver_data->callback->resume 5068206944467017728
PARAM_VALUE 0 device->device.driver_data->callback->suspend 2738892915008757760
PARAM_VALUE 0 device->device.driver_data->callback->validate 4934365872137547776
PARAM_VALUE 0 device->device.driver_data->cdev 0
PARAM_VALUE 0 device->device.driver_data->cdev->kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 device->device.driver_data->cdev->kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 device->device.driver_data->cdev->kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 device->device.driver_data->cdev->kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 device->device.driver_data->cis_mem.card_start 0-4294967295
PARAM_VALUE 0 device->device.driver_data->cis_mem.flags 0,2-254
PARAM_VALUE 0 device->device.driver_data->cis_mem.res 0
PARAM_VALUE 0 device->device.driver_data->cis_virt 0
PARAM_VALUE 0 device->device.driver_data->d_ref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->detaching.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->dev.kobj.kref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.cpu s32min-s32max
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.timer.flags 0-4294967295
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.work.flags 0-4294967295
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.work.is_hard 0-1
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.work.is_lazy 0-1
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.work.is_queued 0-1
PARAM_VALUE 0 device->device.driver_data->dev.kobj.release.work.is_soft 0-1
PARAM_VALUE 0 device->device.driver_data->dev.parent->kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 device->device.driver_data->dev.parent->kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 device->device.driver_data->dev.parent->kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 device->device.driver_data->device_count 0-1
PARAM_VALUE 0 device->device.driver_data->functions 0-u16max
PARAM_VALUE 0 device->device.driver_data->ops_mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device.driver_data->ops_mutex.dep_map->name 0-255
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->list.prev->prev 0,5159360019465732096
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->magic 5159360019465732096
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->task->blocked_on (-1)-0
PARAM_VALUE 0 device->device.driver_data->ops_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->ops_mutex.osq.tail.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->pcmcia_pfc 0-255
PARAM_VALUE 0 device->device.driver_data->present.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->resource_setup_done 0-255
PARAM_VALUE 0 device->device.driver_data->sfd_lock.dep_map->name 0-255
PARAM_VALUE 0 device->device.driver_data->sfd_lock.raw_lock.cnts.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->skt_mutex.dep_map->name 0-255
PARAM_VALUE 0 device->device.driver_data->skt_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 device->device.driver_data->skt_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 device->device.driver_data->skt_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 device->device.driver_data->skt_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 device->device.driver_data->skt_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 device->device.driver_data->skt_mutex.first_waiter->task->blocked_on (-1)-0
PARAM_VALUE 0 device->device.driver_data->skt_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 device->device.driver_data->skt_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 device->device.driver_data->state 0-4294967295
PARAM_VALUE 0 device->device.driver_data->touch_dev->id (-2)
PARAM_VALUE 0 device->device.fwnode->dev 0
PARAM_VALUE 0 device->device.groups 0,4096-ptr_max
PARAM_VALUE 0 device->device.iommu_group->mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device.iommu_group->mutex->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 device->device.kobj.parent 0
PARAM_VALUE 0 device->device.kobj.parent->kset->kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 device->device.kobj.parent->kset->kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 device->device.kobj.parent->kset->kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 device->device.kobj.parent->kset->kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 device->device.kobj.parent->kset->kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 device->device.kobj.parent->kset->list_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 device->device.kobj.parent->release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 device->device.kobj.parent->sd 0
PARAM_VALUE 0 device->device.kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 device->device.kobj.release.work.flags 0-4294967295
PARAM_VALUE 0 device->device.kobj.release.work.is_hard 0-1
PARAM_VALUE 0 device->device.kobj.release.work.is_lazy 0-1
PARAM_VALUE 0 device->device.kobj.release.work.is_queued 0-1
PARAM_VALUE 0 device->device.kobj.release.work.is_soft 0-1
PARAM_VALUE 0 device->device.kobj.sd 0
PARAM_VALUE 0 device->device.kobj.sd->__parent 0
PARAM_VALUE 0 device->device.kobj.state_in_sysfs 0
PARAM_VALUE 0 device->device.links.defer_sync.next 4096-ptr_max
PARAM_VALUE 0 device->device.links.defer_sync.next->next 4096-ptr_max
PARAM_VALUE 0 device->device.links.defer_sync.next->prev 4096-ptr_max
PARAM_VALUE 0 device->device.links.defer_sync.prev 4096-ptr_max
PARAM_VALUE 0 device->device.links.defer_sync.prev->next 4096-ptr_max
PARAM_VALUE 0 device->device.links.defer_sync.prev->prev 4096-ptr_max
PARAM_VALUE 0 device->device.links.status 0,3
PARAM_VALUE 0 device->device.mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device.p 4096-ptr_max
PARAM_VALUE 0 device->device.p->dead 0-1
PARAM_VALUE 0 device->device.p->deferred_probe_reason 0
PARAM_VALUE 0 device->device.p->knode_bus.n_ref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 device->device.p->knode_class->n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device.p->knode_class.n_klist 0
PARAM_VALUE 0 device->device.p->knode_driver.n_klist 0
PARAM_VALUE 0 device->device.p->knode_driver.n_ref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 device->device.p->knode_parent->n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 device->device.p->knode_parent.n_klist 0
PARAM_VALUE 0 device->device.parent->kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 device->device.parent->kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 device->device.parent->kobj.release.work.flags 0-4294967295
PARAM_VALUE 0 device->device.parent->kobj.release.work.is_hard 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.work.is_lazy 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.work.is_queued 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.work.is_soft 0-1
PARAM_VALUE 0 device->device.parent->kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 device->device.parent->kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 device->device.parent->kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 device->device.pm_domain 0,4096-ptr_max
PARAM_VALUE 0 device->device.power.driver_flags 0
PARAM_VALUE 0 device->device.power.entry.next->next 4096-ptr_max
PARAM_VALUE 0 device->device.power.entry.prev->next 4096-ptr_max
PARAM_VALUE 0 device->device.power.entry.prev->prev 4096-ptr_max
PARAM_VALUE 0 device->device.power.in_dpm_list 0
PARAM_VALUE 0 device->device.power.irq_safe 0
PARAM_VALUE 0 device->device.power.needs_force_resume 0
PARAM_VALUE 0 device->device.power.qos->flags_req 0
PARAM_VALUE 0 device->device.power.subsys_data 0,4096-ptr_max
PARAM_VALUE 0 device->device.power.use_autosuspend 0
PARAM_VALUE 0 device->device.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 device->device.type 0,4096-ptr_max
PARAM_VALUE 0 device->group 4096-ptr_max
PARAM_VALUE 0 device->group->device_lock.dep_map->name 0-255
PARAM_VALUE 0 device->group->device_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 device->group->device_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 device->group->device_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 device->group->device_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 device->group->device_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 device->group->device_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 device->group->device_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 device->group->device_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 *device->debug_root->d_inode->i_hash.next->pprev 1-u64max
PARAM_VALUE 0 *device->debug_root->d_inode->i_sb->s_fs_info->nm_info->nat_root.xa_head (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *device->debug_root->d_inode->i_sb->s_fs_info->wbuf_verify 0-255
CAPPED_DATA 0 device->device.physical_location 1
DATA_SOURCE 0 device $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 device->cdev.count
HALF_LOCKED2 &_dev->mutex
HALF_LOCKED2 &dev->mutex

drivers/vfio/device_cdev.c vfio_device_fops_cdev_open() -> vfio_device_put_registration()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->group 0,4096-ptr_max
PARAM_VALUE 0 device->refcount.refs.counter (-1073741824),0-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/vfio/pci/vfio_pci_dmabuf.c vfio_pci_core_feature_dma_buf() -> vfio_device_put_registration()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->refcount.refs.counter (-1073741824),0-s32max
NOCHECK_CALL

drivers/vfio/pci/vfio_pci_dmabuf.c vfio_pci_dma_buf_cleanup() -> vfio_device_put_registration()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &device->dev_set->lock
LOCK2 &vdev->memory_lock
HALF_LOCKED2 &device->group->group_lock
TYPE_LOCK (struct vfio_device_set)->lock
TYPE_LOCK (struct vfio_pci_core_device)->memory_lock

drivers/vfio/pci/vfio_pci_dmabuf.c vfio_pci_dma_buf_release() -> vfio_device_put_registration()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/vfio/group.c vfio_group_ioctl_get_device_fd() -> vfio_device_put_registration()

Type Parameter Key Value
PARAM_VALUE 0 device 4096-ptr_max
PARAM_VALUE 0 device->ops 4096-ptr_max
PARAM_VALUE 0 device->refcount.refs.counter (-1073741824),0-s32max
DATA_SOURCE 0 device r vfio_device_get_from_name
NOCHECK_CALL