/Linux-v6.6/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-v6.6/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-v6.6/include/linux/ |
D | slab.h | 632 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array() 653 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array() 693 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node() 752 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 | device.h | 321 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array() 336 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in devm_krealloc_array()
|
/Linux-v6.6/tools/include/tools/ |
D | libc_compat.h | 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
|
/Linux-v6.6/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-v6.6/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-v6.6/include/drm/ |
D | drm_managed.h | 81 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
|
/Linux-v6.6/tools/virtio/linux/ |
D | kernel.h | 122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
|
/Linux-v6.6/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-v6.6/security/selinux/ss/ |
D | policydb.h | 373 if (unlikely(check_mul_overflow(bytes, num, &len))) in put_entry()
|
/Linux-v6.6/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-v6.6/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-v6.6/drivers/gpu/drm/nouveau/ |
D | nouveau_drv.h | 195 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in u_memcpya()
|
/Linux-v6.6/arch/x86/kernel/cpu/ |
D | aperfmperf.c | 360 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
|
/Linux-v6.6/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-v6.6/init/ |
D | do_mounts.c | 90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | mlx5_core.h | 159 if (check_mul_overflow((int)item_size, (int)num_items, &inlen)) { in mlx5_flexible_inlen()
|
/Linux-v6.6/drivers/video/fbdev/core/ |
D | fbmem.c | 819 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var() 820 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
|
/Linux-v6.6/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-v6.6/drivers/iio/ |
D | industrialio-gts-helper.c | 565 if (check_mul_overflow(gain, mul, &res)) in iio_gts_sanity_check()
|
/Linux-v6.6/mm/ |
D | util.c | 700 if (unlikely(check_mul_overflow(n, size, &bytes))) in __vmalloc_array()
|
/Linux-v6.6/io_uring/ |
D | kbuf.c | 341 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
|
/Linux-v6.6/arch/s390/pci/ |
D | pci_dma.c | 573 if (unlikely(check_mul_overflow(n, sizeof(unsigned long), &bytes))) in bitmap_vzalloc()
|