| /linux/tools/include/linux/ |
| H 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/block/partitions/ |
| H A 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/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 | 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/include/linux/ |
| H A D | slab.h | 1001 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_noprof() 1031 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array_noprof() 1071 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node_noprof() 1119 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array_node_noprof()
|
| H A D | string.h | 36 if (check_mul_overflow(n, size, &nbytes)) in memdup_array_user() 56 if (check_mul_overflow(n, size, &nbytes)) in vmemdup_array_user()
|
| /linux/net/netfilter/ |
| H A 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/tools/virtio/linux/ |
| H A D | kernel.h | 122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
|
| /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/iio/afe/ |
| H A 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/drivers/gpu/drm/tegra/ |
| H A 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/drivers/video/fbdev/core/ |
| H A D | fbmem.c | 286 if (check_mul_overflow(var->xres, var->yres, &unused) || in fb_set_var() 287 check_mul_overflow(var->xres_virtual, var->yres_virtual, &unused)) in fb_set_var()
|
| /linux/security/selinux/ss/ |
| H A D | policydb.h | 373 if (unlikely(check_mul_overflow(bytes, num, &len))) in put_entry()
|
| /linux/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_drv.h | 194 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in u_memcpya()
|
| /linux/init/ |
| H A D | do_mounts.c | 90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
|
| /linux/drivers/md/ |
| H A D | dm-stripe.c | 464 !check_mul_overflow(io_min, sc->stripes, &io_opt)) { in stripe_io_hints()
|
| /linux/drivers/gpu/drm/qxl/ |
| H A 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/drivers/hv/ |
| H A D | mshv_root_main.c | 607 if (check_mul_overflow(check, PAGE_SIZE, &check)) in mshv_vp_ioctl_get_set_state_pfn() 1455 if (check_mul_overflow(args.page_count, sizeof(*states), &states_buf_sz)) in mshv_partition_ioctl_get_gpap_access_bitmap()
|
| /linux/include/rdma/ |
| H A D | uverbs_ioctl.h | 884 if (unlikely(check_mul_overflow(n, size, &bytes))) in uverbs_kcalloc()
|
| /linux/io_uring/ |
| H A D | kbuf.c | 500 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
|
| /linux/mm/ |
| H A D | util.c | 631 if (unlikely(check_mul_overflow(n, size, &bytes))) in __vmalloc_array_noprof()
|
| /linux/fs/smb/server/ |
| H A D | transport_ipc.c | 319 if (check_mul_overflow(req->deadtime, SMB_ECHO_INTERVAL, in ipc_server_config_on_startup()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_modes.c | 1301 if (check_mul_overflow(mode->clock, num, &num)) in drm_mode_vrefresh() 1304 if (check_mul_overflow(mode->htotal * mode->vtotal, den, &den)) in drm_mode_vrefresh()
|
| /linux/drivers/acpi/ |
| H A D | property.c | 450 if (check_mul_overflow((size_t)properties->package.count, in acpi_data_add_buffer_props()
|
| /linux/drivers/vfio/ |
| H A D | vfio_iommu_type1.c | 916 if (check_mul_overflow(npage, PAGE_SIZE, &iova_size) || in vfio_iommu_type1_pin_pages() 1036 if (WARN_ON(check_mul_overflow(npage, PAGE_SIZE, &iova_size) || in vfio_iommu_type1_unpin_pages()
|