/linux-6.3-rc2/include/linux/ |
A D | fortify-string.h | 22 size_t __ret = SIZE_MAX; \ 24 if (__p_size != SIZE_MAX && \ 174 if (p_size == SIZE_MAX) in strcat() 240 if (p_size == SIZE_MAX) in __fortify_strlen() 275 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcpy() 327 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strscpy() 401 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strncat() 446 if (p_size != SIZE_MAX && p_size < size) in fortify_memset_chk() 545 if ((p_size != SIZE_MAX && p_size < size) || in fortify_memcpy_chk() 546 (q_size != SIZE_MAX && q_size < size)) in fortify_memcpy_chk() [all …]
|
A D | overflow.h | 192 return SIZE_MAX; in size_mul() 211 return SIZE_MAX; in size_add() 231 if (minuend == SIZE_MAX || subtrahend == SIZE_MAX || in size_sub() 233 return SIZE_MAX; in size_sub()
|
A D | limits.h | 9 #define SIZE_MAX (~(size_t)0) macro 10 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
|
A D | swiotlb.h | 144 return SIZE_MAX; in swiotlb_max_mapping_size()
|
/linux-6.3-rc2/tools/include/linux/ |
A D | overflow.h | 87 return SIZE_MAX; in array_size() 109 return SIZE_MAX; in array3_size() 111 return SIZE_MAX; in array3_size() 121 return SIZE_MAX; in __ab_c_size() 123 return SIZE_MAX; in __ab_c_size()
|
/linux-6.3-rc2/lib/ |
A D | overflow_kunit.c | 677 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1); in overflow_size_helpers_test() 678 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3); in overflow_size_helpers_test() 679 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3); in overflow_size_helpers_test() 687 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test() 688 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test() 689 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test() 699 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 0); in overflow_size_helpers_test() 700 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 10); in overflow_size_helpers_test() 701 check_one_size_helper(SIZE_MAX, size_sub, 0, SIZE_MAX); in overflow_size_helpers_test() 702 check_one_size_helper(SIZE_MAX, size_sub, 14, SIZE_MAX); in overflow_size_helpers_test() [all …]
|
A D | fortify_kunit.c | 34 KUNIT_EXPECT_EQ(test, __compiletime_strlen(array_unknown), SIZE_MAX); in known_sizes_test() 36 KUNIT_EXPECT_EQ(test, __compiletime_strlen(test->name), SIZE_MAX); in known_sizes_test() 63 KUNIT_EXPECT_EQ(test, want_minus_one(pick), SIZE_MAX); in control_flow_split_test() 97 KUNIT_EXPECT_BOS(test, p, SIZE_MAX, #alloc); \
|
/linux-6.3-rc2/drivers/usb/gadget/ |
A D | u_f.h | 26 if (groupname##__next != SIZE_MAX) { \ 33 groupname##__next = SIZE_MAX; \ 44 if (groupname##__next != SIZE_MAX) { \ 50 groupname##__next = SIZE_MAX; \
|
/linux-6.3-rc2/tools/virtio/ringtest/ |
A D | ptr_ring.c | 19 #define SIZE_MAX (~(size_t)0) macro 20 #define KMALLOC_MAX_SIZE SIZE_MAX 45 if (size != 0 && n > SIZE_MAX / size) in kmalloc_array()
|
/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | transhuge-stress.c | 37 if (ram > SIZE_MAX / sysconf(_SC_PAGESIZE) / 4) in main() 38 ram = SIZE_MAX / 4; in main()
|
/linux-6.3-rc2/sound/soc/ti/ |
A D | udma-pcm.c | 22 .buffer_bytes_max = SIZE_MAX,
|
/linux-6.3-rc2/tools/virtio/linux/ |
A D | dma-mapping.h | 32 #define dma_max_mapping_size(...) SIZE_MAX
|
/linux-6.3-rc2/drivers/net/ethernet/qlogic/qed/ |
A D | qed_chain.c | 262 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl() 277 if (unlikely(size == SIZE_MAX)) in qed_chain_alloc_pbl()
|
/linux-6.3-rc2/drivers/gpu/drm/etnaviv/ |
A D | etnaviv_drv.h | 100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
|
/linux-6.3-rc2/include/crypto/ |
A D | drbg.h | 183 return (SIZE_MAX - 1); in drbg_max_addtl()
|
/linux-6.3-rc2/drivers/s390/char/ |
A D | hmcdrv_cache.c | 49 .fsize = SIZE_MAX,
|
/linux-6.3-rc2/tools/perf/tests/ |
A D | builtin-test-list.c | 130 if (files_num_tmp >= SIZE_MAX) { in append_script()
|
/linux-6.3-rc2/sound/soc/ |
A D | soc-generic-dmaengine-pcm.c | 129 hw.buffer_bytes_max = SIZE_MAX; in dmaengine_pcm_set_runtime_hwparams() 237 max_buffer_size = SIZE_MAX; in dmaengine_pcm_new()
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_scatter.c | 93 if (request->size > SIZE_MAX - PAGE_SIZE) in drm_legacy_sg_alloc()
|
/linux-6.3-rc2/drivers/base/regmap/ |
A D | regmap-spi.c | 119 if (max_size != SIZE_MAX) { in regmap_get_spi_bus()
|
/linux-6.3-rc2/mm/ |
A D | slob.c | 573 if (unlikely(size == SIZE_MAX)) in kmalloc_size_roundup() 574 return SIZE_MAX; in kmalloc_size_roundup()
|
/linux-6.3-rc2/io_uring/ |
A D | io_uring.c | 2676 if (off == SIZE_MAX) in rings_size() 2677 return SIZE_MAX; in rings_size() 2680 return SIZE_MAX; in rings_size() 2686 return SIZE_MAX; in rings_size() 2693 if (sq_array_size == SIZE_MAX) in rings_size() 2694 return SIZE_MAX; in rings_size() 2697 return SIZE_MAX; in rings_size() 3555 if (size == SIZE_MAX) in io_allocate_scq_urings() 3573 if (size == SIZE_MAX) { in io_allocate_scq_urings() 3866 if (size == SIZE_MAX) in io_probe() [all …]
|
/linux-6.3-rc2/include/linux/spi/ |
A D | spi.h | 1216 return SIZE_MAX; in spi_max_message_size() 1224 size_t tr_max = SIZE_MAX; in spi_max_transfer_size()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_bo_list.c | 74 if (num_entries > (SIZE_MAX - sizeof(struct amdgpu_bo_list)) in amdgpu_bo_list_create()
|
/linux-6.3-rc2/kernel/dma/ |
A D | mapping.c | 801 size_t size = SIZE_MAX; in dma_max_mapping_size() 815 size_t size = SIZE_MAX; in dma_opt_mapping_size()
|