/linux-4.4.14/arch/s390/mm/ |
D | mmap.c | 90 if (len > TASK_SIZE - mmap_min_addr) in arch_get_unmapped_area() 99 if (TASK_SIZE - len >= addr && addr >= mmap_min_addr && in arch_get_unmapped_area() 107 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 127 if (len > TASK_SIZE - mmap_min_addr) in arch_get_unmapped_area_topdown() 137 if (TASK_SIZE - len >= addr && addr >= mmap_min_addr && in arch_get_unmapped_area_topdown() 163 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_topdown() 172 if (is_compat_task() || (TASK_SIZE >= (1UL << 53))) in s390_mmap_check() 176 if ((addr + len) >= TASK_SIZE) in s390_mmap_check() 192 if (area == -ENOMEM && !is_compat_task() && TASK_SIZE < (1UL << 53)) { in s390_get_unmapped_area() 214 if (area == -ENOMEM && !is_compat_task() && TASK_SIZE < (1UL << 53)) { in s390_get_unmapped_area_topdown()
|
D | gup.c | 189 if ((end <= start) || (end > TASK_SIZE)) in __get_user_pages_fast()
|
D | pgtable.c | 1202 walk_page_range(0, TASK_SIZE, &walk); in s390_enable_skey() 1230 walk_page_range(0, TASK_SIZE, &walk); in s390_reset_cmma()
|
/linux-4.4.14/arch/arm/mm/ |
D | mmap.c | 20 #define MAX_GAP ((TASK_SIZE)/6*5) 42 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base() 81 if (len > TASK_SIZE) in arch_get_unmapped_area() 91 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() 99 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 125 if (len > TASK_SIZE) in arch_get_unmapped_area_topdown() 142 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown() 165 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_topdown()
|
D | init.c | 552 BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init() 553 BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init()
|
D | fault.c | 430 if (addr < TASK_SIZE) in do_translation_fault()
|
D | mmu.c | 893 if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { in create_mapping()
|
/linux-4.4.14/arch/sh/mm/ |
D | mmap.c | 51 if (unlikely(len > TASK_SIZE)) in arch_get_unmapped_area() 65 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() 73 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 100 if (unlikely(len > TASK_SIZE)) in arch_get_unmapped_area_topdown() 115 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown() 138 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_topdown()
|
D | tlbex_32.c | 39 if (unlikely(address >= TASK_SIZE || !current->mm)) in handle_tlbmiss()
|
D | tlbex_64.c | 55 if (unlikely(address >= TASK_SIZE || !current->mm)) in handle_tlbmiss()
|
D | fault.c | 389 return address >= TASK_SIZE; in fault_in_kernel_space()
|
/linux-4.4.14/arch/openrisc/include/asm/ |
D | uaccess.h | 51 #define USER_DS (TASK_SIZE) 280 if ((unsigned long)from < TASK_SIZE) { in copy_from_user() 281 over = (unsigned long)from + n - TASK_SIZE; in copy_from_user() 294 if ((unsigned long)to < TASK_SIZE) { in copy_to_user() 295 over = (unsigned long)to + n - TASK_SIZE; in copy_to_user() 309 if ((unsigned long)addr < TASK_SIZE) { in clear_user() 310 unsigned long over = (unsigned long)addr + size - TASK_SIZE; in clear_user() 317 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
|
D | processor.h | 26 #define STACK_TOP TASK_SIZE 44 #define TASK_SIZE (0x80000000UL) macro 49 #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3)
|
D | pgtable.h | 79 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
|
/linux-4.4.14/arch/m68k/include/asm/ |
D | processor.h | 52 #define TASK_SIZE (0xC0000000UL) macro 54 #define TASK_SIZE (0x0E000000UL) macro 56 #define TASK_SIZE (0xF0000000UL) macro 59 #define TASK_SIZE (0xFFFFFFFFUL) macro 63 #define STACK_TOP TASK_SIZE
|
D | a.out-core.h | 37 if (dump->start_stack < TASK_SIZE) in aout_dump_thread() 38 dump->u_ssize = ((unsigned long) (TASK_SIZE - dump->start_stack)) >> PAGE_SHIFT; in aout_dump_thread()
|
D | tlbflush.h | 123 for(addr = 0x00000000; addr < TASK_SIZE; addr += SUN3_PMEG_SIZE) { in flush_tlb_all() 153 for(i = 0; i < TASK_SIZE; i += SUN3_PMEG_SIZE) { in flush_tlb_mm()
|
D | segment.h | 54 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
|
D | pgtable_mm.h | 70 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
|
D | uaccess_mm.h | 383 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
|
/linux-4.4.14/arch/mips/mm/ |
D | mmap.c | 23 #define MAX_GAP ((TASK_SIZE)/6*5) 45 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base() 64 if (unlikely(len > TASK_SIZE)) in arch_get_unmapped_area_common() 69 if (TASK_SIZE - len < addr) in arch_get_unmapped_area_common() 94 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_common() 122 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_common()
|
/linux-4.4.14/arch/score/include/asm/ |
D | processor.h | 34 #define TASK_SIZE 0x7fff8000UL macro 40 #define TASK_UNMAPPED_BASE ((TASK_SIZE / 3) & ~(PAGE_SIZE)) 43 #define STACK_TOP TASK_SIZE 44 #define STACK_TOP_MAX TASK_SIZE
|
D | uaccess.h | 306 if ((unsigned long)from < TASK_SIZE) { in copy_from_user() 307 over = (unsigned long)from + len - TASK_SIZE; in copy_from_user() 321 if ((unsigned long)to < TASK_SIZE) { in copy_to_user() 322 over = (unsigned long)to + len - TASK_SIZE; in copy_to_user()
|
D | elf.h | 94 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
/linux-4.4.14/arch/m32r/include/asm/ |
D | processor.h | 58 #define TASK_SIZE (0x80000000UL) macro 60 #define TASK_SIZE (0x00400000UL) macro 64 #define STACK_TOP TASK_SIZE 71 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
|
D | elf.h | 114 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
D | pgtable.h | 55 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/arch/tile/include/asm/ |
D | kexec.h | 24 #define KEXEC_SOURCE_MEMORY_LIMIT TASK_SIZE 26 #define KEXEC_DESTINATION_MEMORY_LIMIT TASK_SIZE 28 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
|
D | processor.h | 167 #define TASK_SIZE ((current_thread_info()->status & TS_COMPAT) ?\ macro 170 #define TASK_SIZE TASK_SIZE_MAX macro 176 #define STACK_TOP TASK_SIZE 185 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
|
D | elf.h | 94 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
/linux-4.4.14/arch/microblaze/include/asm/ |
D | processor.h | 47 # define TASK_SIZE (0x81000000 - 0x80000000) macro 91 # define TASK_SIZE (CONFIG_KERNEL_START) macro 97 # define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) 160 # define STACK_TOP TASK_SIZE
|
D | uaccess.h | 49 # define USER_DS MAKE_MM_SEG(TASK_SIZE - 1)
|
D | pgtable.h | 159 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/arch/mips/include/asm/ |
D | processor.h | 42 #define TASK_SIZE 0x3fff8000UL macro 48 #define TASK_SIZE 0x80000000UL macro 51 #define STACK_TOP_MAX TASK_SIZE 67 #define TASK_SIZE (test_thread_flag(TIF_32BIT_ADDR) ? TASK_SIZE32 : TASK_SIZE64) macro 77 #define STACK_TOP (TASK_SIZE & PAGE_MASK) 83 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
|
D | elf.h | 420 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
/linux-4.4.14/arch/frv/include/asm/ |
D | mem-layout.h | 74 #define TASK_SIZE (PAGE_OFFSET) macro 76 #define TASK_SIZE __UL(0xFFFFFFFFUL) macro 83 #define TASK_UNMAPPED_BASE __UL(TASK_SIZE / 3)
|
D | segment.h | 25 #define USER_DS MAKE_MM_SEG(TASK_SIZE - 1)
|
D | pgtable.h | 144 #define USER_PGDS_IN_LAST_PML4 (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/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
|
D | processor.h | 74 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE/3))
|
/linux-4.4.14/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-4.4.14/arch/arc/mm/ |
D | mmap.c | 56 if (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()
|
D | cache.c | 714 WARN(kstart < TASK_SIZE, "%s() can't handle user vaddr", __func__); in flush_icache_range()
|
/linux-4.4.14/arch/arc/include/asm/ |
D | processor.h | 123 #define TASK_SIZE (VMALLOC_START - USER_KERNEL_GUTTER) macro 125 #define STACK_TOP TASK_SIZE 131 #define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
|
D | segment.h | 19 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
|
D | elf.h | 58 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
|
D | uaccess.h | 55 #define __user_ok(addr, sz) (((sz) <= TASK_SIZE) && \
|
D | pgtable.h | 223 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/arch/xtensa/include/asm/ |
D | processor.h | 38 #define TASK_SIZE __XTENSA_UL_CONST(0x40000000) macro 40 #define TASK_SIZE (PLATFORM_DEFAULT_MEM_START + PLATFORM_DEFAULT_MEM_SIZE) macro 43 #define STACK_TOP TASK_SIZE 155 #define TASK_UNMAPPED_BASE (TASK_SIZE / 2)
|
D | uaccess.h | 130 movi \at, __XTENSA_UL_CONST(TASK_SIZE) 189 (((size) <= TASK_SIZE)&&((addr) <= TASK_SIZE-(size))) 476 #define strlen_user(str) strnlen_user((str), TASK_SIZE - 1) 485 unsigned long top = __kernel_ok ? ~0UL : TASK_SIZE - 1;
|
D | elf.h | 137 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
|
D | pgtable.h | 63 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
|
/linux-4.4.14/arch/frv/mm/ |
D | elf-fdpic.c | 65 if (len > TASK_SIZE) in arch_get_unmapped_area() 76 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area() 95 info.high_limit = TASK_SIZE; in arch_get_unmapped_area()
|
/linux-4.4.14/arch/sh/include/asm/ |
D | processor_32.h | 34 #define TASK_SIZE 0x7c000000UL macro 36 #define STACK_TOP TASK_SIZE 42 #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)
|
D | tlb.h | 29 tlb->start = TASK_SIZE; in init_tlb_gather() 34 tlb->end = TASK_SIZE; in init_tlb_gather()
|
D | pgtable-2level.h | 21 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
|
D | kexec.h | 22 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
|
D | elf.h | 114 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | memory.h | 63 #define TASK_SIZE (test_thread_flag(TIF_32BIT) ? \ macro 68 #define TASK_SIZE TASK_SIZE_64 macro 71 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 4))
|
/linux-4.4.14/arch/x86/mm/ |
D | hugetlbpage.c | 85 info.high_limit = TASK_SIZE; in hugetlb_get_unmapped_area_bottomup() 117 info.high_limit = TASK_SIZE; in hugetlb_get_unmapped_area_topdown() 134 if (len > TASK_SIZE) in hugetlb_get_unmapped_area() 146 if (TASK_SIZE - len >= addr && in hugetlb_get_unmapped_area()
|
D | mmap.c | 55 #define MAX_GAP (TASK_SIZE/6*5) 93 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
|
D | fault.c | 238 address >= TASK_SIZE && address < FIXADDR_TOP; in vmalloc_sync_all() 797 if (address >= TASK_SIZE) in __bad_area_nosemaphore()
|
/linux-4.4.14/arch/sparc/kernel/ |
D | sys_sparc_32.c | 54 if (len > TASK_SIZE - PAGE_SIZE) in arch_get_unmapped_area() 62 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 90 if (len > TASK_SIZE - PAGE_SIZE || addr + len > TASK_SIZE - PAGE_SIZE) in sparc_mmap_check()
|
D | sys_sparc_64.c | 90 unsigned long task_size = TASK_SIZE; in arch_get_unmapped_area()
|
D | perf_event.c | 1769 return (__range_not_ok(fp, size, TASK_SIZE) == 0); in valid_user_frame()
|
/linux-4.4.14/arch/avr32/include/asm/ |
D | processor.h | 14 #define TASK_SIZE 0x80000000 macro 17 #define STACK_TOP TASK_SIZE 92 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
|
D | elf.h | 87 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
D | pgtable.h | 32 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/arch/arm/include/asm/ |
D | memory.h | 40 #define TASK_SIZE (UL(CONFIG_PAGE_OFFSET) - UL(SZ_16M)) macro 41 #define TASK_UNMAPPED_BASE ALIGN(TASK_SIZE / 3, SZ_16M) 59 #if TASK_SIZE > MODULES_VADDR 94 #define TASK_SIZE UL(0xffffffff) macro
|
D | processor.h | 29 TASK_SIZE : TASK_SIZE_26) 30 #define STACK_TOP_MAX TASK_SIZE
|
D | tlb.h | 103 tlb->range_start = TASK_SIZE; in tlb_flush() 200 tlb->range_start = TASK_SIZE; in tlb_start_vma()
|
D | elf.h | 120 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
D | pgtable-2level.h | 107 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
D | pgtable.h | 72 #define USER_PGTABLES_CEILING TASK_SIZE 246 if (addr < TASK_SIZE && pte_valid_user(pteval)) { in set_pte_at()
|
D | pgtable-3level.h | 277 BUG_ON(addr >= TASK_SIZE); in set_pmd_at()
|
D | uaccess.h | 96 #define USER_DS TASK_SIZE
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | uaccess.h | 34 #define USER_DS MAKE_MM_SEG(TASK_SIZE - 1) 330 if ((unsigned long)from < TASK_SIZE) { in copy_from_user() 331 over = (unsigned long)from + n - TASK_SIZE; in copy_from_user() 345 if ((unsigned long)to < TASK_SIZE) { in copy_to_user() 346 over = (unsigned long)to + n - TASK_SIZE; in copy_to_user() 440 if ((unsigned long)addr < TASK_SIZE) { in clear_user() 441 unsigned long over = (unsigned long)addr + size - TASK_SIZE; in clear_user()
|
D | processor.h | 100 #error User TASK_SIZE overlaps with KERNEL_START address 102 #define TASK_SIZE (CONFIG_TASK_SIZE) macro 107 #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) 122 #define TASK_SIZE TASK_SIZE_OF(current) macro 146 #define STACK_TOP TASK_SIZE
|
D | kexec.h | 34 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
|
D | pgtable-ppc32.h | 47 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/arch/cris/include/arch-v10/arch/ |
D | processor.h | 32 #define TASK_SIZE (0x50000000UL) /* 1.25 GB */ macro 34 #define TASK_SIZE (0xA0000000UL) /* 2.56 GB */ macro
|
/linux-4.4.14/arch/cris/include/asm/ |
D | processor.h | 20 #define STACK_TOP TASK_SIZE 26 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
|
D | uaccess.h | 44 #define USER_DS MAKE_MM_SEG(TASK_SIZE) 54 (((size) <= TASK_SIZE) && ((addr) <= TASK_SIZE-(size)))
|
D | pgtable.h | 69 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
|
/linux-4.4.14/arch/metag/mm/ |
D | hugetlbpage.c | 41 if (TASK_SIZE - len < addr) in prepare_hugepage_range() 141 if ((!vma && !after_huge) || TASK_SIZE - len < addr) { in hugetlb_get_unmapped_area_existing() 189 info.high_limit = TASK_SIZE; in hugetlb_get_unmapped_area_new_pmd() 203 if (len > TASK_SIZE) in hugetlb_get_unmapped_area()
|
/linux-4.4.14/arch/unicore32/include/asm/ |
D | uaccess.h | 27 #define __user_ok(addr, size) (((size) <= TASK_SIZE) \ 28 && ((addr) <= TASK_SIZE - (size)))
|
D | processor.h | 28 #define STACK_TOP TASK_SIZE 29 #define STACK_TOP_MAX TASK_SIZE
|
D | memory.h | 34 #define TASK_SIZE (PAGE_OFFSET - UL(0x41000000)) macro 42 #if TASK_SIZE > MODULES_VADDR
|
D | elf.h | 76 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
|
D | pgtable.h | 67 #define USER_PTRS_PER_PGD ((TASK_SIZE/PGDIR_SIZE) - FIRST_USER_PGD_NR)
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | processor.h | 21 #define TASK_SIZE (0x40000000000UL) macro 32 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
|
D | uaccess.h | 437 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
|
D | pgtable.h | 47 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/arch/powerpc/mm/ |
D | mmap.c | 43 #define MAX_GAP (TASK_SIZE/6*5) 78 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
|
D | subpage-prot.c | 200 addr >= TASK_SIZE || len >= TASK_SIZE || addr + len > TASK_SIZE) in sys_subpage_prot()
|
D | tlb_hash32.c | 163 mm = (vmaddr < TASK_SIZE)? vma->vm_mm: &init_mm; in flush_tlb_page()
|
D | slice.c | 280 while (addr < TASK_SIZE) { in slice_find_area_bottomup() 292 if (addr >= TASK_SIZE) in slice_find_area_bottomup() 293 addr = TASK_SIZE; in slice_find_area_bottomup()
|
D | init_64.c | 74 #warning TASK_SIZE is smaller than it needs to be.
|
D | fault.c | 257 if (!user_mode(regs) && (address >= TASK_SIZE)) { in do_page_fault()
|
D | mem.c | 498 if (!pte_young(*ptep) || address >= TASK_SIZE) in update_mmu_cache()
|
/linux-4.4.14/arch/tile/mm/ |
D | mmap.c | 30 #define MAX_GAP (TASK_SIZE/6*5) 45 return PAGE_ALIGN(TASK_SIZE - gap - random_factor); in mmap_base()
|
D | hugetlbpage.c | 174 info.high_limit = TASK_SIZE; in hugetlb_get_unmapped_area_bottomup() 206 info.high_limit = TASK_SIZE; in hugetlb_get_unmapped_area_topdown() 222 if (len > TASK_SIZE) in hugetlb_get_unmapped_area() 234 if (TASK_SIZE - len >= addr && in hugetlb_get_unmapped_area()
|
D | fault.c | 329 if (unlikely(address >= TASK_SIZE && in handle_page_fault()
|
/linux-4.4.14/arch/um/include/asm/ |
D | uaccess.h | 14 (((unsigned long) (addr) < TASK_SIZE) && \ 15 (((unsigned long) (addr) + (size)) < TASK_SIZE))
|
D | processor-generic.h | 75 #define TASK_SIZE (task_size) macro 83 #define STACK_TOP (TASK_SIZE - 2 * PAGE_SIZE)
|
D | tlb.h | 38 tlb->start = TASK_SIZE; in init_tlb_gather() 43 tlb->end = TASK_SIZE; in init_tlb_gather()
|
D | fixmap.h | 50 #define FIXADDR_TOP (TASK_SIZE - 2 * PAGE_SIZE)
|
D | pgtable-2level.h | 24 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
|
D | pgtable-3level.h | 43 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
|
/linux-4.4.14/arch/x86/kernel/ |
D | sys_x86_64.c | 121 *end = TASK_SIZE; in find_start_end() 174 if (len > TASK_SIZE) in arch_get_unmapped_area_topdown() 188 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | processor.h | 703 #define TASK_SIZE PAGE_OFFSET macro 704 #define TASK_SIZE_MAX TASK_SIZE 705 #define STACK_TOP TASK_SIZE 753 #define TASK_SIZE (test_thread_flag(TIF_ADDR32) ? \ macro 758 #define STACK_TOP TASK_SIZE 783 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
|
D | a.out-core.h | 38 if (dump->start_stack < TASK_SIZE) in aout_dump_thread() 39 dump->u_ssize = ((unsigned long)(TASK_SIZE - dump->start_stack)) in aout_dump_thread()
|
D | kexec.h | 43 # define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
|
D | elf.h | 253 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | syscall.c | 76 if (len > TASK_SIZE) in arch_get_unmapped_area() 88 if (TASK_SIZE - len < addr) in arch_get_unmapped_area()
|
D | stacktrace.c | 52 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user() 85 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user() 122 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data)) in xtensa_backtrace_user()
|
D | signal.c | 207 && ((regs->lbeg > TASK_SIZE) || (regs->lend > TASK_SIZE)) ) in restore_sigcontext()
|
/linux-4.4.14/arch/h8300/include/asm/ |
D | processor.h | 43 #define TASK_SIZE (0xFFFFFFFFUL) macro 46 #define STACK_TOP TASK_SIZE
|
/linux-4.4.14/arch/powerpc/perf/ |
D | callchain.c | 157 if ((unsigned long)ptr > TASK_SIZE - sizeof(unsigned long) || in read_user_stack_64() 173 if ((unsigned long)ptr > TASK_SIZE - sizeof(unsigned int) || in read_user_stack_32() 189 if (!sp || (sp & 7) || sp > (is_64 ? TASK_SIZE : 0x100000000UL) - 32) in valid_user_sp() 311 if ((unsigned long)ptr > TASK_SIZE - sizeof(unsigned int) || in read_user_stack_32() 334 if (!sp || (sp & 7) || sp > TASK_SIZE - 32) in valid_user_sp()
|
/linux-4.4.14/arch/blackfin/include/asm/ |
D | processor.h | 45 #define TASK_SIZE 0xFFFFFFFF macro 48 #define STACK_TOP TASK_SIZE
|
/linux-4.4.14/Documentation/arm/ |
D | Porting | 64 This should be the same value as TASK_SIZE. 66 TASK_SIZE 72 Any virtual address below TASK_SIZE is deemed to be user process 76 Anything above TASK_SIZE is common to all processes. I'll call 79 (In other words, you can't put IO mappings below TASK_SIZE, and
|
D | memory.txt | 71 00001000 TASK_SIZE-1 User space mappings 87 to TASK_SIZE address range. If they wish to access these areas, they
|
/linux-4.4.14/arch/mips/kernel/ |
D | binfmt_elfn32.c | 119 #undef TASK_SIZE 120 #define TASK_SIZE TASK_SIZE32 macro
|
D | binfmt_elfo32.c | 138 #undef TASK_SIZE 139 #define TASK_SIZE TASK_SIZE32 macro
|
/linux-4.4.14/arch/ia64/kernel/ |
D | sys_ia64.c | 49 if (map_shared && (TASK_SIZE > 0xfffffffful)) in arch_get_unmapped_area() 61 info.high_limit = TASK_SIZE; in arch_get_unmapped_area()
|
D | unwind.c | 1805 || s[val] < TASK_SIZE) in run_script() 1839 if ((info->ip & (local_cpu_data->unimpl_va_mask | 0xf)) || info->ip < TASK_SIZE) { in find_save_locs()
|
/linux-4.4.14/arch/metag/include/asm/ |
D | processor.h | 21 #define TASK_SIZE PAGE_OFFSET macro 23 #define STACK_TOP (TASK_SIZE - PAGE_SIZE)
|
/linux-4.4.14/arch/sparc/include/asm/ |
D | uaccess.h | 10 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
|
D | processor_32.h | 31 #define TASK_SIZE PAGE_OFFSET macro
|
D | processor_64.h | 42 #define TASK_SIZE \ macro
|
/linux-4.4.14/arch/x86/um/asm/ |
D | segment.h | 16 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
|
D | elf.h | 211 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
/linux-4.4.14/arch/x86/lib/ |
D | usercopy.c | 22 if (__range_not_ok(from, n, TASK_SIZE)) in copy_from_user_nmi()
|
/linux-4.4.14/arch/alpha/lib/ |
D | dbg_stackcheck.S | 20 lda $0, TASK_SIZE($8)
|
D | dbg_stackkill.S | 26 lda $2, TASK_SIZE($2)
|
/linux-4.4.14/arch/parisc/include/asm/ |
D | processor.h | 36 #define TASK_SIZE TASK_SIZE_OF(current) macro 55 #define STACK_TOP TASK_SIZE
|
/linux-4.4.14/arch/cris/include/arch-v32/arch/ |
D | processor.h | 26 #define TASK_SIZE (0xB0000000UL) macro
|
/linux-4.4.14/arch/cris/include/uapi/asm/ |
D | elf.h | 75 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
|
/linux-4.4.14/arch/parisc/kernel/ |
D | sys_parisc.c | 92 unsigned long task_size = TASK_SIZE; in arch_get_unmapped_area() 156 if (len > TASK_SIZE) in arch_get_unmapped_area_topdown() 179 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown()
|
/linux-4.4.14/arch/ia64/include/asm/ |
D | kexec.h | 11 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
|
D | uaccess.h | 49 #define USER_DS ((mm_segment_t) { TASK_SIZE-1 }) /* cf. access_ok() */
|
D | processor.h | 36 #define TASK_SIZE DEFAULT_TASK_SIZE macro
|
/linux-4.4.14/arch/openrisc/kernel/ |
D | asm-offsets.c | 64 DEFINE(NUM_USER_SEGMENTS, TASK_SIZE >> 28); in main()
|
/linux-4.4.14/arch/xtensa/mm/ |
D | tlb.c | 154 if (end > start && start >= TASK_SIZE && end <= PAGE_OFFSET && in local_flush_tlb_kernel_range() 228 if (tlb_asid > 0 && ((vpn < TASK_SIZE) == kernel)) { in check_tlb_entry()
|
D | fault.c | 55 if (address >= TASK_SIZE && !user_mode(regs)) in do_page_fault()
|
/linux-4.4.14/arch/sparc/mm/ |
D | hugetlbpage.c | 30 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area_bottomup() 98 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area()
|
D | fault_32.c | 192 if (address >= TASK_SIZE) in do_sparc_fault()
|
/linux-4.4.14/arch/avr32/lib/ |
D | strnlen_user.S | 59 .long TASK_SIZE
|
/linux-4.4.14/arch/sh/kernel/ |
D | hw_breakpoint.c | 135 return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); in arch_check_bp_in_kernelspace()
|
D | traps_64.c | 124 if (addr >= TASK_SIZE) in generate_and_check_address()
|
/linux-4.4.14/arch/c6x/include/asm/ |
D | processor.h | 46 #define TASK_SIZE 0xFFFFF000 macro
|
/linux-4.4.14/lib/ |
D | test_user_copy.c | 52 if (user_addr >= (unsigned long)(TASK_SIZE)) { in test_user_copy_init()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
D | processor.h | 78 #define TASK_SIZE 0x70000000 macro
|
D | uaccess.h | 36 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
|
D | pgtable.h | 69 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | ptrace.c | 956 if ((data & ~0x7UL) >= TASK_SIZE) in ptrace_set_debugreg() 1085 if (bp_info->addr >= TASK_SIZE) in set_instruction_bp() 1091 if (bp_info->addr2 >= TASK_SIZE) in set_instruction_bp() 1226 if (bp_info->addr >= TASK_SIZE) in set_dac() 1330 if (bp_info->addr >= TASK_SIZE) in set_dac_range() 1337 if (~((unsigned long)bp_info->addr2) >= TASK_SIZE) in set_dac_range() 1343 if (bp_info->addr2 >= TASK_SIZE) in set_dac_range() 1424 if ((unsigned long)bp_info->addr >= TASK_SIZE) in ppc_set_hwdebug()
|
D | asm-offsets.c | 381 DEFINE(TASK_SIZE, TASK_SIZE); in main() 382 DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); in main()
|
/linux-4.4.14/arch/unicore32/mm/ |
D | init.c | 416 BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init() 417 BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init()
|
D | fault.c | 349 if (addr < TASK_SIZE) in do_ifault()
|
D | mmu.c | 214 if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { in create_mapping()
|
/linux-4.4.14/arch/m32r/mm/ |
D | fault.c | 108 if (address >= TASK_SIZE && !(error_code & ACE_USERMODE)) in do_page_fault() 228 tsk->thread.error_code = error_code | (address >= TASK_SIZE); in do_page_fault()
|
/linux-4.4.14/include/asm-generic/ |
D | tlb.h | 142 tlb->start = TASK_SIZE; in __tlb_reset_range()
|
D | uaccess.h | 21 #define USER_DS MAKE_MM_SEG(TASK_SIZE - 1)
|
/linux-4.4.14/arch/parisc/mm/ |
D | hugetlbpage.c | 31 if (len > TASK_SIZE) in hugetlb_get_unmapped_area()
|
/linux-4.4.14/arch/microblaze/mm/ |
D | fault.c | 101 if (unlikely(kernel_mode(regs) && (address >= TASK_SIZE))) { in do_page_fault()
|
D | pgtable.c | 225 if (addr < TASK_SIZE) in iopa()
|
/linux-4.4.14/arch/nios2/mm/ |
D | fault.c | 73 if (unlikely(address >= TASK_SIZE)) in do_page_fault()
|
/linux-4.4.14/arch/m68k/mm/ |
D | mcfmmu.c | 137 if ((mmuar < TASK_UNMAPPED_BASE) || (mmuar >= TASK_SIZE)) in cf_tlb_miss()
|
/linux-4.4.14/arch/alpha/mm/ |
D | fault.c | 113 if (address >= TASK_SIZE) in do_page_fault()
|
/linux-4.4.14/arch/s390/include/asm/ |
D | processor.h | 80 #define TASK_SIZE TASK_SIZE_OF(current) macro
|
/linux-4.4.14/arch/avr32/mm/ |
D | fault.c | 213 if (address >= TASK_SIZE) in do_page_fault()
|
/linux-4.4.14/mm/ |
D | mmap.c | 1927 if (len > TASK_SIZE - mmap_min_addr) in arch_get_unmapped_area() 1936 if (TASK_SIZE - len >= addr && addr >= mmap_min_addr && in arch_get_unmapped_area() 1944 info.high_limit = TASK_SIZE; in arch_get_unmapped_area() 1966 if (len > TASK_SIZE - mmap_min_addr) in arch_get_unmapped_area_topdown() 1976 if (TASK_SIZE - len >= addr && addr >= mmap_min_addr && in arch_get_unmapped_area_topdown() 1998 info.high_limit = TASK_SIZE; in arch_get_unmapped_area_topdown() 2018 if (len > TASK_SIZE) in get_unmapped_area() 2028 if (addr > TASK_SIZE - len) in get_unmapped_area() 2537 if ((offset_in_page(start)) || start > TASK_SIZE || len > TASK_SIZE-start) in do_munmap()
|
D | mremap.c | 407 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to()
|
D | mlock.c | 746 mm_populate(0, TASK_SIZE); in SYSCALL_DEFINE1()
|
D | gup.c | 259 if (address > TASK_SIZE) in get_gate_page()
|
D | nommu.c | 943 if (!rlen || rlen > TASK_SIZE) in validate_mmap_request()
|
D | mempolicy.c | 2456 pvma.vm_end = TASK_SIZE; /* policy covers entire file */ in mpol_shared_policy_init()
|
/linux-4.4.14/mm/kasan/ |
D | report.c | 223 else if ((unsigned long)info->access_addr < TASK_SIZE) in kasan_report_error()
|
/linux-4.4.14/arch/um/kernel/ |
D | um_arch.c | 304 max_physmem = TASK_SIZE - uml_physmem - iomem_size - MIN_VMALLOC; in linux_main()
|
D | trap.c | 223 else if (!is_user && address > PAGE_SIZE && address < TASK_SIZE) { in segv()
|
/linux-4.4.14/drivers/misc/ |
D | lkdtm.c | 466 if (user_addr >= TASK_SIZE) { in lkdtm_do_action() 481 if (user_addr >= TASK_SIZE) { in lkdtm_do_action()
|
/linux-4.4.14/arch/arm64/kernel/ |
D | hw_breakpoint.c | 339 return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); in arch_check_bp_in_kernelspace()
|
/linux-4.4.14/arch/arm/kernel/ |
D | hw_breakpoint.c | 468 return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); in arch_check_bp_in_kernelspace()
|
D | process.c | 379 last = TASK_SIZE - (npages << PAGE_SHIFT); in sigpage_addr()
|
/linux-4.4.14/arch/metag/kernel/ |
D | process.c | 376 #define BAD_ADDR(x) ((unsigned long)(x) >= TASK_SIZE)
|
/linux-4.4.14/fs/hugetlbfs/ |
D | inode.c | 181 if (len > TASK_SIZE) in hugetlb_get_unmapped_area() 193 if (TASK_SIZE - len >= addr && in hugetlb_get_unmapped_area() 201 info.high_limit = TASK_SIZE; in hugetlb_get_unmapped_area()
|
/linux-4.4.14/fs/ |
D | binfmt_elf.c | 92 #define BAD_ADDR(x) ((unsigned long)(x) >= TASK_SIZE) 589 eppnt->p_memsz > TASK_SIZE || in load_elf_interp() 590 TASK_SIZE - eppnt->p_memsz < k) { in load_elf_interp() 957 elf_ppnt->p_memsz > TASK_SIZE || in load_elf_binary() 958 TASK_SIZE - elf_ppnt->p_memsz < k) { in load_elf_binary()
|
D | binfmt_aout.c | 124 #define BAD_ADDR(x) ((unsigned long)(x) >= TASK_SIZE)
|
D | exec.c | 1150 current->mm->task_size = TASK_SIZE; in setup_new_exec()
|
/linux-4.4.14/arch/arm64/mm/ |
D | fault.c | 417 if (addr < TASK_SIZE) in do_translation_fault()
|
/linux-4.4.14/arch/xtensa/ |
D | Kconfig | 437 - TASK_SIZE. 450 It's also used for TASK_SIZE calculation in noMMU configuration.
|
/linux-4.4.14/arch/microblaze/ |
D | Kconfig | 225 config TASK_SIZE config
|
/linux-4.4.14/kernel/ |
D | sys.c | 1730 unsigned long mmap_max_addr = TASK_SIZE; in validate_prctl_map() 1961 if (addr >= TASK_SIZE || addr < mmap_min_addr) in prctl_set_mm()
|
/linux-4.4.14/arch/x86/xen/ |
D | mmu.c | 832 xen_pin_page(mm, pgd_page(pgd[pgd_index(TASK_SIZE)]), in __xen_pgd_pin() 951 xen_unpin_page(mm, pgd_page(pgd[pgd_index(TASK_SIZE)]), in __xen_pgd_unpin()
|
/linux-4.4.14/arch/tile/kernel/ |
D | unaligned.c | 1565 user_page = (void __user *)(TASK_SIZE - (1UL << 36)) + in do_unaligned()
|
/linux-4.4.14/arch/alpha/kernel/ |
D | osf_sys.c | 1328 limit = TASK_SIZE; in arch_get_unmapped_area()
|
/linux-4.4.14/kernel/events/ |
D | uprobes.c | 1140 area->vaddr = get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE, in xol_add_vma()
|
/linux-4.4.14/arch/x86/kernel/cpu/ |
D | perf_event.c | 2213 return (__range_not_ok(fp, size, TASK_SIZE) == 0); in valid_user_frame()
|
/linux-4.4.14/include/linux/ |
D | sched.h | 3162 #define TASK_SIZE_OF(tsk) TASK_SIZE
|