| /linux/tools/include/linux/ |
| H A D | overflow.h | 63 #define check_mul_overflow(a, b, d) ({ \ macro 85 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul() 106 if (check_mul_overflow(a, b, &bytes)) in array_size() 128 if (check_mul_overflow(a, b, &bytes)) in array3_size() 130 if (check_mul_overflow(bytes, c, &bytes)) in array3_size() 140 if (check_mul_overflow(n, size, &bytes)) in __ab_c_size()
|
| /linux/tools/include/tools/ |
| H A D | libc_compat.h | 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
|
| /linux/kernel/bpf/ |
| H A D | bloom_filter.c | 132 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc() 133 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
|
| /linux/include/linux/ |
| H A D | overflow.h | 153 #define check_mul_overflow(a, b, d) \ macro 334 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul()
|
| H A D | slab.h | 1209 if (unlikely(check_mul_overflow(n, size, &bytes))) in _kmalloc_array_noprof() 1232 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in _krealloc_array_noprof() 1293 if (unlikely(check_mul_overflow(n, size, &bytes))) in _kmalloc_array_node_noprof() 1371 if (unlikely(check_mul_overflow(n, size, &bytes))) in _kvmalloc_array_node_noprof()
|
| /linux/tools/virtio/linux/ |
| H A D | kernel.h | 129 if (unlikely(check_mul_overflow(new_n, new_size, &bytes)))
|
| /linux/drivers/virtio/ |
| H A D | virtio_rtc_class.c | 142 if (check_mul_overflow((u64)alarm_time_sec, (u64)NSEC_PER_SEC, in viortc_class_set_alarm()
|
| /linux/drivers/md/ |
| H A D | dm-stripe.c | 464 !check_mul_overflow(io_min, sc->stripes, &io_opt)) { in stripe_io_hints() 469 if (!check_mul_overflow(max_hw_discard_sectors, sc->stripes, &max_hw_discard_sectors)) { in stripe_io_hints()
|
| /linux/drivers/iio/afe/ |
| H A D | iio-rescale.c | 43 if (!check_mul_overflow(*val, rescale->numerator, &_val) && in rescale_process_scale() 44 !check_mul_overflow(*val2, rescale->denominator, &_val2)) { in rescale_process_scale()
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_blit.c | 484 if (check_mul_overflow((size_t)dst_stride, (size_t)height - 1, &dst_end) || in vmw_external_bo_copy() 488 check_mul_overflow((size_t)src_stride, (size_t)height - 1, &src_end) || in vmw_external_bo_copy()
|
| /linux/security/selinux/ss/ |
| H A D | policydb.h | 366 if (unlikely(check_mul_overflow(bytes, num, &len))) in next_entry() 391 if (unlikely(check_mul_overflow(bytes, num, &len)))
|
| /linux/drivers/iio/ |
| H A D | industrialio-gts-helper.c | 386 if (unlikely(check_mul_overflow(gts->num_hwgain, 2 * sizeof(int), in iio_gts_build_avail_scale_table() 633 if (check_mul_overflow(gain, mul, &res)) in iio_gts_sanity_check()
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fbmem.c | 289 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var() 290 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
|
| /linux/arch/x86/kernel/cpu/ |
| H A D | aperfmperf.c | 452 if (check_mul_overflow(mcnt, freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
|
| /linux/drivers/hwmon/pmbus/ |
| H A D | adm1275.c | 950 if (unlikely(check_mul_overflow(coefficients[cindex].m, shunt, &m))) { in adm1275_probe() 961 if (unlikely(check_mul_overflow(coefficients[pindex].m, shunt, &m))) { in adm1275_probe()
|
| /linux/tools/perf/util/ |
| H A D | util.c | 499 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed()
|
| /linux/drivers/accel/ethosu/ |
| H A D | ethosu_gem.c | 174 if (check_mul_overflow(len, (u64)dma_st->size0, &len)) in dma_length() 181 if (check_mul_overflow(len, (u64)dma_st->size1, &len)) in dma_length()
|
| /linux/drivers/hwmon/ |
| H A D | ltc4282.c | 502 if (check_mul_overflow(power * temp, MICRO, &temp_2)) { in ltc4282_read_power_word() 556 if (check_mul_overflow(DECA * st->vfs_out * 40 * BIT(8), energy, &temp)) { in ltc4282_read_energy() 638 if (check_mul_overflow(temp, val, &temp_2)) { in ltc4282_write_power_word()
|
| /linux/sound/core/seq/ |
| H A D | seq_timer.c | 367 if (r && !check_mul_overflow(r, freq, &den)) in initialize_timer()
|
| /linux/drivers/acpi/ |
| H A D | mipi-disco-img.c | 211 if (check_mul_overflow(sizeof(*swnodes->ports) + in alloc_crs_csi2_swnodes()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | mlx5_core.h | 199 if (check_mul_overflow((int)item_size, (int)num_items, &inlen)) { in mlx5_flexible_inlen()
|
| /linux/drivers/clk/ |
| H A D | clk-divider.c | 322 bool overflow = check_mul_overflow(rate, (unsigned long)i, &target_parent_rate); in clk_divider_bestdiv()
|
| /linux/drivers/platform/x86/intel/ |
| H A D | vsec.c | 357 if (check_mul_overflow(intel_vsec_dev->num_resources, in intel_vsec_add_dev()
|
| /linux/drivers/ptp/ |
| H A D | ptp_clock.c | 172 check_mul_overflow(tmp, (s64)125, &tmp)) in ptp_clock_adjtime()
|
| /linux/io_uring/ |
| H A D | kbuf.c | 531 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
|