Documented in 1 files:
Defined in 1 files as a function:
Referenced in 19 files:
- drivers/block/rnbd/rnbd-srv.c, line 228
- drivers/dma/idxd/cdev.c, line 190
- drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c, line 232
- drivers/infiniband/core/rdma_core.c
- drivers/infiniband/core/restrack.c
- drivers/infiniband/core/ucma.c
- drivers/infiniband/hw/mlx4/cm.c
- drivers/infiniband/hw/mlx5/mr.c, line 1455
- drivers/iommu/amd/iommu.c, line 2337
- drivers/iommu/intel/iommu.c, line 1065
- drivers/iommu/iommu.c, line 3754
- drivers/iommu/iommufd/device.c
- drivers/iommu/iommufd/viommu.c, line 131
- drivers/nvme/target/passthru.c, line 610
- fs/cachefiles/ondemand.c, line 405
- include/linux/xarray.h
- lib/test_xarray.c
- net/core/page_pool.c, line 517
- net/netlink/genetlink.c, line 751
Smatch caller information:
drivers/iommu/amd/iommu.c pdom_attach_iommu() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 2080 |
| BUF_SIZE | 3 | entry | 16 |
| DATA_SOURCE | 3 | entry | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &dev_data->mutex | ||
| LOCK2 | &pdom->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &group->mutex | ||
| TYPE_LOCK | (struct iommu_dev_data)->mutex | ||
| TYPE_LOCK | (struct protection_domain)->lock |
io_uring/rsrc.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 4197568 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| RX_PATH | |||
| HALF_LOCKED2 | &ctx->uring_lock |
drivers/iommu/intel/iommu.c domain_attach_iommu() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 3 | entry | 16 |
| DATA_SOURCE | 3 | entry | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &group->mutex |
drivers/iommu/iommufd/viommu.c iommufd_vdevice_abort() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &idev->igroup->lock |
drivers/iommu/iommufd/viommu.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| NOCHECK_CALL | |||
| USER_DATA | 1 | index | 0-u64max[u] |
| LOCK2 | &idev->igroup->lock | ||
| TYPE_LOCK | (struct iommufd_group)->lock |
fs/btrfs/delayed-inode.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3136 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/dma/idxd/cdev.c idxd_xa_pasid_remove() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 2 | old | (-1),1696 |
| DATA_SOURCE | 2 | old | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &wq->uc_lock | ||
| HALF_LOCKED2 | &wq->wq_lock | ||
| TYPE_LOCK | (struct idxd_wq)->uc_lock |
fs/btrfs/inode.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3136 |
| CAPPED_DATA | 1 | index | 1 |
| CAPPED_DATA | 1 | index | 1 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/iommu/iommufd/io_pagetable.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| NOCHECK_CALL | |||
| LOCK2 | &ioas->mutex | ||
| LOCK2 | &iopt->domains_rwsem | ||
| LOCK2 | &iopt->iova_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->domains_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_ioas)->mutex |
drivers/iommu/iommufd/io_pagetable.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| LOCK2 | &ioas->mutex | ||
| LOCK2 | &iopt->domains_rwsem | ||
| LOCK2 | &iopt->iova_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->domains_rwsem | ||
| TYPE_LOCK | (struct io_pagetable)->iova_rwsem | ||
| TYPE_LOCK | (struct iommufd_ioas)->mutex |
net/core/page_pool.c page_pool_release_dma_index() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 1-u64max |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 1 | index | r netmem_get_dma_index |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 2 | old | unit_byte |
drivers/iommu/iommufd/device.c iommufd_group_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
drivers/iommu/iommufd/device.c iommufd_hw_pagetable_attach() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 1 | index | $2 |
| USER_DATA | 1 | index | 0-u32max |
| LOCK2 | &igroup->lock | ||
| HALF_LOCKED2 | &ioas->mutex | ||
| HALF_LOCKED2 | &vdev->dev_set->lock | ||
| TYPE_LOCK | (struct iommufd_group)->lock |
drivers/iommu/iommufd/device.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 7,4096-ptr_max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| NOCHECK_CALL | |||
| USER_DATA | 1 | index | 0-u32max |
| LOCK2 | &igroup->lock | ||
| HALF_LOCKED2 | &ioas->mutex | ||
| HALF_LOCKED2 | &vdev->dev_set->lock | ||
| TYPE_LOCK | (struct iommufd_group)->lock |
drivers/infiniband/core/rdma_core.c swap_idr_uobjects() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 2 | old | s32min-(-1),1-s32max |
| DATA_SOURCE | 2 | old | $0 |
| HALF_LOCKED2 | &file->device->disassociate_srcu |
drivers/infiniband/core/rdma_core.c swap_idr_uobjects() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 3 | entry | s32min-(-1),1-s32max |
| DATA_SOURCE | 3 | entry | $0 |
| HALF_LOCKED2 | &file->device->disassociate_srcu |
drivers/tee/tee_heap.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 810771289017638912 |
| PARAM_VALUE | 1 | index | 1-3 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
drivers/net/ethernet/intel/ice/ice_adapter.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 6352305162180497408 |
| PARAM_VALUE | 1 | index | 0,9223372036854798236 |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 1 | index | 0[c] |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/net/ethernet/intel/ice/ice_adapter.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 6352305162180497408 |
| PARAM_VALUE | 1 | index | 0,9223372036854798236 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 1 | index | 0[c] |
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &pdev->dev.mutex | ||
| HALF_LOCKED2 | &pool->lock |
drivers/infiniband/core/device.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HOST_DATA | 0 | xa->xa_flags | 0-u32max |
| LOCK2 | &device->compat_devs_mutex | ||
| LOCK2 | global &devices_rwsem | ||
| LOCK2 | global &rdma_nets_rwsem | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| TYPE_LOCK | (struct ib_device)->compat_devs_mutex |
drivers/infiniband/core/device.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | xa->xa_flags | 0-u32max |
| LOCK2 | &device->compat_devs_mutex | ||
| LOCK2 | global &devices_rwsem | ||
| LOCK2 | global &rdma_nets_rwsem | ||
| HALF_LOCKED2 | global &pernet_ops_rwsem | ||
| TYPE_LOCK | (struct ib_device)->compat_devs_mutex |
fs/btrfs/qgroup.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &eb->lock | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &root_eb->lock |
fs/btrfs/qgroup.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3136 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &eb->lock | ||
| HALF_LOCKED2 | &fs_info->cleaner_mutex | ||
| HALF_LOCKED2 | &root_eb->lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c amdgpu_bo_list_ioctl() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 1-1025,1027-1029,1031-u64max |
| PARAM_VALUE | 3 | entry | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 3 | entry | 40-5242920 |
| DATA_SOURCE | 2 | old | r xa_load |
| DATA_SOURCE | 3 | entry | r amdgpu_bo_list_create |
| USER_DATA | 1 | index | 0-u32max[u] |
drivers/infiniband/hw/mlx4/cm.c alloc_rej_tmout() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-u32max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 3 | entry | 200 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 3 | entry | r _kmalloc_noprof |
| HALF_LOCKED2 | &pool->lock |
drivers/infiniband/hw/mlx4/cm.c rej_tmout_timeout() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| HALF_LOCKED2 | &pool->lock |
drivers/infiniband/core/ucma.c ucma_cleanup_ctx_events() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4054977054473596928 |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &ctx->file->mut | ||
| TYPE_LOCK | (struct ucma_file)->mut |
drivers/infiniband/core/ucma.c ucma_close() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4054977054473596928 |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/infiniband/core/ucma.c ucma_destroy_private_ctx() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4054977054473596928 |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/block/rnbd/rnbd-srv.c rnbd_destroy_sess_dev() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 2 | old | $0 |
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &pool->lock |
net/netlink/genetlink.c genl_sk_priv_get() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 1-u64max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 16,4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| BUF_SIZE | 3 | entry | 0,16,80,168 |
| BUF_SIZE | 3 | entry | 0,16,80,168 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 3 | entry | r genl_sk_priv_alloc |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | index | unit_byte |
| 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 |
drivers/iommu/iommu.c iommu_replace_device_pasid() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 1-u32max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 1 | index | $2 |
| USER_DATA | 1 | index | 1-u32max |
| LOCK2 | &group->mutex | ||
| LOCK2 | &igroup->lock | ||
| HALF_LOCKED2 | &ioas->mutex | ||
| HALF_LOCKED2 | &vdev->dev_set->lock | ||
| TYPE_LOCK | (struct iommu_group)->mutex | ||
| TYPE_LOCK | (struct iommufd_group)->lock |
drivers/iommu/iommu.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-u32max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | index | 1-u32max |
| LOCK2 | &group->mutex | ||
| HALF_LOCKED2 | &igroup->lock | ||
| TYPE_LOCK | (struct iommu_group)->mutex |
drivers/iommu/iommu.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| LOCK2 | &group->mutex | ||
| LOCK2 | &igroup->lock | ||
| HALF_LOCKED2 | &ioas->mutex | ||
| HALF_LOCKED2 | &vdev->dev_set->lock | ||
| TYPE_LOCK | (struct iommu_group)->mutex | ||
| TYPE_LOCK | (struct iommufd_group)->lock |
lib/test_xarray.c check_cmpxchg() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 12345678 |
| PARAM_VALUE | 2 | old | 13 |
| PARAM_VALUE | 3 | entry | 11 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 2 | old | r xa_mk_value |
| DATA_SOURCE | 3 | entry | r xa_mk_value |
lib/test_xarray.c check_cmpxchg() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 12345678 |
| PARAM_VALUE | 2 | old | 24691357 |
| PARAM_VALUE | 3 | entry | 11 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 2 | old | r xa_mk_value |
| DATA_SOURCE | 3 | entry | r xa_mk_value |
lib/test_xarray.c check_cmpxchg() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 12345678 |
| PARAM_VALUE | 2 | old | 11 |
| PARAM_VALUE | 3 | entry | 24691357 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 2 | old | r xa_mk_value |
| DATA_SOURCE | 3 | entry | r xa_mk_value |
lib/test_xarray.c check_cmpxchg() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 5 |
| PARAM_VALUE | 2 | old | 11 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 2 | old | r xa_mk_value |
lib/test_xarray.c check_cmpxchg() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 5 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 11 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 3 | entry | r xa_mk_value |
lib/test_xarray.c check_cmpxchg() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 5 |
| PARAM_VALUE | 2 | old | 11 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 2 | old | r xa_mk_value |
lib/test_xarray.c check_cmpxchg_order() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 1 | index | 0 |
| PARAM_VALUE | 2 | old | 11 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 2 | old | r xa_mk_value |
lib/test_xarray.c check_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128,6789482655478472704 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 12345678 |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 24691357 |
| PARAM_VALUE | 4 | gfp | 10240 |
| DATA_SOURCE | 0 | xa | $0 |
| BIT_INFO | 2 | old | 0x406,0x406 |
| BIT_INFO | 3 | entry | 0x178c29d,0x178c29d |
lib/test_xarray.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128,6789482655478472704 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 0 | xa->xa_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | index | 6,12345678 |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| HARD_MAX | 1 | index | 12345678 |
| NOCHECK_CALL |
lib/test_xarray.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 5024146686711472128,6789482655478472704 |
| PARAM_VALUE | 0 | xa->xa_head | 0 |
| PARAM_VALUE | 1 | index | 0,6,12345678 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| STR_LEN | 0 | xa | (-1),14 |
| STR_LEN | 0 | xa | (-1),14 |
| HARD_MAX | 1 | index | 12345678 |
arch/x86/kvm/../../../virt/kvm/kvm_main.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0-4503599627370494 |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 4197568 |
| CAPPED_DATA | 1 | index | 1 |
| CAPPED_DATA | 1 | index | 1 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| NOSPEC | 1 | index | |
| NOSPEC | 1 | index | |
| USER_DATA | 1 | index | 0-524287[c] |
| UNITS | 1 | index | unit_page |
| LOCK2 | &kvm->slots_lock | ||
| TYPE_LOCK | (struct kvm)->slots_lock |
fs/btrfs/delayed-ref.c xa_release() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 0 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &delayed_refs->lock | ||
| HALF_LOCKED2 | &trans->fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &trans->fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &trans->fs_info->fs_roots_radix_lock | ||
| HALF_LOCKED2 | &trans->fs_info->qgroup_ioctl_lock | ||
| HALF_LOCKED2 | &trans->fs_info->qgroup_lock | ||
| HALF_LOCKED2 | &trans->fs_info->unused_bg_unpin_mutex | ||
| HALF_LOCKED2 | &trans->transaction->delayed_refs.lock |
fs/btrfs/delayed-ref.c xa_reserve() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3136 |
| DATA_SOURCE | 0 | xa | $0 |
| DATA_SOURCE | 1 | index | $1 |
| DATA_SOURCE | 4 | gfp | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &trans->fs_info->commit_root_sem | ||
| HALF_LOCKED2 | &trans->fs_info->fs_devices->device_list_mutex | ||
| HALF_LOCKED2 | &trans->fs_info->fs_roots_radix_lock | ||
| HALF_LOCKED2 | &trans->fs_info->qgroup_ioctl_lock | ||
| HALF_LOCKED2 | &trans->fs_info->qgroup_lock | ||
| HALF_LOCKED2 | &trans->fs_info->unused_bg_unpin_mutex | ||
| HALF_LOCKED2 | &trans->transaction->delayed_refs.lock |
drivers/infiniband/hw/mlx5/mr.c __mlx5_ib_dereg_mr() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 1 | index | 0,256-u32max |
| PARAM_VALUE | 3 | entry | 0 |
| PARAM_VALUE | 4 | gfp | 3264 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->data_direct_lock |
drivers/infiniband/core/restrack.c restrack_drain_res() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 4096-ptr_max |
| PARAM_VALUE | 3 | entry | 1030 |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 2 | old | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | index | unit_array_size |
drivers/infiniband/core/restrack.c restrack_restore_res() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 4096-ptr_max |
| PARAM_VALUE | 2 | old | 1030 |
| PARAM_VALUE | 3 | entry | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 3 | entry | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | index | unit_array_size |
drivers/nvme/target/passthru.c nvmet_passthru_ctrl_enable() -> xa_cmpxchg()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | xa | 7465885993193889792 |
| PARAM_VALUE | 1 | index | 0-s32max,18446744071562067968-u64max |
| PARAM_VALUE | 2 | old | 0 |
| PARAM_VALUE | 3 | entry | 4096-ptr_max |
| PARAM_VALUE | 4 | gfp | 3264 |
| DATA_SOURCE | 3 | entry | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &buffer->mutex | ||
| LOCK2 | &frag->frag_sem | ||
| LOCK2 | &subsys->lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct configfs_buffer)->mutex | ||
| TYPE_LOCK | (struct configfs_fragment)->frag_sem | ||
| TYPE_LOCK | (struct nvmet_subsys)->lock |