/linux/tools/include/linux/ |
A 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/include/linux/ |
A D | overflow.h | 80 #define check_mul_overflow(a, b, d) __must_check_overflow(({ \ macro 135 if (check_mul_overflow(a, b, &bytes)) in array_size() 157 if (check_mul_overflow(a, b, &bytes)) in array3_size() 159 if (check_mul_overflow(bytes, c, &bytes)) in array3_size() 173 if (check_mul_overflow(a, b, &bytes)) in __ab_c_size()
|
A D | slab.h | 626 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array() 647 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array() 682 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node() 756 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array()
|
A D | device.h | 215 if (unlikely(check_mul_overflow(n, size, &bytes))) in devm_kmalloc_array()
|
/linux/kernel/bpf/ |
A D | bloom_filter.c | 120 if (check_mul_overflow(attr->max_entries, nr_hash_funcs, &nr_bits) || in bloom_map_alloc() 121 check_mul_overflow(nr_bits / 5, (u32)7, &nr_bits) || in bloom_map_alloc()
|
A D | verifier.c | 767 if (unlikely(check_mul_overflow(n, size, &bytes))) in copy_array()
|
/linux/tools/include/tools/ |
A D | libc_compat.h | 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
|
/linux/drivers/power/supply/ |
A 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/include/drm/ |
A D | drm_managed.h | 80 if (unlikely(check_mul_overflow(n, size, &bytes))) in drmm_kmalloc_array()
|
/linux/tools/virtio/linux/ |
A D | kernel.h | 125 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
|
/linux/drivers/gpu/drm/tegra/ |
A D | submit.c | 137 if (check_mul_overflow(count, size, ©_len)) in alloc_copy_user_array() 167 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, ©_len)) { in submit_copy_gather_data()
|
/linux/drivers/gpu/drm/i915/ |
A D | i915_utils.h | 133 if (check_mul_overflow(count, arr, &sz)) in __check_struct_size()
|
/linux/drivers/gpu/drm/qxl/ |
A D | qxl_display.c | 206 if (check_mul_overflow(width, 4u, &stride)) in qxl_check_mode() 208 if (check_mul_overflow(stride, height, &size)) in qxl_check_mode()
|
/linux/include/rdma/ |
A D | uverbs_ioctl.h | 874 if (unlikely(check_mul_overflow(n, size, &bytes))) in uverbs_kcalloc()
|
/linux/drivers/video/fbdev/core/ |
A D | fbmem.c | 1013 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var() 1014 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
|
/linux/drivers/iio/adc/ |
A D | xilinx-xadc-core.c | 619 if (check_mul_overflow(n, sizeof(*xadc->data), &new_size)) in xadc_update_scan_mode()
|
/linux/arch/x86/kernel/ |
A D | smpboot.c | 2250 if (check_mul_overflow(mcnt, arch_max_freq_ratio, &mcnt) || !mcnt) in arch_scale_freq_tick()
|
/linux/Documentation/process/ |
A D | deprecated.rst | 96 check_mul_overflow() family of functions.
|
/linux/Documentation/translations/it_IT/process/ |
A D | deprecated.rst | 105 funzioni check_add_overflow() e check_mul_overflow().
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_action.c | 870 if (unlikely(check_mul_overflow(num_of_dests, 2u, &ref_act_cnt))) in mlx5dr_action_create_mult_dest_tbl()
|
/linux/arch/x86/kvm/svm/ |
A D | sev.c | 2838 if (unlikely(check_mul_overflow(count, size, &bytes))) in sev_es_string_io()
|
/linux/fs/ |
A D | io_uring.c | 4424 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
|