Symbol: SIZE_MAX
arch/powerpc/perf/hv-24x7.c
752
#define MAX_4K (SIZE_MAX / 4096)
arch/powerpc/perf/hv-24x7.c
822
if (SIZE_MAX - 1 < event_entry_count) {
drivers/accel/qaic/qaic_control.c
418
if (total >= SIZE_MAX)
drivers/android/binder.c
2153
if (fda->num_fds >= SIZE_MAX / sizeof(u32)) {
drivers/android/binder.c
2672
if (fda->num_fds >= SIZE_MAX / sizeof(u32)) {
drivers/base/regmap/regmap-spi.c
119
if (max_size != SIZE_MAX) {
drivers/block/rbd.c
1046
if (snap_names_len > (u64)SIZE_MAX)
drivers/block/rbd.c
6101
if (snap_count > (SIZE_MAX - sizeof (struct ceph_snap_context))
drivers/block/rbd.c
958
size = SIZE_MAX - sizeof (struct ceph_snap_context);
drivers/gpu/drm/etnaviv/etnaviv_drv.h
103
if (elem_size && nelem > (SIZE_MAX - base) / elem_size)
drivers/gpu/drm/i915/display/intel_hdcp_gsc_message.c
479
if (cmd_size == SIZE_MAX)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
2805
SIZE_MAX / sizeof(*f)) - eb->num_fences)
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
2938
SIZE_MAX / sizeof(*f) - eb->num_fences))
drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c
3553
return !(count < 1 || count > INT_MAX || count > SIZE_MAX / sz - 1);
drivers/gpu/drm/imagination/pvr_drv.c
103
if (args->size > SIZE_MAX || args->size == 0 || args->flags &
drivers/gpu/drm/msm/msm_gem_submit.c
254
if (sz == SIZE_MAX) {
drivers/gpu/drm/msm/msm_gem_submit.c
45
if (sz > SIZE_MAX)
drivers/gpu/drm/xe/xe_bo.c
3189
if (XE_IOCTL_DBG(xe, args->size > SIZE_MAX))
drivers/iio/industrialio-buffer.c
206
return SIZE_MAX;
drivers/infiniband/core/rw.c
419
if (sges_size == SIZE_MAX || wrs_size == SIZE_MAX ||
drivers/infiniband/hw/mlx5/cq.c
1191
if (ucmd.cqe_size && SIZE_MAX / ucmd.cqe_size <= entries - 1)
drivers/iommu/dma-iommu.c
1744
return SIZE_MAX;
drivers/iommu/iommufd/pages.c
1372
if (length > SIZE_MAX - PAGE_SIZE || length == 0)
drivers/md/bcache/super.c
902
SIZE_MAX / sizeof(atomic_t));
drivers/md/dm-vdo/memory-alloc.h
46
if ((size > 0) && (count > ((SIZE_MAX - extra) / size))) {
drivers/md/dm-vdo/memory-alloc.h
53
total_size = SIZE_MAX;
drivers/misc/mei/hdcp/mei_hdcp.c
563
if (cmd_size == SIZE_MAX)
drivers/misc/pci_endpoint_test.c
531
if (bar_size % nsub || bar_size / nsub > SIZE_MAX) {
drivers/misc/pci_endpoint_test.c
667
if (param->size > SIZE_MAX - alignment) {
drivers/misc/vmw_vmci/vmci_queue_pair.c
280
if (size > SIZE_MAX - PAGE_SIZE)
drivers/misc/vmw_vmci/vmci_queue_pair.c
284
(SIZE_MAX - queue_size) /
drivers/misc/vmw_vmci/vmci_queue_pair.c
533
if (size > min_t(size_t, VMCI_MAX_GUEST_QP_MEMORY, SIZE_MAX - PAGE_SIZE))
drivers/misc/vmw_vmci/vmci_queue_pair.c
536
if (num_pages > (SIZE_MAX - queue_size) /
drivers/net/ethernet/qlogic/qed/qed_chain.c
262
if (unlikely(size == SIZE_MAX))
drivers/net/ethernet/qlogic/qed/qed_chain.c
277
if (unlikely(size == SIZE_MAX))
drivers/net/wwan/wwan_core.c
650
port->frag_len = caps ? caps->frag_len : SIZE_MAX;
drivers/of/of_reserved_mem.c
80
if (alloc_size == SIZE_MAX) {
drivers/of/of_reserved_mem.c
92
if (copy_size == SIZE_MAX) {
drivers/platform/raspberrypi/vchiq-interface/vchiq_core.c
1524
if ((size_t)num_pages > (SIZE_MAX - sizeof(struct pagelist) -
drivers/s390/char/hmcdrv_cache.c
48
.fsize = SIZE_MAX,
drivers/spi/spi-bcm2835.c
1220
return SIZE_MAX;
drivers/spi/spi-omap2-mcspi.c
1363
return SIZE_MAX;
drivers/spi/spi-s3c64xx.c
795
return ctlr->can_dma ? S3C64XX_SPI_PACKET_CNT_MASK : SIZE_MAX;
drivers/tee/qcomtee/user_obj.c
190
if (ubuf_size == SIZE_MAX)
drivers/virtio/virtio_ring.c
361
size_t max_segment_size = SIZE_MAX;
fs/btrfs/qgroup.c
3233
if (struct_sz == SIZE_MAX)
fs/ceph/snap.c
377
if ((size_t)num > (SIZE_MAX - sizeof(*snapc)) / sizeof(u64))
fs/fuse/ioctl.c
132
if (digest_size > SIZE_MAX - sizeof(struct fsverity_digest))
fs/iomap/buffered-io.c
1473
bytes = min_t(u64, SIZE_MAX, bytes);
fs/iomap/buffered-io.c
1546
bytes = min_t(u64, SIZE_MAX, bytes);
fs/iomap/buffered-io.c
949
u64 len = min_t(u64, SIZE_MAX, iomap_length(iter));
fs/proc/task_mmu.c
2951
if (UINT_MAX == SIZE_MAX && arg->vec_len > SIZE_MAX)
fs/select.c
654
if (size > (SIZE_MAX / 6))
fs/smb/server/smb2pdu.c
3413
if (!scratch_len || scratch_len == SIZE_MAX) {
fs/smb/server/smb2pdu.c
5797
if (!scratch_len || scratch_len == SIZE_MAX) {
include/crypto/drbg.h
160
return (SIZE_MAX - 1);
include/linux/fortify-string.h
224
if (__builtin_constant_p(maxlen) && p_len != SIZE_MAX) {
include/linux/fortify-string.h
265
if (p_size == SIZE_MAX)
include/linux/fortify-string.h
283
if (p_size == SIZE_MAX && q_size == SIZE_MAX)
include/linux/fortify-string.h
294
if (__compiletime_lessthan(p_size, SIZE_MAX)) {
include/linux/fortify-string.h
297
if (len < SIZE_MAX && __compiletime_lessthan(len, size)) {
include/linux/fortify-string.h
365
if (p_size == SIZE_MAX && q_size == SIZE_MAX)
include/linux/fortify-string.h
448
if (p_size == SIZE_MAX && q_size == SIZE_MAX)
include/linux/fortify-string.h
494
if (p_size != SIZE_MAX && p_size < size)
include/linux/fortify-string.h
594
if (p_size != SIZE_MAX && p_size < size)
include/linux/fortify-string.h
596
else if (q_size != SIZE_MAX && q_size < size)
include/linux/fortify-string.h
610
if (p_size_field != SIZE_MAX &&
include/linux/fortify-string.h
64
size_t __ret = SIZE_MAX; \
include/linux/fortify-string.h
66
if (__p_size != SIZE_MAX && \
include/linux/fortify-string.h
792
p_size == SIZE_MAX && q_size == SIZE_MAX)
include/linux/generic-radix-tree.h
316
iter->offset = SIZE_MAX;
include/linux/generic-radix-tree.h
317
iter->pos = SIZE_MAX;
include/linux/generic-radix-tree.h
337
iter->offset == SIZE_MAX) {
include/linux/generic-radix-tree.h
338
iter->offset = SIZE_MAX;
include/linux/generic-radix-tree.h
370
(SIZE_MAX / GENRADIX_NODE_SIZE * __genradix_objs_per_page(_radix) - 1)
include/linux/limits.h
10
#define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
include/linux/overflow.h
335
return SIZE_MAX;
include/linux/overflow.h
354
return SIZE_MAX;
include/linux/overflow.h
374
if (minuend == SIZE_MAX || subtrahend == SIZE_MAX ||
include/linux/overflow.h
376
return SIZE_MAX;
include/linux/spi/spi.h
1338
return SIZE_MAX;
include/linux/spi/spi.h
1346
size_t tr_max = SIZE_MAX;
include/linux/sunrpc/xdr.h
795
if (U32_MAX >= SIZE_MAX / sizeof(*p) && len > SIZE_MAX / sizeof(*p))
include/linux/swiotlb.h
211
return SIZE_MAX;
include/linux/usb/func_utils.h
26
if (groupname##__next != SIZE_MAX) { \
include/linux/usb/func_utils.h
33
groupname##__next = SIZE_MAX; \
include/linux/usb/func_utils.h
44
if (groupname##__next != SIZE_MAX) { \
include/linux/usb/func_utils.h
50
groupname##__next = SIZE_MAX; \
io_uring/io_uring.c
2089
rl->sq_array_offset = SIZE_MAX;
io_uring/io_uring.c
2096
if (rl->sq_size == SIZE_MAX)
io_uring/io_uring.c
2102
if (off == SIZE_MAX)
io_uring/io_uring.c
2118
if (off == SIZE_MAX)
io_uring/register.c
122
if (size == SIZE_MAX)
kernel/bpf/syscall.c
389
if (size >= SIZE_MAX)
kernel/dma/direct.c
618
return SIZE_MAX;
kernel/dma/mapping.c
977
size_t size = SIZE_MAX;
kernel/dma/mapping.c
993
size_t size = SIZE_MAX;
lib/generic-radix-tree.c
118
iter->offset = SIZE_MAX;
lib/generic-radix-tree.c
119
iter->pos = SIZE_MAX;
lib/generic-radix-tree.c
148
if (iter->offset == SIZE_MAX)
lib/generic-radix-tree.c
94
if (iter->offset == SIZE_MAX)
lib/string_helpers.c
329
size = SIZE_MAX;
lib/tests/fortify_kunit.c
105
KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX);
lib/tests/fortify_kunit.c
109
KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX);
lib/tests/fortify_kunit.c
136
KUNIT_EXPECT_EQ(test, want_minus_one(pick), SIZE_MAX);
lib/tests/fortify_kunit.c
170
KUNIT_EXPECT_BOS(test, p, SIZE_MAX, #alloc); \
lib/tests/overflow_kunit.c
626
volatile size_t b = (SIZE_MAX / TEST_SIZE) + 1; \
lib/tests/overflow_kunit.c
734
check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1);
lib/tests/overflow_kunit.c
735
check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3);
lib/tests/overflow_kunit.c
736
check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3);
lib/tests/overflow_kunit.c
744
check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1);
lib/tests/overflow_kunit.c
745
check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3);
lib/tests/overflow_kunit.c
746
check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3);
lib/tests/overflow_kunit.c
753
check_one_size_helper(SIZE_MAX, size_sub, 9, -3);
lib/tests/overflow_kunit.c
754
check_one_size_helper(SIZE_MAX, size_sub, 0, 9);
lib/tests/overflow_kunit.c
755
check_one_size_helper(SIZE_MAX, size_sub, 2, 3);
lib/tests/overflow_kunit.c
756
check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 0);
lib/tests/overflow_kunit.c
757
check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 10);
lib/tests/overflow_kunit.c
758
check_one_size_helper(SIZE_MAX, size_sub, 0, SIZE_MAX);
lib/tests/overflow_kunit.c
759
check_one_size_helper(SIZE_MAX, size_sub, 14, SIZE_MAX);
lib/tests/overflow_kunit.c
760
check_one_size_helper(SIZE_MAX - 2, size_sub, SIZE_MAX - 1, 1);
lib/tests/overflow_kunit.c
761
check_one_size_helper(SIZE_MAX - 4, size_sub, SIZE_MAX - 1, 3);
lib/tests/overflow_kunit.c
762
check_one_size_helper(1, size_sub, SIZE_MAX - 1, -3);
lib/tests/overflow_kunit.c
774
check_one_size_helper(SIZE_MAX,
lib/tests/overflow_kunit.c
776
check_one_size_helper(SIZE_MAX,
lib/tests/overflow_kunit.c
777
flex_array_size, obj, data, SIZE_MAX - 4 + unconst);
lib/tests/overflow_kunit.c
787
check_one_size_helper(SIZE_MAX,
lib/tests/overflow_kunit.c
789
check_one_size_helper(SIZE_MAX,
lib/tests/overflow_kunit.c
790
struct_size, obj, data, SIZE_MAX - 3 + unconst);
mm/kmemleak.c
1011
if (size == SIZE_MAX) {
mm/vmalloc.c
2073
kmemleak_scan_area(&va->rb_node, SIZE_MAX, gfp_mask);
net/ceph/messenger.c
849
BUG_ON(length > SIZE_MAX - cursor->page_offset);
net/ceph/osd_client.c
946
BUG_ON(length > (u64) SIZE_MAX);
net/ceph/osdmap.c
1432
if ((size_t)len > (SIZE_MAX - sizeof(*pg)) / sizeof(u32))
net/ceph/osdmap.c
1613
if ((size_t)len > (SIZE_MAX - sizeof(*pg)) / (2 * sizeof(u32)))
net/ipv4/fib_trie.c
301
ilog2((SIZE_MAX - TNODE_SIZE(0)) / sizeof(struct key_vector *))
net/netfilter/ipset/ip_set_core.c
1766
size_t payload = min(SIZE_MAX,
net/xdp/xsk_queue.c
42
if (unlikely(size == SIZE_MAX)) {
security/apparmor/apparmorfs.c
92
if (size > SIZE_MAX - sizeof(*ret))
sound/soc/apple/mca.c
822
hw.buffer_bytes_max = SIZE_MAX;
sound/soc/apple/mca.c
992
SIZE_MAX);
sound/soc/soc-generic-dmaengine-pcm.c
129
hw.buffer_bytes_max = SIZE_MAX;
sound/soc/soc-generic-dmaengine-pcm.c
237
max_buffer_size = SIZE_MAX;
sound/soc/ti/udma-pcm.c
22
.buffer_bytes_max = SIZE_MAX,
tools/include/linux/overflow.h
106
return SIZE_MAX;
tools/include/linux/overflow.h
128
return SIZE_MAX;
tools/include/linux/overflow.h
130
return SIZE_MAX;
tools/include/linux/overflow.h
140
return SIZE_MAX;
tools/include/linux/overflow.h
142
return SIZE_MAX;
tools/include/linux/overflow.h
85
return SIZE_MAX;
tools/include/nolibc/stdint.h
82
#define UINTPTR_MAX SIZE_MAX
tools/include/nolibc/stdint.h
95
#define UINT_FAST16_MAX SIZE_MAX
tools/include/nolibc/stdint.h
96
#define UINT_FAST32_MAX SIZE_MAX
tools/include/nolibc/stdio.h
443
return __nolibc_printf(__nolibc_fprintf_cb, (intptr_t)stream, SIZE_MAX, fmt, args);
tools/include/nolibc/stdio.h
539
return vsnprintf(buf, SIZE_MAX, fmt, args);
tools/lib/bpf/btf.c
194
p = libbpf_add_mem(data, cap_cnt, elem_sz, *cap_cnt, SIZE_MAX, need_cnt - *cap_cnt);
tools/perf/arch/arm/util/cs-etm.c
250
if (*endptr || snapshot_size > SIZE_MAX)
tools/perf/arch/arm64/util/arm-spe.c
454
if (*endptr || snapshot_size > SIZE_MAX)
tools/perf/arch/x86/util/intel-bts.c
262
if (*endptr || snapshot_size > SIZE_MAX)
tools/perf/arch/x86/util/intel-pt.c
251
if (*endptr || snapshot_size > SIZE_MAX)
tools/perf/util/demangle-rust-v0.c
1289
size_t out_len = SIZE_MAX;
tools/perf/util/demangle-rust-v0.c
129
SIZE_MAX,
tools/perf/util/demangle-rust-v0.c
1729
if (len > SIZE_MAX / 10) {
tools/perf/util/demangle-rust-v0.c
1733
if (len > SIZE_MAX - d) {
tools/perf/util/demangle-rust-v0.c
259
return SIZE_MAX;
tools/perf/util/demangle-rust-v0.c
265
return SIZE_MAX;
tools/perf/util/demangle-rust-v0.c
268
return SIZE_MAX; // basic validation
tools/perf/util/demangle-rust-v0.c
271
return SIZE_MAX; // overshort
tools/perf/util/demangle-rust-v0.c
274
return SIZE_MAX; // surrogate
tools/perf/util/demangle-rust-v0.c
280
return SIZE_MAX; // basic validation
tools/perf/util/demangle-rust-v0.c
283
return SIZE_MAX; // overshort
tools/perf/util/demangle-rust-v0.c
286
return SIZE_MAX; // over max
tools/perf/util/demangle-rust-v0.c
291
return SIZE_MAX;
tools/perf/util/demangle-rust-v0.c
336
if (w == 0 || d > SIZE_MAX / w || d*w > SIZE_MAX - delta) {
tools/perf/util/demangle-rust-v0.c
343
if (base < t || w == 0 || (base - t) > SIZE_MAX / w) {
tools/perf/util/demangle-rust-v0.c
350
if (i > SIZE_MAX - delta) {
tools/perf/util/demangle-rust-v0.c
354
if (n > SIZE_MAX - i / len) {
tools/perf/util/demangle-rust-v0.c
873
if (len > SIZE_MAX / 10) {
tools/perf/util/demangle-rust-v0.c
877
if (len > SIZE_MAX - d) {
tools/perf/util/evlist.c
976
if (max > SIZE_MAX / page_size)
tools/perf/util/evlist.c
977
max = SIZE_MAX / page_size;
tools/perf/util/symbol.c
510
*found_idx = SIZE_MAX;
tools/testing/selftests/iommu/iommufd.c
1082
EXPECT_EQ(SIZE_MAX, ranges[0].last);
tools/testing/selftests/iommu/iommufd.c
1110
EXPECT_EQ(SIZE_MAX, ranges[1].last);
tools/testing/selftests/mm/transhuge-stress.c
41
if (ram > SIZE_MAX / psize() / 4)
tools/testing/selftests/mm/transhuge-stress.c
42
ram = SIZE_MAX / 4;
tools/testing/selftests/nolibc/nolibc-test.c
1609
CASE_TEST(limit_size_max); EXPECT_EQ(1, SIZE_MAX, sizeof(long) == 8 ? (size_t) 0xffffffffffffffffULL : (size_t) 0xffffffffU); break;
tools/virtio/linux/dma-mapping.h
49
#define dma_max_mapping_size(...) SIZE_MAX
tools/virtio/ringtest/ptr_ring.c
20
#define KMALLOC_MAX_SIZE SIZE_MAX
tools/virtio/ringtest/ptr_ring.c
45
if (size != 0 && n > SIZE_MAX / size)