Home
last modified time | relevance | path

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

123

/arch/s390/kernel/
Dsys_s390.c80 SYSCALL_DEFINE1(s390_personality, unsigned int, personality) in SYSCALL_DEFINE1() argument
84 if (personality(current->personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
85 personality(personality) == PER_LINUX) in SYSCALL_DEFINE1()
86 personality |= PER_LINUX32; in SYSCALL_DEFINE1()
87 ret = sys_personality(personality); in SYSCALL_DEFINE1()
88 if (personality(ret) == PER_LINUX32) in SYSCALL_DEFINE1()
/arch/powerpc/kernel/
Dsyscalls.c105 long ppc64_personality(unsigned long personality) in ppc64_personality() argument
109 if (personality(current->personality) == PER_LINUX32 in ppc64_personality()
110 && personality(personality) == PER_LINUX) in ppc64_personality()
111 personality = (personality & ~PER_MASK) | PER_LINUX32; in ppc64_personality()
112 ret = sys_personality(personality); in ppc64_personality()
113 if (personality(ret) == PER_LINUX32) in ppc64_personality()
/arch/arm/kernel/
Delf.c45 unsigned int personality = current->personality & ~PER_MASK; in elf_set_personality() local
51 personality |= PER_LINUX; in elf_set_personality()
58 personality &= ~ADDR_LIMIT_32BIT; in elf_set_personality()
60 personality |= ADDR_LIMIT_32BIT; in elf_set_personality()
62 set_personality(personality); in elf_set_personality()
/arch/arm64/kernel/
Dsys.c40 SYSCALL_DEFINE1(arm64_personality, unsigned int, personality) in SYSCALL_DEFINE1() argument
42 if (personality(personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
45 return sys_personality(personality); in SYSCALL_DEFINE1()
/arch/mips/kernel/
Dlinux32.c117 SYSCALL_DEFINE1(32_personality, unsigned long, personality)
119 unsigned int p = personality & 0xffffffff;
122 if (personality(current->personality) == PER_LINUX32 &&
123 personality(p) == PER_LINUX)
126 if (ret != -1 && personality(ret) == PER_LINUX32)
/arch/ia64/include/uapi/asm/
Dfcntl.h10 (personality(current->personality) != PER_LINUX32)
/arch/parisc/kernel/
Dsys_parisc.c217 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
374 long parisc_personality(unsigned long personality) in parisc_personality() argument
378 if (personality(current->personality) == PER_LINUX32 in parisc_personality()
379 && personality(personality) == PER_LINUX) in parisc_personality()
380 personality = (personality & ~PER_MASK) | PER_LINUX32; in parisc_personality()
382 err = sys_personality(personality); in parisc_personality()
383 if (personality(err) == PER_LINUX32) in parisc_personality()
/arch/unicore32/kernel/
Delf.c34 unsigned int personality = PER_LINUX; in elf_set_personality() local
36 set_personality(personality); in elf_set_personality()
/arch/sparc/include/asm/
Delf_64.h209 if (personality(current->personality) != PER_LINUX32) \
211 (current->personality & (~PER_MASK))); \
/arch/s390/include/asm/
Delf.h231 (current->personality & (~PER_MASK))); \
238 if (personality(current->personality) != PER_LINUX32) \
240 (current->personality & ~PER_MASK)); \
/arch/alpha/include/asm/
Dprocessor.h25 (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)
33 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
/arch/powerpc/include/asm/
Delf.h99 if (personality(current->personality) != PER_LINUX32) \
101 (current->personality & (~PER_MASK))); \
Dsyscalls.h18 asmlinkage long ppc64_personality(unsigned long personality);
/arch/sparc/kernel/
Dsys_sparc_64.c290 (current->personality & ADDR_COMPAT_LAYOUT) || in arch_pick_mmap_layout()
417 SYSCALL_DEFINE1(sparc64_personality, unsigned long, personality) in SYSCALL_DEFINE1() argument
421 if (personality(current->personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
422 personality(personality) == PER_LINUX) in SYSCALL_DEFINE1()
423 personality |= PER_LINUX32; in SYSCALL_DEFINE1()
424 ret = sys_personality(personality); in SYSCALL_DEFINE1()
425 if (personality(ret) == PER_LINUX32) in SYSCALL_DEFINE1()
/arch/arm/include/asm/
Dprocessor.h28 #define STACK_TOP ((current->personality & ADDR_LIMIT_32BIT) ? \
59 if (current->personality & ADDR_LIMIT_32BIT) \
/arch/c6x/include/asm/
Dpage.h7 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
/arch/microblaze/include/asm/
Delf.h28 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
/arch/tile/include/asm/
Delf.h167 set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
172 set_personality(PER_LINUX | (current->personality & (~PER_MASK))); \
/arch/blackfin/include/asm/
Dpage.h15 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
/arch/x86/um/asm/
Dvm-flags.h14 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
/arch/arm64/include/asm/
Dpage.h49 (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
/arch/mips/include/asm/
Delf.h355 if (personality(current->personality) != PER_LINUX) \
421 p = personality(current->personality); \
/arch/s390/mm/
Dmmap.c41 if (current->personality & ADDR_NO_RANDOMIZE) in stack_maxrandom_size()
56 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
/arch/x86/include/asm/
Dpage_types.h40 (((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0 ) | \
/arch/arm64/mm/
Dmmap.c43 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()

123