Defined in 1 files as a function:
Referenced in 28 files:
- arch/arm64/mm/init.c, line 444
- arch/s390/mm/init.c, line 316
- arch/x86/mm/init.c, line 1073
- crypto/rsa-pkcs1pad.c, line 154
- drivers/bus/mhi/host/internal.h, line 181
- drivers/dma-buf/st-dma-fence-chain.c, line 377
- drivers/infiniband/core/cma.c, line 3760
- drivers/infiniband/hw/hns/hns_roce_ah.c, line 45
- drivers/iommu/generic_pt/kunit_iommu_pt.h, line 354
- drivers/mtd/nand/raw/nandsim.c, line 1407
- drivers/net/wireguard/selftest/allowedips.c
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c, line 1157
- drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c, line 1303
- drivers/net/wireless/virtual/mac80211_hwsim_nan.c
- fs/f2fs/segment.c
- kernel/kcsan/selftest.c, line 34
- kernel/printk/printk_ringbuffer_kunit_test.c, line 121
- lib/test_hexdump.c
- lib/test_vmalloc.c
- lib/tests/printf_kunit.c, line 133
- mm/kasan/kasan_test_c.c
- mm/kfence/kfence_test.c, line 554
- net/bluetooth/mgmt.c, line 7573
- net/core/pktgen.c
- net/ipv4/inet_hashtables.c, line 1099
- net/ipv4/tcp_input.c, line 4058
- net/ipv6/addrconf.c
- net/xfrm/xfrm_state.c, line 2645
Smatch caller information:
mm/kfence/kfence_test.c test_free_bulk() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 8 |
| PARAM_VALUE | 1 | ceil | 307 |
crypto/rsa-pkcs1pad.c pkcs1pad_encrypt() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 255 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
lib/test_hexdump.c test_hexdump_init() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 2 |
lib/test_hexdump.c test_hexdump_init() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 2 |
lib/test_hexdump.c test_hexdump_overflow_set() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 2 |
lib/test_hexdump.c test_hexdump_set() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 0-32 |
| CAPPED_DATA | 1 | ceil | 1 |
| UNITS | 1 | ceil | unit_byte |
drivers/net/wireguard/allowedips.c randomized_test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 32 |
| LOCK2 | &mutex |
drivers/net/wireguard/allowedips.c randomized_test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 32 |
| LOCK2 | &mutex |
drivers/net/wireguard/allowedips.c randomized_test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 128 |
| LOCK2 | &mutex |
drivers/net/wireguard/allowedips.c randomized_test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 128 |
| LOCK2 | &mutex |
drivers/bus/mhi/host/boot.c mhi_fw_load_bhi() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 1073741823 |
| LOCK2 | bh | ||
| LOCK2 | pm_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/bus/mhi/host/boot.c mhi_fw_load_bhie() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 1073741823 |
| LOCK2 | bh | ||
| LOCK2 | pm_lock | ||
| HALF_LOCKED2 | &pool->lock |
drivers/bus/mhi/host/boot.c mhi_rddm_prepare() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 1073741823 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mhi_cntrl->pm_mutex | ||
| TYPE_LOCK | (struct mhi_controller)->pm_mutex |
net/xfrm/xfrm_state.c xfrm_alloc_spi() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-u16max |
| PARAM_VALUE | 1 | ceil | 0-u16max |
| CAPPED_DATA | 0 | floor | 1 |
| CAPPED_DATA | 1 | ceil | 1 |
| DATA_SOURCE | 0 | floor | $1 |
| DATA_SOURCE | 1 | ceil | $2 |
| PARAM_COMPARE | 0 | floor | < $1 |
| PARAM_COMPARE | 1 | ceil | > $0 |
| NOSPEC | 0 | floor | |
| NOSPEC | 0 | floor | |
| NOSPEC | 1 | ceil | |
| NOSPEC | 1 | ceil | |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | floor | 0-u16max[c] |
| USER_DATA | 1 | ceil | 0-u16max[c] |
| LOCK2 | &x->lock | ||
| HALF_LOCKED2 | &net->xfrm.xfrm_cfg_mutex | ||
| HALF_LOCKED2 | bh | ||
| TYPE_LOCK | (struct xfrm_state)->lock |
arch/x86/mm/init.c execmem_arch_setup() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 1024 |
| LOCK2 | irq |
drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c iwl_mvm_mac_ctxt_cmd_fill_ap() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 36 |
| PARAM_VALUE | 1 | ceil | 63 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &mvm->mutex | ||
| HALF_LOCKED2 | global &rtnl_mutex | ||
| TYPE_LOCK | (struct iwl_mvm)->mutex |
net/core/pktgen.c mod_cur_headers() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-65534 |
| PARAM_VALUE | 1 | ceil | 0-65534 |
| CAPPED_DATA | 0 | floor | 1 |
net/core/pktgen.c mod_cur_headers() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-65534 |
| PARAM_VALUE | 1 | ceil | 0-65534 |
| CAPPED_DATA | 0 | floor | 1 |
net/core/pktgen.c mod_cur_headers() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-4294967294 |
| CAPPED_DATA | 0 | floor | 1 |
| USER_DATA | 0 | floor | 0-4294967294 |
| UNITS | 0 | floor | unit_byte |
| UNITS | 1 | ceil | unit_byte |
net/core/pktgen.c mod_cur_headers() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-4294967294 |
| CAPPED_DATA | 0 | floor | 1 |
| NOSPEC | 0 | floor | |
| USER_DATA | 0 | floor | 0-4294967294[c] |
| UNITS | 0 | floor | unit_byte |
| UNITS | 1 | ceil | unit_byte |
net/core/pktgen.c mod_cur_headers() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-2147483646,2147483648-u32max |
| CAPPED_DATA | 0 | floor | 1 |
| UNITS | 0 | floor | unit_byte |
| UNITS | 1 | ceil | unit_byte |
net/core/pktgen.c set_cur_queue_map() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| CAPPED_DATA | 0 | floor | 1 |
| PARAM_COMPARE | 0 | floor | <= $1 |
| PARAM_COMPARE | 1 | ceil | >= $0 |
kernel/printk/printk_ringbuffer_kunit_test.c prbtest_writer() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 2 |
| PARAM_VALUE | 1 | ceil | 128 |
drivers/infiniband/core/cma.c cma_alloc_any_port() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-u16max |
| PARAM_VALUE | 1 | ceil | 0-131070,4294901761-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &lock | ||
| HALF_LOCKED2 | &ctx->mutex |
fs/f2fs/segment.c __get_next_segno() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &curseg->curseg_mutex | ||
| HALF_LOCKED2 | &sbi->cp_global_sem.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->cp_rwsem.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->gc_lock.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->io_order_lock.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->pin_sem.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->umount_mutex | ||
| HALF_LOCKED2 | &sit_i->sentry_lock |
fs/f2fs/segment.c f2fs_randomize_chunk() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &seg->curseg_mutex | ||
| LOCK2 | &sit_i->sentry_lock | ||
| HALF_LOCKED2 | &sbi->cp_rwsem.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->gc_lock.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->io_order_lock.internal_rwsem | ||
| TYPE_LOCK | (struct curseg_info)->curseg_mutex | ||
| TYPE_LOCK | (struct sit_info)->sentry_lock |
fs/f2fs/segment.c f2fs_randomize_chunk() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &seg->curseg_mutex | ||
| LOCK2 | &sit_i->sentry_lock | ||
| HALF_LOCKED2 | &sbi->cp_rwsem.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->gc_lock.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->io_order_lock.internal_rwsem | ||
| TYPE_LOCK | (struct curseg_info)->curseg_mutex | ||
| TYPE_LOCK | (struct sit_info)->sentry_lock |
fs/f2fs/segment.c new_curseg() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &curseg->curseg_mutex | ||
| HALF_LOCKED2 | &sbi->cp_rwsem.internal_rwsem | ||
| HALF_LOCKED2 | &sbi->gc_lock.internal_rwsem | ||
| HALF_LOCKED2 | &sit_i->sentry_lock |
net/bluetooth/mgmt.c get_conn_info() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &hdev->lock | ||
| LOCK2 | global &mgmt_chan_list_lock | ||
| LOCK2 | sk | ||
| HALF_LOCKED2 | &vq->mutex | ||
| HALF_LOCKED2 | sk | ||
| TYPE_LOCK | (struct hci_dev)->lock |
net/ipv4/tcp_input.c tcp_challenge_ack_allowed() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 0-1073741823 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &sk->sk_lock.slock | ||
| HALF_LOCKED2 | sk |
drivers/infiniband/hw/hns/hns_roce_ah.c get_ah_udp_sport() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 49152 |
| PARAM_VALUE | 1 | ceil | u16max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/mtd/nand/raw/nandsim.c ns_do_bit_flips() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 2-u32max |
| FUZZY_MAX | 1 | ceil | 2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &chip->controller->lock | ||
| HALF_LOCKED2 | &chip->lock |
net/ipv6/addrconf.c rfc3315_s14_backoff_init() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 900000 |
| PARAM_VALUE | 1 | ceil | 1100000 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | bh | ||
| LOCK2 | global &rtnl_mutex | ||
| HALF_LOCKED2 | &af_ops->srcu | ||
| HALF_LOCKED2 | &idev->lock | ||
| HALF_LOCKED2 | &ifp->idev->lock | ||
| HALF_LOCKED2 | &ifp->lock | ||
| HALF_LOCKED2 | &net->rtnl_mutex | ||
| TYPE_LOCK | (struct inet6_dev)->lock |
net/ipv6/addrconf.c rfc3315_s14_backoff_update() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1900000 |
| PARAM_VALUE | 1 | ceil | 2100000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &idev->lock | ||
| TYPE_LOCK | (struct inet6_dev)->lock |
net/ipv6/addrconf.c rfc3315_s14_backoff_update() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 900000 |
| PARAM_VALUE | 1 | ceil | 1100000 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &idev->lock | ||
| TYPE_LOCK | (struct inet6_dev)->lock |
drivers/dma-buf/st-dma-fence-chain.c __find_race() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| UNITS | 1 | ceil | unit_array_size |
net/ipv4/inet_hashtables.c __inet_hash_connect() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 1-u32max |
| CAPPED_DATA | 1 | ceil | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &once_mutex | ||
| HALF_LOCKED2 | sk |
lib/test_vmalloc.c pcpu_alloc_test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 1024 |
lib/test_vmalloc.c pcpu_alloc_test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 11 |
lib/test_vmalloc.c random_size_alloc_test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 100 |
lib/tests/printf_kunit.c __test() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 1-256 |
| CAPPED_DATA | 1 | ceil | 1 |
drivers/net/wireless/virtual/mac80211_hwsim_nan.c mac80211_hwsim_nan_exec_state_transitions() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 120 |
| PARAM_VALUE | 1 | ceil | 240 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &data->nan.state_lock | ||
| HALF_LOCKED2 | irq | ||
| TYPE_LOCK | (struct mac80211_hwsim_nan_data)->state_lock |
drivers/net/wireless/virtual/mac80211_hwsim_nan.c mac80211_hwsim_nan_resume_txqs() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 100000 |
| PARAM_VALUE | 1 | ceil | 5000000 |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | rcu_read | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | irq |
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c brcmf_p2p_afx_handler() -> get_random_u32_inclusive()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | floor | 1 |
| PARAM_VALUE | 1 | ceil | 3 |
| HALF_LOCKED2 | &pool->lock |