Home
last modified time | relevance | path

Searched refs:personality (Results 1 – 25 of 57) sorted by relevance

123

/arch/s390/kernel/
Dsys_s390.c79 SYSCALL_DEFINE1(s390_personality, unsigned int, personality) in SYSCALL_DEFINE1() argument
83 if (personality(current->personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
84 personality(personality) == PER_LINUX) in SYSCALL_DEFINE1()
85 personality |= PER_LINUX32; in SYSCALL_DEFINE1()
86 ret = sys_personality(personality); in SYSCALL_DEFINE1()
87 if (personality(ret) == PER_LINUX32) in SYSCALL_DEFINE1()
/arch/arm/kernel/
Delf.c44 unsigned int personality = current->personality & ~PER_MASK; in elf_set_personality() local
50 personality |= PER_LINUX; in elf_set_personality()
57 personality &= ~ADDR_LIMIT_32BIT; in elf_set_personality()
59 personality |= ADDR_LIMIT_32BIT; in elf_set_personality()
61 set_personality(personality); in elf_set_personality()
/arch/powerpc/kernel/
Dsyscalls.c104 long ppc64_personality(unsigned long personality) in ppc64_personality() argument
108 if (personality(current->personality) == PER_LINUX32 in ppc64_personality()
109 && personality(personality) == PER_LINUX) in ppc64_personality()
110 personality = (personality & ~PER_MASK) | PER_LINUX32; in ppc64_personality()
111 ret = sys_personality(personality); in ppc64_personality()
112 if (personality(ret) == PER_LINUX32) in ppc64_personality()
/arch/mips/kernel/
Dlinux32.c121 SYSCALL_DEFINE1(32_personality, unsigned long, personality)
123 unsigned int p = personality & 0xffffffff;
126 if (personality(current->personality) == PER_LINUX32 &&
127 personality(p) == PER_LINUX)
130 if (ret != -1 && personality(ret) == PER_LINUX32)
/arch/ia64/include/uapi/asm/
Dfcntl.h9 (personality(current->personality) != PER_LINUX32)
/arch/unicore32/kernel/
Delf.c34 unsigned int personality = PER_LINUX; in elf_set_personality() local
36 set_personality(personality); in elf_set_personality()
/arch/parisc/kernel/
Dsys_parisc.c215 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
384 long parisc_personality(unsigned long personality) in parisc_personality() argument
388 if (personality(current->personality) == PER_LINUX32 in parisc_personality()
389 && personality(personality) == PER_LINUX) in parisc_personality()
390 personality = (personality & ~PER_MASK) | PER_LINUX32; in parisc_personality()
392 err = sys_personality(personality); in parisc_personality()
393 if (personality(err) == PER_LINUX32) in parisc_personality()
/arch/s390/include/asm/
Delf.h186 (current->personality & (~PER_MASK))); \
193 if (personality(current->personality) != PER_LINUX32) \
195 (current->personality & ~PER_MASK)); \
/arch/powerpc/include/asm/
Delf.h99 if (personality(current->personality) != PER_LINUX32) \
101 (current->personality & (~PER_MASK))); \
Dsyscalls.h17 asmlinkage long ppc64_personality(unsigned long personality);
/arch/sparc/include/asm/
Delf_64.h208 if (personality(current->personality) != PER_LINUX32) \
210 (current->personality & (~PER_MASK))); \
/arch/alpha/include/asm/
Dprocessor.h24 (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)
32 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
/arch/x86/mm/
Dmmap.c42 !(current->personality & ADDR_NO_RANDOMIZE)) { in stack_maxrandom_size()
59 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
/arch/sparc/kernel/
Dsys_sparc_64.c287 (current->personality & ADDR_COMPAT_LAYOUT) || in arch_pick_mmap_layout()
414 SYSCALL_DEFINE1(sparc64_personality, unsigned long, personality) in SYSCALL_DEFINE1() argument
418 if (personality(current->personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
419 personality(personality) == PER_LINUX) in SYSCALL_DEFINE1()
420 personality |= PER_LINUX32; in SYSCALL_DEFINE1()
421 ret = sys_personality(personality); in SYSCALL_DEFINE1()
422 if (personality(ret) == PER_LINUX32) in SYSCALL_DEFINE1()
/arch/c6x/include/asm/
Dpage.h6 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
/arch/arm/include/asm/
Dprocessor.h28 #define STACK_TOP ((current->personality & ADDR_LIMIT_32BIT) ? \
59 if (current->personality & ADDR_LIMIT_32BIT) \
/arch/microblaze/include/asm/
Delf.h28 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
/arch/blackfin/include/asm/
Dpage.h15 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
/arch/tile/include/asm/
Delf.h167 set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
172 set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
/arch/x86/um/asm/
Dvm-flags.h14 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
/arch/mips/include/asm/
Delf.h298 if (personality(current->personality) != PER_LINUX) \
372 p = personality(current->personality); \
/arch/arm64/include/asm/
Dpage.h66 (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
/arch/powerpc/mm/
Dmmap.c47 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
/arch/x86/include/asm/
Dpage_types.h38 (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
/arch/arm64/mm/
Dmmap.c42 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()

123