/Linux-v4.19/arch/arm/mm/ |
D | mmap.c | 22 #define MAX_GAP ((TASK_SIZE)/6*5) 44 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base() 83 if (len > TASK_SIZE) in arch_get_unmapped_area() 93 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() 101 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 127 if (len > TASK_SIZE) in arch_get_unmapped_area_topdown() 144 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown() 167 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_topdown()
|
/Linux-v4.19/arch/s390/mm/ |
D | mmap.c | 81 if (len > TASK_SIZE - mmap_min_addr) in arch_get_unmapped_area() 90 if (TASK_SIZE - len >= addr && addr >= mmap_min_addr && in arch_get_unmapped_area() 98 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 110 addr + len <= TASK_SIZE) { in arch_get_unmapped_area() 131 if (len > TASK_SIZE - mmap_min_addr) in arch_get_unmapped_area_topdown() 141 if (TASK_SIZE - len >= addr && addr >= mmap_min_addr && in arch_get_unmapped_area_topdown() 167 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_topdown() 175 addr + len <= TASK_SIZE) { in arch_get_unmapped_area_topdown()
|
/Linux-v4.19/arch/sh/mm/ |
D | mmap.c | 52 if (unlikely(len > TASK_SIZE)) in arch_get_unmapped_area() 66 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() 74 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 101 if (unlikely(len > TASK_SIZE)) in arch_get_unmapped_area_topdown() 116 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown() 139 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_topdown()
|
/Linux-v4.19/arch/m68k/include/asm/ |
D | processor.h | 53 #define TASK_SIZE (0xC0000000UL) macro 55 #define TASK_SIZE (0x0E000000UL) macro 57 #define TASK_SIZE (0xF0000000UL) macro 60 #define TASK_SIZE (0xFFFFFFFFUL) macro 64 #define STACK_TOP TASK_SIZE
|
/Linux-v4.19/arch/mips/mm/ |
D | mmap.c | 25 #define MAX_GAP ((TASK_SIZE)/6*5) 47 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base() 66 if (unlikely(len > TASK_SIZE)) in arch_get_unmapped_area_common() 71 if (TASK_SIZE - len < addr) in arch_get_unmapped_area_common() 96 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_common() 124 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_common()
|
/Linux-v4.19/arch/arc/include/asm/ |
D | processor.h | 125 #define TASK_SIZE 0x60000000 macro 134 #define USER_KERNEL_GUTTER (VMALLOC_START - TASK_SIZE) 152 #define STACK_TOP TASK_SIZE 160 #define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
|
/Linux-v4.19/arch/microblaze/include/asm/ |
D | processor.h | 46 # define TASK_SIZE (0x81000000 - 0x80000000) macro 83 # define TASK_SIZE (CONFIG_KERNEL_START) macro 89 # define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) 143 # define STACK_TOP TASK_SIZE
|
/Linux-v4.19/arch/hexagon/include/asm/ |
D | mem-layout.h | 54 #define TASK_SIZE (PAGE_OFFSET) macro 57 #define STACK_TOP TASK_SIZE 58 #define STACK_TOP_MAX TASK_SIZE
|
/Linux-v4.19/arch/openrisc/include/asm/ |
D | processor.h | 26 #define STACK_TOP TASK_SIZE 44 #define TASK_SIZE (0x80000000UL) macro 49 #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3)
|
/Linux-v4.19/arch/nios2/include/asm/ |
D | processor.h | 31 #define STACK_TOP TASK_SIZE 47 # define TASK_SIZE 0x7FFF0000UL macro 48 # define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
|
/Linux-v4.19/arch/arc/mm/ |
D | mmap.c | 57 if (len > TASK_SIZE) in arch_get_unmapped_area() 67 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() 75 info.high_limit = TASK_SIZE; in arch_get_unmapped_area()
|
/Linux-v4.19/arch/nds32/mm/ |
D | mmap.c | 51 if (len > TASK_SIZE) in arch_get_unmapped_area() 61 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() 69 info.high_limit = TASK_SIZE; in arch_get_unmapped_area()
|
/Linux-v4.19/arch/nds32/include/asm/ |
D | memory.h | 30 #define TASK_SIZE ((CONFIG_PAGE_OFFSET) - (SZ_32M)) macro 31 #define TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_32M) 51 #if TASK_SIZE > MODULES_VADDR
|
/Linux-v4.19/arch/mips/include/asm/ |
D | processor.h | 45 #define TASK_SIZE 0x3fff8000UL macro 51 #define TASK_SIZE 0x80000000UL macro 54 #define STACK_TOP_MAX TASK_SIZE 74 #define TASK_SIZE (test_thread_flag(TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64) macro 93 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
|
/Linux-v4.19/arch/xtensa/include/asm/ |
D | processor.h | 37 #define TASK_SIZE __XTENSA_UL_CONST(0x40000000) macro 39 #define TASK_SIZE __XTENSA_UL_CONST(0xffffffff) macro 42 #define STACK_TOP TASK_SIZE 166 #define TASK_UNMAPPED_BASE (TASK_SIZE / 2)
|
D | uaccess.h | 43 (((size) <= TASK_SIZE)&&((addr) <= TASK_SIZE-(size))) 47 #define user_addr_max() (uaccess_kernel() ? ~0UL : TASK_SIZE) 304 unsigned long top = __kernel_ok ? ~0UL : TASK_SIZE - 1; in strnlen_user()
|
/Linux-v4.19/arch/sh/include/asm/ |
D | processor_32.h | 35 #define TASK_SIZE 0x7c000000UL macro 37 #define STACK_TOP TASK_SIZE 43 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
|
D | processor_64.h | 42 #define TASK_SIZE 0x7ffff000UL macro 44 #define STACK_TOP TASK_SIZE 50 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
|
/Linux-v4.19/arch/sparc/kernel/ |
D | sys_sparc_32.c | 57 if (len > TASK_SIZE - PAGE_SIZE) in arch_get_unmapped_area() 65 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 93 if (len > TASK_SIZE - PAGE_SIZE || addr + len > TASK_SIZE - PAGE_SIZE) in sparc_mmap_check()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | processor.h | 93 #error User TASK_SIZE overlaps with KERNEL_START address 95 #define TASK_SIZE (CONFIG_TASK_SIZE) macro 100 #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) 147 #define TASK_SIZE TASK_SIZE_OF(current) macro 166 #define DEFAULT_MAP_WINDOW TASK_SIZE 181 #define STACK_TOP TASK_SIZE
|
/Linux-v4.19/drivers/misc/lkdtm/ |
D | usercopy.c | 72 if (user_addr >= TASK_SIZE) { in do_usercopy_stack() 140 if (user_addr >= TASK_SIZE) { in do_usercopy_heap_size() 214 if (user_alloc >= TASK_SIZE) { in do_usercopy_heap_whitelist() 302 if (user_addr >= TASK_SIZE) { in lkdtm_USERCOPY_KERNEL()
|
/Linux-v4.19/arch/arm/include/asm/ |
D | memory.h | 34 #define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(SZ_16M)) macro 35 #define TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_16M) 53 #if TASK_SIZE > MODULES_VADDR 96 #define TASK_SIZE UL(0xffffffff) macro
|
/Linux-v4.19/arch/unicore32/include/asm/ |
D | uaccess.h | 22 #define __user_ok(addr, size) (((size) <= TASK_SIZE) \ 23 && ((addr) <= TASK_SIZE - (size)))
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | processor.h | 22 #define TASK_SIZE (0x40000000000UL) macro 33 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
|
/Linux-v4.19/arch/riscv/include/asm/ |
D | processor.h | 25 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE >> 1) 27 #define STACK_TOP TASK_SIZE
|