/linux-6.8/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.8/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.8/include/linux/ |
D | slab.h | 623 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array() 644 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array() 684 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node() 743 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array()
|
D | overflow.h | 96 #define check_mul_overflow(a, b, d) \ macro 191 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul()
|
D | string.h | 33 if (check_mul_overflow(n, size, &nbytes)) in memdup_array_user() 52 if (check_mul_overflow(n, size, &nbytes)) in vmemdup_array_user()
|
D | device.h | 320 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array() 335 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in devm_krealloc_array()
|
/linux-6.8/tools/include/tools/ |
D | libc_compat.h | 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
|
/linux-6.8/kernel/bpf/ |
D | bloom_filter.c | 115 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc() 116 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
|
/linux-6.8/drivers/power/supply/ |
D | power_supply_hwmon.c | 236 if (check_mul_overflow(pspval.intval, 100, in power_supply_hwmon_read() 272 if (check_mul_overflow(pspval.intval, 1000, in power_supply_hwmon_write()
|
/linux-6.8/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.8/include/drm/ |
D | drm_managed.h | 81 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
|
/linux-6.8/tools/virtio/linux/ |
D | kernel.h | 122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
|
/linux-6.8/drivers/cxl/core/ |
D | cdat.c | 126 rc = check_mul_overflow(le64_to_cpu(le_base), in cdat_dslbis_handler() 454 if (check_mul_overflow(le64_to_cpu(le_base), in cdat_sslbis_handler()
|
/linux-6.8/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.8/drivers/iio/light/ |
D | rohm-bu27034.c | 859 if (check_mul_overflow(helper, coeff, &helper)) in bu27034_fixp_calc_t1() 862 if (check_mul_overflow(helper, gain0, &tmp)) in bu27034_fixp_calc_t1() 875 if (!check_mul_overflow(coeff, ch, &helper)) in bu27034_fixp_calc_t23()
|
/linux-6.8/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.8/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.8/drivers/gpu/drm/nouveau/ |
D | nouveau_drv.h | 195 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in u_memcpya()
|
/linux-6.8/security/selinux/ss/ |
D | policydb.h | 373 if (unlikely(check_mul_overflow(bytes, num, &len))) in put_entry()
|
/linux-6.8/arch/x86/kernel/cpu/ |
D | aperfmperf.c | 360 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
|
/linux-6.8/init/ |
D | do_mounts.c | 90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
|
/linux-6.8/tools/perf/util/ |
D | util.c | 521 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed()
|
/linux-6.8/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.8/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()
|
/linux-6.8/drivers/acpi/ |
D | mipi-disco-img.c | 211 if (check_mul_overflow(sizeof(*swnodes->ports) + in alloc_crs_csi2_swnodes()
|