| /linux/tools/include/linux/ |
| H A D | overflow.h | 62 #define check_mul_overflow(a, b, d) ({ \ macro 84 if (check_mul_overflow(factor1, factor2, &bytes)) in size_mul() 105 if (check_mul_overflow(a, b, &bytes)) in array_size() 127 if (check_mul_overflow(a, b, &bytes)) in array3_size() 129 if (check_mul_overflow(bytes, c, &bytes)) in array3_size() 139 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/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/tools/include/tools/ |
| H A D | libc_compat.h | 15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
|
| /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/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 | 1095 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_noprof() 1125 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array_noprof() 1165 if (unlikely(check_mul_overflow(n, size, &bytes))) in kmalloc_array_node_noprof() 1213 if (unlikely(check_mul_overflow(n, size, &bytes))) in kvmalloc_array_node_noprof()
|
| H A D | string.h | 13 #include <linux/overflow.h> /* for check_mul_overflow() */ 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/tools/virtio/linux/ |
| H A D | kernel.h | 123 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/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/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/security/selinux/ss/ |
| H A D | policydb.h | 373 if (unlikely(check_mul_overflow(bytes, num, &len))) in put_entry()
|
| /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/arch/x86/kernel/cpu/ |
| H A D | aperfmperf.c | 452 if (check_mul_overflow(mcnt, freq_ratio, &mcnt) || !mcnt) in scale_freq_tick()
|
| /linux/init/ |
| H A D | do_mounts.c | 83 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
|
| /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() 639 if (check_mul_overflow(temp, val, &temp_2)) { in ltc4282_write_power_word()
|
| /linux/tools/perf/util/ |
| H A D | util.c | 497 if (check_mul_overflow(new_sz, (size_t)2, &new_sz)) in do_realloc_array_as_needed()
|
| /linux/drivers/gpu/drm/qxl/ |
| H A D | qxl_display.c | 211 if (check_mul_overflow(width, 4u, &stride)) in qxl_check_mode() 213 if (check_mul_overflow(stride, height, &size)) in qxl_check_mode()
|
| /linux/drivers/acpi/ |
| H A D | mipi-disco-img.c | 211 if (check_mul_overflow(sizeof(*swnodes->ports) + in alloc_crs_csi2_swnodes()
|
| /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 | 517 if (check_mul_overflow((unsigned long)p->len, (unsigned long)p->nbufs, in io_provide_buffers_prep()
|
| /linux/drivers/hv/ |
| H A D | mshv_root_main.c | 711 if (check_mul_overflow(check, PAGE_SIZE, &check)) in mshv_vp_ioctl_get_set_state_pfn() 1456 if (check_mul_overflow(args.page_count, sizeof(*states), &states_buf_sz)) in mshv_partition_ioctl_get_gpap_access_bitmap()
|
| /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()
|