| /linux/drivers/net/ethernet/sfc/ |
| H A D | efx_reflash.c | 30 if (check_add_overflow(header_offset, EFX_REFLASH_HEADER_LENGTH_OFST + in efx_reflash_parse_reflash_header() 48 if (check_add_overflow(header_offset, header_len, &trailer_offset) || in efx_reflash_parse_reflash_header() 49 check_add_overflow(trailer_offset, payload_size, &trailer_offset) || in efx_reflash_parse_reflash_header() 50 check_add_overflow(trailer_offset, EFX_REFLASH_TRAILER_LEN, in efx_reflash_parse_reflash_header() 117 if (check_add_overflow(header_offset, EFX_SNICIMAGE_HEADER_MINLEN, in efx_reflash_parse_snic_header() 132 if (check_add_overflow(header_offset, header_len, &header_end)) in efx_reflash_parse_snic_header() 135 if (check_add_overflow(header_end, payload_size, &payload_end) || in efx_reflash_parse_snic_header() 172 if (check_add_overflow(header_offset, EFX_SNICBUNDLE_HEADER_LEN, in efx_reflash_parse_snic_bundle_header()
|
| /linux/include/linux/usb/ |
| H A D | func_utils.h | 31 if (check_add_overflow(offset, size, \ 48 if (check_add_overflow(offset, groupname##_##name##__sz,\
|
| /linux/tools/include/linux/ |
| H A D | overflow.h | 44 #define check_add_overflow(a, b, d) ({ \ macro 122 if (check_add_overflow(bytes, c, &bytes)) in __ab_c_size()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_exchmaps.c | 694 if (check_add_overflow(req->ip1_bcount, bmbt_blocks, &req->ip1_bcount)) in xfs_exchmaps_estimate_overhead() 696 if (check_add_overflow(req->ip2_bcount, bmbt_blocks, &req->ip2_bcount)) in xfs_exchmaps_estimate_overhead() 704 if (check_add_overflow(resblks, bmbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead() 706 if (check_add_overflow(resblks, bmbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead() 708 if (check_add_overflow(resblks, rmapbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead() 710 if (check_add_overflow(resblks, rmapbt_blocks, &resblks)) in xfs_exchmaps_estimate_overhead() 881 if (check_add_overflow(ifp->if_nextents, (uint64_t)delta, in xmi_ensure_delta_nextents()
|
| H A D | xfs_group.h | 176 if (glen == 0 || check_add_overflow(gbno, glen - 1, &end)) in xfs_verify_gbext()
|
| /linux/lib/ |
| H A D | buildid.c | 172 if (check_add_overflow(note_off, note_size, ¬e_end)) in parse_build_id() 184 if (check_add_overflow(new_off, ALIGN(name_sz, 4), &new_off) || in parse_build_id() 185 check_add_overflow(new_off, ALIGN(desc_sz, 4), &new_off) || in parse_build_id()
|
| /linux/io_uring/ |
| H A D | memmap.c | 46 if (check_add_overflow(uaddr, len, &end)) in io_pin_pages() 48 if (check_add_overflow(end, PAGE_SIZE - 1, &end)) in io_pin_pages() 210 if (check_add_overflow(reg->user_addr, reg->size, &end)) in io_create_region()
|
| H A D | rsrc.c | 92 if (check_add_overflow(base, acct_len, &tmp)) in io_validate_user_buf_range() 354 if (check_add_overflow(up->offset, nr_args, &tmp)) in __io_register_rsrc_update() 1037 if (unlikely(check_add_overflow(buf_addr, (u64)len, &buf_end))) in validate_fixed_range() 1191 if (check_add_overflow(arg->nr, arg->dst_off, &nbufs)) in io_clone_buffers() 1220 if (check_add_overflow(arg->nr, arg->src_off, &off)) in io_clone_buffers() 1370 if (unlikely(check_add_overflow(total_len, iov_len, &total_len))) in io_vec_fill_bvec() 1474 if (unlikely(check_add_overflow(total_len, iov[i].iov_len, in io_kern_bvec_size()
|
| H A D | filetable.c | 147 if (check_add_overflow(range.off, range.len, &end)) in io_register_file_alloc_range()
|
| /linux/drivers/iommu/iommufd/ |
| H A D | viommu.c | 303 if (check_add_overflow(offset, cmd->length, &length)) in iommufd_hw_queue_alloc_phys() 305 if (check_add_overflow(length, PAGE_SIZE - 1, &length)) in iommufd_hw_queue_alloc_phys() 371 if (check_add_overflow(cmd->nesting_parent_iova, cmd->length - 1, in iommufd_hw_queue_alloc_ioctl()
|
| H A D | device.c | 1342 WARN_ON(check_add_overflow(iova, length - 1, &last_iova))) in iommufd_access_unpin_pages() 1427 if (check_add_overflow(iova, length - 1, &last_iova)) in iommufd_access_pin_pages() 1511 if (check_add_overflow(iova, length - 1, &last_iova)) in iommufd_access_rw()
|
| /linux/drivers/rtc/ |
| H A D | rtc-s32g.c | 106 if (check_add_overflow(ktime_get_real_seconds(), in s32g_rtc_read_time() 343 if (check_add_overflow(priv->sleep_sec, div64_u64(apival, priv->rtc_hz), in s32g_rtc_suspend()
|
| /linux/block/partitions/ |
| H A D | amiga.c | 169 if (check_add_overflow(start_sect, nr_sects, &end_sect)) { in amiga_partition()
|
| /linux/fs/ntfs3/ |
| H A D | run.c | 987 if (check_add_overflow(prev_lcn, dlcn, &lcn)) in run_unpack() 995 if (check_add_overflow(vcn64, len, &next_vcn)) in run_unpack() 1161 if (check_add_overflow(vcn64, len, &vcn64)) in run_get_highest_vcn()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_nvm.c | 476 if (check_add_overflow(pfa_ptr, pfa_len - 1, &max_tlv)) { in ice_get_pfa_module_tlv() 511 if (check_add_overflow(next_tlv, 2, &next_tlv) || in ice_get_pfa_module_tlv() 512 check_add_overflow(next_tlv, tlv_len, &next_tlv)) { in ice_get_pfa_module_tlv()
|
| /linux/drivers/infiniband/core/ |
| H A D | ib_core_uverbs.c | 301 if (check_add_overflow(xa_first, npages, &xa_last)) in rdma_user_mmap_entry_insert_range()
|
| H A D | umem_dmabuf.c | 129 if (check_add_overflow(offset, (unsigned long)size, &end)) in ib_umem_dmabuf_get_with_dma_device()
|
| H A D | umem_odp.c | 73 if (check_add_overflow(umem_odp->umem.address, in ib_init_umem_odp()
|
| /linux/fs/xfs/ |
| H A D | xfs_exchrange.c | 387 if (check_add_overflow(fxr->file1_offset, fxr->length, &tmp) || in xfs_exchange_range_checks() 388 check_add_overflow(fxr->file2_offset, fxr->length, &tmp)) in xfs_exchange_range_checks()
|
| /linux/drivers/vfio/ |
| H A D | vfio_iommu_type1.c | 917 check_add_overflow(user_iova, iova_size - 1, &iova_end)) in vfio_iommu_type1_pin_pages() 1037 check_add_overflow(user_iova, iova_size - 1, &iova_end))) in vfio_iommu_type1_unpin_pages() 1434 if (check_add_overflow(iova, size - 1, &iova_end)) { in vfio_dma_do_unmap() 1701 if (check_add_overflow(iova, size - 1, &iova_end) || in vfio_dma_do_map() 1702 check_add_overflow(vaddr, size - 1, &vaddr_end)) in vfio_dma_do_map() 3036 if (check_add_overflow(iova, size - 1, &iova_end)) in vfio_iommu_type1_dirty_pages()
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | lm.c | 287 check_add_overflow((loff_t)len, *pos, &requested_length)) in pds_vfio_restore_write()
|
| /linux/net/xdp/ |
| H A D | xsk_queue.h | 198 if (check_add_overflow(addr, len, &end) || end > pool->addrs_cnt) in xp_unaligned_validate_desc()
|
| /linux/fs/erofs/ |
| H A D | inode.c | 20 check_add_overflow(m_pofs, inode->i_size, &off) || in erofs_fill_symlink()
|
| /linux/net/netfilter/ |
| H A D | nft_limit.c | 82 if (check_add_overflow(priv->rate, priv->burst, &rate_with_burst)) in nft_limit_init()
|
| /linux/fs/ |
| H A D | remap_range.c | 111 if (unlikely(check_add_overflow(pos, len, &tmp))) in remap_verify_area()
|