| /linux-6.15/include/linux/ |
| H A D | fortify-string.h | 66 size_t __ret = SIZE_MAX; \ 68 if (__p_size != SIZE_MAX && \ 267 if (p_size == SIZE_MAX) in __fortify_strlen() 285 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in sized_strscpy() 367 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strlcat() 450 if (p_size == SIZE_MAX && q_size == SIZE_MAX) in strncat() 496 if (p_size != SIZE_MAX && p_size < size) in fortify_memset_chk() 596 if (p_size != SIZE_MAX && p_size < size) in fortify_memcpy_chk() 598 else if (q_size != SIZE_MAX && q_size < size) in fortify_memcpy_chk() 612 if (p_size_field != SIZE_MAX && in fortify_memcpy_chk() [all …]
|
| H A D | overflow.h | 271 return SIZE_MAX; in size_mul() 290 return SIZE_MAX; in size_add() 310 if (minuend == SIZE_MAX || subtrahend == SIZE_MAX || in size_sub() 312 return SIZE_MAX; in size_sub()
|
| H A D | limits.h | 9 #define SIZE_MAX (~(size_t)0) macro 10 #define SSIZE_MAX ((ssize_t)(SIZE_MAX >> 1))
|
| H A D | generic-radix-tree.h | 316 iter->offset = SIZE_MAX; in __genradix_iter_advance() 317 iter->pos = SIZE_MAX; in __genradix_iter_advance() 337 iter->offset == SIZE_MAX) { in __genradix_iter_rewind() 338 iter->offset = SIZE_MAX; in __genradix_iter_rewind() 370 (SIZE_MAX / GENRADIX_NODE_SIZE * __genradix_objs_per_page(_radix) - 1)
|
| H A D | swiotlb.h | 211 return SIZE_MAX; in swiotlb_max_mapping_size()
|
| /linux-6.15/tools/include/linux/ |
| H 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.15/lib/tests/ |
| H A D | overflow_kunit.c | 734 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1); in overflow_size_helpers_test() 735 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3); in overflow_size_helpers_test() 736 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3); in overflow_size_helpers_test() 744 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test() 745 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test() 746 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test() 756 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 0); in overflow_size_helpers_test() 757 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 10); in overflow_size_helpers_test() 758 check_one_size_helper(SIZE_MAX, size_sub, 0, SIZE_MAX); in overflow_size_helpers_test() 759 check_one_size_helper(SIZE_MAX, size_sub, 14, SIZE_MAX); in overflow_size_helpers_test() [all …]
|
| /linux-6.15/include/linux/usb/ |
| H A D | func_utils.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.15/tools/include/nolibc/ |
| H A D | stdint.h | 77 #define SIZE_MAX ((size_t)(__LONG_MAX__) * 2 + 1) macro 82 #define UINTPTR_MAX SIZE_MAX 95 #define UINT_FAST16_MAX SIZE_MAX 96 #define UINT_FAST32_MAX SIZE_MAX
|
| /linux-6.15/lib/ |
| H A D | generic-radix-tree.c | 94 if (iter->offset == SIZE_MAX) in __genradix_iter_peek() 118 iter->offset = SIZE_MAX; in __genradix_iter_peek() 119 iter->pos = SIZE_MAX; in __genradix_iter_peek() 148 if (iter->offset == SIZE_MAX) in __genradix_iter_peek_prev()
|
| /linux-6.15/tools/virtio/ringtest/ |
| H 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.15/drivers/md/dm-vdo/ |
| H A D | memory-alloc.h | 46 if ((size > 0) && (count > ((SIZE_MAX - extra) / size))) { in __vdo_do_allocation() 53 total_size = SIZE_MAX; in __vdo_do_allocation()
|
| /linux-6.15/tools/testing/selftests/mm/ |
| H A D | transhuge-stress.c | 41 if (ram > SIZE_MAX / psize() / 4) in main() 42 ram = SIZE_MAX / 4; in main()
|
| /linux-6.15/sound/soc/ti/ |
| H A D | udma-pcm.c | 22 .buffer_bytes_max = SIZE_MAX,
|
| /linux-6.15/net/xdp/ |
| H A D | xsk_queue.c | 42 if (unlikely(size == SIZE_MAX)) { in xskq_create()
|
| /linux-6.15/tools/virtio/linux/ |
| H A D | dma-mapping.h | 45 #define dma_max_mapping_size(...) SIZE_MAX
|
| /linux-6.15/drivers/net/ethernet/qlogic/qed/ |
| H 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.15/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_drv.h | 100 if (elem_size && nelem > (SIZE_MAX - base) / elem_size) in size_vstruct()
|
| /linux-6.15/include/crypto/ |
| H A D | drbg.h | 183 return (SIZE_MAX - 1); in drbg_max_addtl()
|
| /linux-6.15/drivers/s390/char/ |
| H A D | hmcdrv_cache.c | 49 .fsize = SIZE_MAX,
|
| /linux-6.15/sound/soc/ |
| H 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.15/drivers/base/regmap/ |
| H A D | regmap-spi.c | 119 if (max_size != SIZE_MAX) { in regmap_get_spi_bus()
|
| /linux-6.15/drivers/accel/qaic/ |
| H A D | sahara.c | 555 if (dump_length == SIZE_MAX) { in sahara_parse_dump_table() 572 if (dump_length == SIZE_MAX) { in sahara_parse_dump_table() 578 if (dump_length == SIZE_MAX) { in sahara_parse_dump_table()
|
| /linux-6.15/io_uring/ |
| H A D | register.c | 119 if (size == SIZE_MAX) in io_parse_restrictions() 435 if (size == SIZE_MAX) in io_register_resize_rings() 473 if (size == SIZE_MAX) { in io_register_resize_rings()
|
| /linux-6.15/drivers/of/ |
| H A D | of_reserved_mem.c | 78 if (alloc_size == SIZE_MAX) { in alloc_reserved_mem_array() 90 if (copy_size == SIZE_MAX) { in alloc_reserved_mem_array()
|