Home
last modified time | relevance | path

Searched refs:check_add_overflow (Results 1 – 25 of 78) sorted by relevance

1234

/linux/drivers/net/ethernet/sfc/
H A Defx_reflash.c30 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 Dfunc_utils.h31 if (check_add_overflow(offset, size, \
48 if (check_add_overflow(offset, groupname##_##name##__sz,\
/linux/tools/include/linux/
H A Doverflow.h44 #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 Dxfs_exchmaps.c694 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 Dxfs_group.h176 if (glen == 0 || check_add_overflow(gbno, glen - 1, &end)) in xfs_verify_gbext()
/linux/lib/
H A Dbuildid.c172 if (check_add_overflow(note_off, note_size, &note_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 Dmemmap.c46 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 Drsrc.c92 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 Dfiletable.c147 if (check_add_overflow(range.off, range.len, &end)) in io_register_file_alloc_range()
/linux/drivers/iommu/iommufd/
H A Dviommu.c303 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 Ddevice.c1342 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 Drtc-s32g.c106 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 Damiga.c169 if (check_add_overflow(start_sect, nr_sects, &end_sect)) { in amiga_partition()
/linux/fs/ntfs3/
H A Drun.c987 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 Dice_nvm.c476 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 Dib_core_uverbs.c301 if (check_add_overflow(xa_first, npages, &xa_last)) in rdma_user_mmap_entry_insert_range()
H A Dumem_dmabuf.c129 if (check_add_overflow(offset, (unsigned long)size, &end)) in ib_umem_dmabuf_get_with_dma_device()
H A Dumem_odp.c73 if (check_add_overflow(umem_odp->umem.address, in ib_init_umem_odp()
/linux/fs/xfs/
H A Dxfs_exchrange.c387 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 Dvfio_iommu_type1.c917 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 Dlm.c287 check_add_overflow((loff_t)len, *pos, &requested_length)) in pds_vfio_restore_write()
/linux/net/xdp/
H A Dxsk_queue.h198 if (check_add_overflow(addr, len, &end) || end > pool->addrs_cnt) in xp_unaligned_validate_desc()
/linux/fs/erofs/
H A Dinode.c20 check_add_overflow(m_pofs, inode->i_size, &off) || in erofs_fill_symlink()
/linux/net/netfilter/
H A Dnft_limit.c82 if (check_add_overflow(priv->rate, priv->burst, &rate_with_burst)) in nft_limit_init()
/linux/fs/
H A Dremap_range.c111 if (unlikely(check_add_overflow(pos, len, &tmp))) in remap_verify_area()

1234