SIZE_MAX 681 arch/powerpc/perf/hv-24x7.c #define MAX_4K (SIZE_MAX / 4096) SIZE_MAX 751 arch/powerpc/perf/hv-24x7.c if (SIZE_MAX - 1 < event_entry_count) { SIZE_MAX 2391 drivers/android/binder.c if (fda->num_fds >= SIZE_MAX / sizeof(u32)) { SIZE_MAX 2637 drivers/android/binder.c if (fda->num_fds >= SIZE_MAX / sizeof(u32)) { SIZE_MAX 1062 drivers/block/rbd.c size = SIZE_MAX - sizeof (struct ceph_snap_context); SIZE_MAX 1141 drivers/block/rbd.c if (snap_names_len > (u64)SIZE_MAX) SIZE_MAX 6307 drivers/block/rbd.c if (snap_count > (SIZE_MAX - sizeof (struct ceph_snap_context)) SIZE_MAX 74 drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list)) SIZE_MAX 99 drivers/gpu/drm/etnaviv/etnaviv_drv.h if (elem_size && nelem > (SIZE_MAX - base) / elem_size) SIZE_MAX 2372 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c SIZE_MAX / sizeof(*fences))) SIZE_MAX 2749 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c return !(count < 1 || count > INT_MAX || count > SIZE_MAX / sz - 1); SIZE_MAX 36 drivers/gpu/drm/msm/msm_gem_submit.c if (sz > SIZE_MAX) SIZE_MAX 1132 drivers/infiniband/hw/mlx5/cq.c if (ucmd.cqe_size && SIZE_MAX / ucmd.cqe_size <= entries - 1) SIZE_MAX 815 drivers/md/bcache/super.c SIZE_MAX / sizeof(atomic_t)); SIZE_MAX 341 drivers/misc/pci_endpoint_test.c if (size > SIZE_MAX - alignment) SIZE_MAX 437 drivers/misc/pci_endpoint_test.c if (size > SIZE_MAX - alignment) SIZE_MAX 506 drivers/misc/pci_endpoint_test.c if (size > SIZE_MAX - alignment) SIZE_MAX 278 drivers/misc/vmw_vmci/vmci_queue_pair.c if (size > SIZE_MAX - PAGE_SIZE) SIZE_MAX 282 drivers/misc/vmw_vmci/vmci_queue_pair.c (SIZE_MAX - queue_size) / SIZE_MAX 531 drivers/misc/vmw_vmci/vmci_queue_pair.c if (size > SIZE_MAX - PAGE_SIZE) SIZE_MAX 534 drivers/misc/vmw_vmci/vmci_queue_pair.c if (num_pages > (SIZE_MAX - queue_size) / SIZE_MAX 41 drivers/nvdimm/blk.c return SIZE_MAX; SIZE_MAX 49 drivers/nvdimm/blk.c return SIZE_MAX; SIZE_MAX 76 drivers/nvdimm/blk.c if (dev_offset == SIZE_MAX) SIZE_MAX 143 drivers/nvdimm/blk.c if (dev_offset == SIZE_MAX) SIZE_MAX 219 drivers/nvdimm/blk.c if (dev_offset == SIZE_MAX) SIZE_MAX 49 drivers/s390/char/hmcdrv_cache.c .fsize = SIZE_MAX, SIZE_MAX 375 drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c if (num_pages > (SIZE_MAX - sizeof(struct pagelist) - SIZE_MAX 886 drivers/vfio/vfio_iommu_type1.c unmap->size > SIZE_MAX) SIZE_MAX 263 drivers/virtio/virtio_ring.c size_t max_segment_size = SIZE_MAX; SIZE_MAX 348 fs/ceph/snap.c if (num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64)) SIZE_MAX 919 fs/exec.c if (i_size > SIZE_MAX || (max_size > 0 && i_size > max_size)) { SIZE_MAX 3362 fs/io_uring.c if (off == SIZE_MAX) SIZE_MAX 3363 fs/io_uring.c return SIZE_MAX; SIZE_MAX 3368 fs/io_uring.c return SIZE_MAX; SIZE_MAX 3372 fs/io_uring.c if (sq_array_size == SIZE_MAX) SIZE_MAX 3373 fs/io_uring.c return SIZE_MAX; SIZE_MAX 3376 fs/io_uring.c return SIZE_MAX; SIZE_MAX 3807 fs/io_uring.c if (size == SIZE_MAX) SIZE_MAX 3826 fs/io_uring.c if (size == SIZE_MAX) { SIZE_MAX 654 fs/select.c if (size > (SIZE_MAX / 6)) SIZE_MAX 178 include/crypto/drbg.h return (SIZE_MAX - 1); SIZE_MAX 188 include/crypto/drbg.h return SIZE_MAX; SIZE_MAX 258 include/linux/overflow.h return SIZE_MAX; SIZE_MAX 280 include/linux/overflow.h return SIZE_MAX; SIZE_MAX 282 include/linux/overflow.h return SIZE_MAX; SIZE_MAX 296 include/linux/overflow.h return SIZE_MAX; SIZE_MAX 298 include/linux/overflow.h return SIZE_MAX; SIZE_MAX 999 include/linux/spi/spi.h return SIZE_MAX; SIZE_MAX 1007 include/linux/spi/spi.h size_t tr_max = SIZE_MAX; SIZE_MAX 103 include/linux/swiotlb.h return SIZE_MAX; SIZE_MAX 144 kernel/bpf/syscall.c if (size >= SIZE_MAX) SIZE_MAX 419 kernel/dma/direct.c return SIZE_MAX; SIZE_MAX 420 kernel/dma/mapping.c size_t size = SIZE_MAX; SIZE_MAX 505 lib/test_overflow.c volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \ SIZE_MAX 808 mm/kmemleak.c if (size == SIZE_MAX) { SIZE_MAX 1077 mm/vmalloc.c kmemleak_scan_area(&va->rb_node, SIZE_MAX, gfp_mask & GFP_RECLAIM_MASK); SIZE_MAX 950 net/ceph/messenger.c BUG_ON(length > SIZE_MAX - cursor->page_offset); SIZE_MAX 962 net/ceph/osd_client.c BUG_ON(length > (u64) SIZE_MAX); SIZE_MAX 1246 net/ceph/osdmap.c if (len > (SIZE_MAX - sizeof(*pg)) / sizeof(u32)) SIZE_MAX 1429 net/ceph/osdmap.c if (len > (SIZE_MAX - sizeof(*pg)) / (2 * sizeof(u32))) SIZE_MAX 308 net/ipv4/fib_trie.c ilog2((SIZE_MAX - TNODE_SIZE(0)) / sizeof(struct key_vector *)) SIZE_MAX 1555 net/netfilter/ipset/ip_set_core.c size_t payload = min(SIZE_MAX, SIZE_MAX 142 sound/soc/soc-generic-dmaengine-pcm.c hw.buffer_bytes_max = SIZE_MAX; SIZE_MAX 278 sound/soc/soc-generic-dmaengine-pcm.c max_buffer_size = SIZE_MAX; SIZE_MAX 221 tools/include/linux/overflow.h return SIZE_MAX; SIZE_MAX 243 tools/include/linux/overflow.h return SIZE_MAX; SIZE_MAX 245 tools/include/linux/overflow.h return SIZE_MAX; SIZE_MAX 255 tools/include/linux/overflow.h return SIZE_MAX; SIZE_MAX 257 tools/include/linux/overflow.h return SIZE_MAX; SIZE_MAX 203 tools/perf/arch/arm/util/cs-etm.c if (*endptr || snapshot_size > SIZE_MAX) SIZE_MAX 256 tools/perf/arch/x86/util/intel-bts.c if (*endptr || snapshot_size > SIZE_MAX) SIZE_MAX 246 tools/perf/arch/x86/util/intel-pt.c if (*endptr || snapshot_size > SIZE_MAX) SIZE_MAX 775 tools/perf/util/annotate.c if (size > (SIZE_MAX - sizeof(struct sym_hist)) / sizeof(struct sym_hist_entry)) SIZE_MAX 781 tools/perf/util/annotate.c if (sizeof_sym_hist > SIZE_MAX / nr_hists) SIZE_MAX 852 tools/perf/util/evlist.c if (max > SIZE_MAX / page_size) SIZE_MAX 853 tools/perf/util/evlist.c max = SIZE_MAX / page_size; SIZE_MAX 68 tools/testing/selftests/vm/transhuge-stress.c if (ram > SIZE_MAX / sysconf(_SC_PAGESIZE) / 4) SIZE_MAX 69 tools/testing/selftests/vm/transhuge-stress.c ram = SIZE_MAX / 4; SIZE_MAX 32 tools/virtio/linux/dma-mapping.h #define dma_max_mapping_size(...) SIZE_MAX SIZE_MAX 20 tools/virtio/ringtest/ptr_ring.c #define KMALLOC_MAX_SIZE SIZE_MAX SIZE_MAX 45 tools/virtio/ringtest/ptr_ring.c if (size != 0 && n > SIZE_MAX / size)