/linux-6.12.1/tools/include/linux/ |
D | overflow.h | 62 #define check_mul_overflow(a, b, d) ({ \ macro 86 if (check_mul_overflow(a, b, &bytes)) in array_size() 108 if (check_mul_overflow(a, b, &bytes)) in array3_size() 110 if (check_mul_overflow(bytes, c, &bytes)) in array3_size() 120 if (check_mul_overflow(n, size, &bytes)) in __ab_c_size()
|
/linux-6.12.1/block/partitions/ |
D | amiga.c | 95 if (check_mul_overflow(blk, (sector_t) blksize, &blk)) { in amiga_partition() 125 if (check_mul_overflow(nr_hd, nr_sect, &cylblk)) { in amiga_partition() 142 if (check_mul_overflow(cylblk, blksize, &cylblk)) { in amiga_partition()
|
/linux-6.12.1/tools/include/tools/ |
D | libc_compat.h | 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
|
/linux-6.12.1/kernel/bpf/ |
D | bloom_filter.c | 127 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc() 128 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
|
/linux-6.12.1/fs/bcachefs/ |
D | darray.c | 20 if (unlikely(check_mul_overflow(new_size, element_size, &bytes))) in __bch2_darray_resize_noprof()
|
/linux-6.12.1/include/linux/ |
D | slab.h | 919 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_noprof() 951 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array_noprof() 991 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node_noprof() 1037 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array_node_noprof()
|
D | overflow.h | 159 #define check_mul_overflow(a, b, d) \ macro 270 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul()
|
D | string.h | 35 if (check_mul_overflow(n, size, &nbytes)) in memdup_array_user() 55 if (check_mul_overflow(n, size, &nbytes)) in vmemdup_array_user()
|
D | device.h | 335 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array() 350 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in devm_krealloc_array()
|
/linux-6.12.1/net/netfilter/ |
D | nft_limit.c | 73 if (check_mul_overflow(unit, NSEC_PER_SEC, &priv->nsecs)) in nft_limit_init() 88 if (check_mul_overflow(tmp, priv->burst, &tokens)) in nft_limit_init() 97 if (check_mul_overflow(priv->nsecs, rate_with_burst, &tmp)) in nft_limit_init()
|
/linux-6.12.1/drivers/power/supply/ |
D | power_supply_hwmon.c | 255 if (check_mul_overflow(pspval.intval, 100, in power_supply_hwmon_read() 291 if (check_mul_overflow(pspval.intval, 1000, in power_supply_hwmon_write()
|
/linux-6.12.1/include/drm/ |
D | drm_managed.h | 85 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
|
/linux-6.12.1/tools/virtio/linux/ |
D | kernel.h | 122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
|
/linux-6.12.1/drivers/iio/afe/ |
D | iio-rescale.c | 44 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 45 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
|
/linux-6.12.1/drivers/iio/light/ |
D | rohm-bu27034.c | 682 if (check_mul_overflow(helper, coeff, &helper)) in bu27034_fixp_calc_t1() 685 if (check_mul_overflow(helper, gain0, &tmp)) in bu27034_fixp_calc_t1() 698 if (!check_mul_overflow(coeff, ch, &helper)) in bu27034_fixp_calc_t23()
|
/linux-6.12.1/drivers/gpu/drm/tegra/ |
D | submit.c | 166 if (check_mul_overflow(count, size, ©_len)) in alloc_copy_user_array() 191 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, ©_len)) { in submit_copy_gather_data()
|
/linux-6.12.1/drivers/video/fbdev/core/ |
D | fbmem.c | 279 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var() 280 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
|
/linux-6.12.1/security/selinux/ss/ |
D | policydb.h | 371 if (unlikely(check_mul_overflow(bytes, num, &len))) in put_entry()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/ |
D | nouveau_drv.h | 195 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in u_memcpya()
|
/linux-6.12.1/arch/x86/kernel/cpu/ |
D | aperfmperf.c | 447 if (check_mul_overflow(mcnt, freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
|
/linux-6.12.1/init/ |
D | do_mounts.c | 90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
|
/linux-6.12.1/tools/perf/util/ |
D | util.c | 527 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed()
|
/linux-6.12.1/drivers/hwmon/ |
D | ltc4282.c | 511 if (check_mul_overflow(power * temp, MICRO, &temp_2)) { in ltc4282_read_power_word() 565 if (check_mul_overflow(DECA * st->vfs_out * 40 * BIT(8), energy, &temp)) { in ltc4282_read_energy() 646 if (check_mul_overflow(temp, val, &temp_2)) { in ltc4282_write_power_word()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | mlx5_core.h | 178 if (check_mul_overflow((int)item_size, (int)num_items, &inlen)) { in mlx5_flexible_inlen()
|
/linux-6.12.1/drivers/gpu/drm/qxl/ |
D | qxl_display.c | 209 if (check_mul_overflow(width, 4u, &stride)) in qxl_check_mode() 211 if (check_mul_overflow(stride, height, &size)) in qxl_check_mode()
|