Home
last modified time | relevance | path

Searched refs:TASK_SIZE (Results 1 – 200 of 203) sorted by relevance

12

/linux-4.4.14/arch/s390/mm/
Dmmap.c90 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()
Dgup.c189 if ((end <= start) || (end > TASK_SIZE)) in __get_user_pages_fast()
Dpgtable.c1202 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/
Dmmap.c20 #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()
Dinit.c552 BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init()
553 BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init()
Dfault.c430 if (addr < TASK_SIZE) in do_translation_fault()
Dmmu.c893 if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { in create_mapping()
/linux-4.4.14/arch/sh/mm/
Dmmap.c51 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()
Dtlbex_32.c39 if (unlikely(address >= TASK_SIZE || !current->mm)) in handle_tlbmiss()
Dtlbex_64.c55 if (unlikely(address >= TASK_SIZE || !current->mm)) in handle_tlbmiss()
Dfault.c389 return address >= TASK_SIZE; in fault_in_kernel_space()
/linux-4.4.14/arch/openrisc/include/asm/
Duaccess.h51 #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)
Dprocessor.h26 #define STACK_TOP TASK_SIZE
44 #define TASK_SIZE (0x80000000UL) macro
49 #define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3)
Dpgtable.h79 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/arch/m68k/include/asm/
Dprocessor.h52 #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
Da.out-core.h37 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()
Dtlbflush.h123 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()
Dsegment.h54 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
Dpgtable_mm.h70 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
Duaccess_mm.h383 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
/linux-4.4.14/arch/mips/mm/
Dmmap.c23 #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/
Dprocessor.h34 #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
Duaccess.h306 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()
Delf.h94 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
/linux-4.4.14/arch/m32r/include/asm/
Dprocessor.h58 #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)
Delf.h114 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
Dpgtable.h55 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/tile/include/asm/
Dkexec.h24 #define KEXEC_SOURCE_MEMORY_LIMIT TASK_SIZE
26 #define KEXEC_DESTINATION_MEMORY_LIMIT TASK_SIZE
28 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
Dprocessor.h167 #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))
Delf.h94 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
/linux-4.4.14/arch/microblaze/include/asm/
Dprocessor.h47 # 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
Duaccess.h49 # define USER_DS MAKE_MM_SEG(TASK_SIZE - 1)
Dpgtable.h159 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/mips/include/asm/
Dprocessor.h42 #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)
Delf.h420 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
/linux-4.4.14/arch/frv/include/asm/
Dmem-layout.h74 #define TASK_SIZE (PAGE_OFFSET) macro
76 #define TASK_SIZE __UL(0xFFFFFFFFUL) macro
83 #define TASK_UNMAPPED_BASE __UL(TASK_SIZE / 3)
Dsegment.h25 #define USER_DS MAKE_MM_SEG(TASK_SIZE - 1)
Dpgtable.h144 #define USER_PGDS_IN_LAST_PML4 (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/hexagon/include/asm/
Dmem-layout.h54 #define TASK_SIZE (PAGE_OFFSET) macro
57 #define STACK_TOP TASK_SIZE
58 #define STACK_TOP_MAX TASK_SIZE
Dprocessor.h74 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE/3))
/linux-4.4.14/arch/nios2/include/asm/
Dprocessor.h31 #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/
Dmmap.c56 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()
Dcache.c714 WARN(kstart < TASK_SIZE, "%s() can't handle user vaddr", __func__); in flush_icache_range()
/linux-4.4.14/arch/arc/include/asm/
Dprocessor.h123 #define TASK_SIZE (VMALLOC_START - USER_KERNEL_GUTTER) macro
125 #define STACK_TOP TASK_SIZE
131 #define TASK_UNMAPPED_BASE (TASK_SIZE / 3)
Dsegment.h19 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
Delf.h58 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
Duaccess.h55 #define __user_ok(addr, sz) (((sz) <= TASK_SIZE) && \
Dpgtable.h223 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/xtensa/include/asm/
Dprocessor.h38 #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)
Duaccess.h130 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;
Delf.h137 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
Dpgtable.h63 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/arch/frv/mm/
Delf-fdpic.c65 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/
Dprocessor_32.h34 #define TASK_SIZE 0x7c000000UL macro
36 #define STACK_TOP TASK_SIZE
42 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
Dprocessor_64.h42 #define TASK_SIZE 0x7ffff000UL macro
44 #define STACK_TOP TASK_SIZE
50 #define TASK_UNMAPPED_BASE PAGE_ALIGN(TASK_SIZE / 3)
Dtlb.h29 tlb->start = TASK_SIZE; in init_tlb_gather()
34 tlb->end = TASK_SIZE; in init_tlb_gather()
Dpgtable-2level.h21 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
Dkexec.h22 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
Delf.h114 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
/linux-4.4.14/arch/arm64/include/asm/
Dmemory.h63 #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/
Dhugetlbpage.c85 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()
Dmmap.c55 #define MAX_GAP (TASK_SIZE/6*5)
93 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
Dfault.c238 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/
Dsys_sparc_32.c54 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()
Dsys_sparc_64.c90 unsigned long task_size = TASK_SIZE; in arch_get_unmapped_area()
Dperf_event.c1769 return (__range_not_ok(fp, size, TASK_SIZE) == 0); in valid_user_frame()
/linux-4.4.14/arch/avr32/include/asm/
Dprocessor.h14 #define TASK_SIZE 0x80000000 macro
17 #define STACK_TOP TASK_SIZE
92 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
Delf.h87 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
Dpgtable.h32 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/arm/include/asm/
Dmemory.h40 #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
Dprocessor.h29 TASK_SIZE : TASK_SIZE_26)
30 #define STACK_TOP_MAX TASK_SIZE
Dtlb.h103 tlb->range_start = TASK_SIZE; in tlb_flush()
200 tlb->range_start = TASK_SIZE; in tlb_start_vma()
Delf.h120 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
Dpgtable-2level.h107 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
Dpgtable.h72 #define USER_PGTABLES_CEILING TASK_SIZE
246 if (addr < TASK_SIZE && pte_valid_user(pteval)) { in set_pte_at()
Dpgtable-3level.h277 BUG_ON(addr >= TASK_SIZE); in set_pmd_at()
Duaccess.h96 #define USER_DS TASK_SIZE
/linux-4.4.14/arch/powerpc/include/asm/
Duaccess.h34 #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()
Dprocessor.h100 #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
Dkexec.h34 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
Dpgtable-ppc32.h47 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/cris/include/arch-v10/arch/
Dprocessor.h32 #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/
Dprocessor.h20 #define STACK_TOP TASK_SIZE
26 #define TASK_UNMAPPED_BASE (PAGE_ALIGN(TASK_SIZE / 3))
Duaccess.h44 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
54 (((size) <= TASK_SIZE) && ((addr) <= TASK_SIZE-(size)))
Dpgtable.h69 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
/linux-4.4.14/arch/metag/mm/
Dhugetlbpage.c41 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/
Duaccess.h27 #define __user_ok(addr, size) (((size) <= TASK_SIZE) \
28 && ((addr) <= TASK_SIZE - (size)))
Dprocessor.h28 #define STACK_TOP TASK_SIZE
29 #define STACK_TOP_MAX TASK_SIZE
Dmemory.h34 #define TASK_SIZE (PAGE_OFFSET - UL(0x41000000)) macro
42 #if TASK_SIZE > MODULES_VADDR
Delf.h76 #define ELF_ET_DYN_BASE (2 * TASK_SIZE / 3)
Dpgtable.h67 #define USER_PTRS_PER_PGD ((TASK_SIZE/PGDIR_SIZE) - FIRST_USER_PGD_NR)
/linux-4.4.14/arch/alpha/include/asm/
Dprocessor.h21 #define TASK_SIZE (0x40000000000UL) macro
32 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
Duaccess.h437 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
Dpgtable.h47 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/powerpc/mm/
Dmmap.c43 #define MAX_GAP (TASK_SIZE/6*5)
78 return PAGE_ALIGN(TASK_SIZE - gap - rnd); in mmap_base()
Dsubpage-prot.c200 addr >= TASK_SIZE || len >= TASK_SIZE || addr + len > TASK_SIZE) in sys_subpage_prot()
Dtlb_hash32.c163 mm = (vmaddr < TASK_SIZE)? vma->vm_mm: &init_mm; in flush_tlb_page()
Dslice.c280 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()
Dinit_64.c74 #warning TASK_SIZE is smaller than it needs to be.
Dfault.c257 if (!user_mode(regs) && (address >= TASK_SIZE)) { in do_page_fault()
Dmem.c498 if (!pte_young(*ptep) || address >= TASK_SIZE) in update_mmu_cache()
/linux-4.4.14/arch/tile/mm/
Dmmap.c30 #define MAX_GAP (TASK_SIZE/6*5)
45 return PAGE_ALIGN(TASK_SIZE - gap - random_factor); in mmap_base()
Dhugetlbpage.c174 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()
Dfault.c329 if (unlikely(address >= TASK_SIZE && in handle_page_fault()
/linux-4.4.14/arch/um/include/asm/
Duaccess.h14 (((unsigned long) (addr) < TASK_SIZE) && \
15 (((unsigned long) (addr) + (size)) < TASK_SIZE))
Dprocessor-generic.h75 #define TASK_SIZE (task_size) macro
83 #define STACK_TOP (TASK_SIZE - 2 * PAGE_SIZE)
Dtlb.h38 tlb->start = TASK_SIZE; in init_tlb_gather()
43 tlb->end = TASK_SIZE; in init_tlb_gather()
Dfixmap.h50 #define FIXADDR_TOP (TASK_SIZE - 2 * PAGE_SIZE)
Dpgtable-2level.h24 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
Dpgtable-3level.h43 #define USER_PTRS_PER_PGD ((TASK_SIZE + (PGDIR_SIZE - 1)) / PGDIR_SIZE)
/linux-4.4.14/arch/x86/kernel/
Dsys_x86_64.c121 *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/
Dprocessor.h703 #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))
Da.out-core.h38 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()
Dkexec.h43 # define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
Delf.h253 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
/linux-4.4.14/arch/xtensa/kernel/
Dsyscall.c76 if (len > TASK_SIZE) in arch_get_unmapped_area()
88 if (TASK_SIZE - len < addr) in arch_get_unmapped_area()
Dstacktrace.c52 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()
Dsignal.c207 && ((regs->lbeg > TASK_SIZE) || (regs->lend > TASK_SIZE)) ) in restore_sigcontext()
/linux-4.4.14/arch/h8300/include/asm/
Dprocessor.h43 #define TASK_SIZE (0xFFFFFFFFUL) macro
46 #define STACK_TOP TASK_SIZE
/linux-4.4.14/arch/powerpc/perf/
Dcallchain.c157 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/
Dprocessor.h45 #define TASK_SIZE 0xFFFFFFFF macro
48 #define STACK_TOP TASK_SIZE
/linux-4.4.14/Documentation/arm/
DPorting64 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
Dmemory.txt71 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/
Dbinfmt_elfn32.c119 #undef TASK_SIZE
120 #define TASK_SIZE TASK_SIZE32 macro
Dbinfmt_elfo32.c138 #undef TASK_SIZE
139 #define TASK_SIZE TASK_SIZE32 macro
/linux-4.4.14/arch/ia64/kernel/
Dsys_ia64.c49 if (map_shared && (TASK_SIZE > 0xfffffffful)) in arch_get_unmapped_area()
61 info.high_limit = TASK_SIZE; in arch_get_unmapped_area()
Dunwind.c1805 || 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/
Dprocessor.h21 #define TASK_SIZE PAGE_OFFSET macro
23 #define STACK_TOP (TASK_SIZE - PAGE_SIZE)
/linux-4.4.14/arch/sparc/include/asm/
Duaccess.h10 (segment_eq(get_fs(), USER_DS) ? TASK_SIZE : ~0UL)
Dprocessor_32.h31 #define TASK_SIZE PAGE_OFFSET macro
Dprocessor_64.h42 #define TASK_SIZE \ macro
/linux-4.4.14/arch/x86/um/asm/
Dsegment.h16 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
Delf.h211 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
/linux-4.4.14/arch/x86/lib/
Dusercopy.c22 if (__range_not_ok(from, n, TASK_SIZE)) in copy_from_user_nmi()
/linux-4.4.14/arch/alpha/lib/
Ddbg_stackcheck.S20 lda $0, TASK_SIZE($8)
Ddbg_stackkill.S26 lda $2, TASK_SIZE($2)
/linux-4.4.14/arch/parisc/include/asm/
Dprocessor.h36 #define TASK_SIZE TASK_SIZE_OF(current) macro
55 #define STACK_TOP TASK_SIZE
/linux-4.4.14/arch/cris/include/arch-v32/arch/
Dprocessor.h26 #define TASK_SIZE (0xB0000000UL) macro
/linux-4.4.14/arch/cris/include/uapi/asm/
Delf.h75 #define ELF_ET_DYN_BASE (TASK_SIZE / 3 * 2)
/linux-4.4.14/arch/parisc/kernel/
Dsys_parisc.c92 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/
Dkexec.h11 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
Duaccess.h49 #define USER_DS ((mm_segment_t) { TASK_SIZE-1 }) /* cf. access_ok() */
Dprocessor.h36 #define TASK_SIZE DEFAULT_TASK_SIZE macro
/linux-4.4.14/arch/openrisc/kernel/
Dasm-offsets.c64 DEFINE(NUM_USER_SEGMENTS, TASK_SIZE >> 28); in main()
/linux-4.4.14/arch/xtensa/mm/
Dtlb.c154 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()
Dfault.c55 if (address >= TASK_SIZE && !user_mode(regs)) in do_page_fault()
/linux-4.4.14/arch/sparc/mm/
Dhugetlbpage.c30 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area_bottomup()
98 unsigned long task_size = TASK_SIZE; in hugetlb_get_unmapped_area()
Dfault_32.c192 if (address >= TASK_SIZE) in do_sparc_fault()
/linux-4.4.14/arch/avr32/lib/
Dstrnlen_user.S59 .long TASK_SIZE
/linux-4.4.14/arch/sh/kernel/
Dhw_breakpoint.c135 return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); in arch_check_bp_in_kernelspace()
Dtraps_64.c124 if (addr >= TASK_SIZE) in generate_and_check_address()
/linux-4.4.14/arch/c6x/include/asm/
Dprocessor.h46 #define TASK_SIZE 0xFFFFF000 macro
/linux-4.4.14/lib/
Dtest_user_copy.c52 if (user_addr >= (unsigned long)(TASK_SIZE)) { in test_user_copy_init()
/linux-4.4.14/arch/mn10300/include/asm/
Dprocessor.h78 #define TASK_SIZE 0x70000000 macro
Duaccess.h36 #define USER_DS MAKE_MM_SEG(TASK_SIZE)
Dpgtable.h69 #define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
/linux-4.4.14/arch/powerpc/kernel/
Dptrace.c956 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()
Dasm-offsets.c381 DEFINE(TASK_SIZE, TASK_SIZE); in main()
382 DEFINE(NUM_USER_SEGMENTS, TASK_SIZE>>28); in main()
/linux-4.4.14/arch/unicore32/mm/
Dinit.c416 BUILD_BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init()
417 BUG_ON(TASK_SIZE > MODULES_VADDR); in mem_init()
Dfault.c349 if (addr < TASK_SIZE) in do_ifault()
Dmmu.c214 if (md->virtual != vectors_base() && md->virtual < TASK_SIZE) { in create_mapping()
/linux-4.4.14/arch/m32r/mm/
Dfault.c108 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/
Dtlb.h142 tlb->start = TASK_SIZE; in __tlb_reset_range()
Duaccess.h21 #define USER_DS MAKE_MM_SEG(TASK_SIZE - 1)
/linux-4.4.14/arch/parisc/mm/
Dhugetlbpage.c31 if (len > TASK_SIZE) in hugetlb_get_unmapped_area()
/linux-4.4.14/arch/microblaze/mm/
Dfault.c101 if (unlikely(kernel_mode(regs) && (address >= TASK_SIZE))) { in do_page_fault()
Dpgtable.c225 if (addr < TASK_SIZE) in iopa()
/linux-4.4.14/arch/nios2/mm/
Dfault.c73 if (unlikely(address >= TASK_SIZE)) in do_page_fault()
/linux-4.4.14/arch/m68k/mm/
Dmcfmmu.c137 if ((mmuar < TASK_UNMAPPED_BASE) || (mmuar >= TASK_SIZE)) in cf_tlb_miss()
/linux-4.4.14/arch/alpha/mm/
Dfault.c113 if (address >= TASK_SIZE) in do_page_fault()
/linux-4.4.14/arch/s390/include/asm/
Dprocessor.h80 #define TASK_SIZE TASK_SIZE_OF(current) macro
/linux-4.4.14/arch/avr32/mm/
Dfault.c213 if (address >= TASK_SIZE) in do_page_fault()
/linux-4.4.14/mm/
Dmmap.c1927 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()
Dmremap.c407 if (new_len > TASK_SIZE || new_addr > TASK_SIZE - new_len) in mremap_to()
Dmlock.c746 mm_populate(0, TASK_SIZE); in SYSCALL_DEFINE1()
Dgup.c259 if (address > TASK_SIZE) in get_gate_page()
Dnommu.c943 if (!rlen || rlen > TASK_SIZE) in validate_mmap_request()
Dmempolicy.c2456 pvma.vm_end = TASK_SIZE; /* policy covers entire file */ in mpol_shared_policy_init()
/linux-4.4.14/mm/kasan/
Dreport.c223 else if ((unsigned long)info->access_addr < TASK_SIZE) in kasan_report_error()
/linux-4.4.14/arch/um/kernel/
Dum_arch.c304 max_physmem = TASK_SIZE - uml_physmem - iomem_size - MIN_VMALLOC; in linux_main()
Dtrap.c223 else if (!is_user && address > PAGE_SIZE && address < TASK_SIZE) { in segv()
/linux-4.4.14/drivers/misc/
Dlkdtm.c466 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/
Dhw_breakpoint.c339 return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); in arch_check_bp_in_kernelspace()
/linux-4.4.14/arch/arm/kernel/
Dhw_breakpoint.c468 return (va >= TASK_SIZE) && ((va + len - 1) >= TASK_SIZE); in arch_check_bp_in_kernelspace()
Dprocess.c379 last = TASK_SIZE - (npages << PAGE_SHIFT); in sigpage_addr()
/linux-4.4.14/arch/metag/kernel/
Dprocess.c376 #define BAD_ADDR(x) ((unsigned long)(x) >= TASK_SIZE)
/linux-4.4.14/fs/hugetlbfs/
Dinode.c181 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/
Dbinfmt_elf.c92 #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()
Dbinfmt_aout.c124 #define BAD_ADDR(x) ((unsigned long)(x) >= TASK_SIZE)
Dexec.c1150 current->mm->task_size = TASK_SIZE; in setup_new_exec()
/linux-4.4.14/arch/arm64/mm/
Dfault.c417 if (addr < TASK_SIZE) in do_translation_fault()
/linux-4.4.14/arch/xtensa/
DKconfig437 - TASK_SIZE.
450 It's also used for TASK_SIZE calculation in noMMU configuration.
/linux-4.4.14/arch/microblaze/
DKconfig225 config TASK_SIZE config
/linux-4.4.14/kernel/
Dsys.c1730 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/
Dmmu.c832 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/
Dunaligned.c1565 user_page = (void __user *)(TASK_SIZE - (1UL << 36)) + in do_unaligned()
/linux-4.4.14/arch/alpha/kernel/
Dosf_sys.c1328 limit = TASK_SIZE; in arch_get_unmapped_area()
/linux-4.4.14/kernel/events/
Duprobes.c1140 area->vaddr = get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE, in xol_add_vma()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event.c2213 return (__range_not_ok(fp, size, TASK_SIZE) == 0); in valid_user_frame()
/linux-4.4.14/include/linux/
Dsched.h3162 #define TASK_SIZE_OF(tsk) TASK_SIZE

12