Defined in 1 files as a prototype:
Referenced in 21 files:
- crypto/testmgr.c, line 880
- drivers/block/drbd/drbd_main.c
- drivers/block/drbd/drbd_nl.c, line 3248
- drivers/dpll/zl3073x/core.c, line 1028
- drivers/gpu/drm/i915/i915_gem_gtt.c, line 139
- drivers/gpu/drm/xe/tests/xe_bo.c, line 678
- drivers/iommu/generic_pt/kunit_generic_pt.h
- drivers/md/dm-flakey.c
- drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c, line 101
- drivers/net/netdevsim/psample.c
- drivers/of/kexec.c, line 497
- fs/dlm/lockspace.c, line 499
- include/linux/random.h, line 47
- kernel/locking/test-ww_mutex.c, line 739
- kernel/seccomp.c, line 1898
- mm/damon/core.c, line 867
- mm/damon/tests/core-kunit.h, line 1626
- mm/shuffle.c, line 174
- mm/slab_common.c, line 1047
- net/sched/sch_netem.c, line 1183
- tools/testing/cxl/test/cxl_translate.c, line 261
Smatch caller information:
kernel/fork.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
net/sched/sch_netem.c netem_init() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| 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 &hwsim_phys_lock | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | global &rx_queue_mutex |
fs/gfs2/glock.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/slub.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | global &slab_mutex | ||
| HALF_LOCKED2 | irq |
drivers/block/drbd/drbd_nl.c drbd_nl_resume_io_doit() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | &dev->lock | ||
| HALF_LOCKED2 | &devlink->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| 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 drbd_resource)->adm_mutex |
drivers/of/kexec.c of_kexec_alloc_and_setup_fdt() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|
mm/slab_common.c create_kmalloc_caches() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | irq |
drivers/gpu/drm/i915/i915_gem_gtt.c random_offset() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ggtt->vm.mutex | ||
| HALF_LOCKED2 | >->ggtt->vm.mutex | ||
| HALF_LOCKED2 | &gvt->lock | ||
| HALF_LOCKED2 | &vm->mutex | ||
| TYPE_LOCK | (struct i915_address_space)->mutex |
arch/x86/kernel/espfix_64.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | irq |
mm/util.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
drivers/block/drbd/drbd_main.c drbd_gen_and_send_sync_uuid() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| LOCK2 | device->state_mutex |
drivers/block/drbd/drbd_main.c drbd_uuid_new_current() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &adm_ctx->resource->adm_mutex | ||
| HALF_LOCKED2 | device->state_mutex | ||
| HALF_LOCKED2 | rcu_read |
crypto/testmgr.c init_rnd_state() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | global &once_lock |
init/main.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|
drivers/gpu/drm/xe/xe_bo.c shrink_test_run_device() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|
kernel/locking/test-ww_mutex.c test_ww_mutex_init() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|
drivers/net/ethernet/mellanox/mlx5/core/lib/ipsec_fs_roce.c ipsec_fs_create_aliased_ft() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &*ipsec_roce->devcom->comp->sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct mlx5e_ipsec_ft)->mutex |
mm/debug_vm_pgtable.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|
mm/damon/core.c damon_new_ctx() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
mm/damon/core.c damon_test_rand() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|
drivers/dpll/zl3073x/core.c zl3073x_dev_probe() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/dlm/lockspace.c new_lockspace() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &ls_lock |
drivers/net/netdevsim/psample.c nsim_dev_psample_md_prepare() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &pool->lock |
drivers/net/netdevsim/psample.c nsim_dev_psample_md_prepare() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| HALF_LOCKED2 | &pool->lock |
arch/x86/mm/mmap.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| HALF_LOCKED2 | &tsk->signal->exec_update_lock |
drivers/md/dm-flakey.c flakey_end_io() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &bio->bi_bdev->bd_queue->queue_lock |
drivers/md/dm-flakey.c flakey_map() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &md->io_barrier | ||
| HALF_LOCKED2 | &bio->bi_bdev->bd_queue->queue_lock | ||
| HALF_LOCKED2 | &md->swap_bios_semaphore | ||
| TYPE_LOCK | (struct mapped_device)->io_barrier |
kernel/seccomp.c init_listener() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|
mm/shuffle.c get_random_long() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &z->lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct zone)->lock |
mm/shuffle.c shuffle_pick_tail() -> get_random_u64()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &zone->lock | ||
| HALF_LOCKED2 | global &mf_mutex | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct zone)->lock |