Home
last modified time | relevance | path

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

123

/arch/s390/kernel/
Dsyscall.c89 SYSCALL_DEFINE1(s390_personality, unsigned int, personality) in SYSCALL_DEFINE1() argument
91 unsigned int ret = current->personality; in SYSCALL_DEFINE1()
93 if (personality(current->personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
94 personality(personality) == PER_LINUX) in SYSCALL_DEFINE1()
95 personality |= PER_LINUX32; in SYSCALL_DEFINE1()
97 if (personality != 0xffffffff) in SYSCALL_DEFINE1()
98 set_personality(personality); in SYSCALL_DEFINE1()
100 if (personality(ret) == PER_LINUX32) in SYSCALL_DEFINE1()
Dentry.h51 long sys_s390_personality(unsigned int personality);
/arch/powerpc/kernel/
Dsyscalls.c85 long ppc64_personality(unsigned long personality) in ppc64_personality() argument
89 if (personality(current->personality) == PER_LINUX32 in ppc64_personality()
90 && personality(personality) == PER_LINUX) in ppc64_personality()
91 personality = (personality & ~PER_MASK) | PER_LINUX32; in ppc64_personality()
92 ret = sys_personality(personality); in ppc64_personality()
93 if (personality(ret) == PER_LINUX32) in ppc64_personality()
/arch/arm/kernel/
Delf.c46 unsigned int personality = current->personality & ~PER_MASK; in elf_set_personality() local
52 personality |= PER_LINUX; in elf_set_personality()
59 personality &= ~ADDR_LIMIT_32BIT; in elf_set_personality()
61 personality |= ADDR_LIMIT_32BIT; in elf_set_personality()
63 set_personality(personality); in elf_set_personality()
/arch/arm64/kernel/
Dsys.c31 SYSCALL_DEFINE1(arm64_personality, unsigned int, personality) in SYSCALL_DEFINE1() argument
33 if (personality(personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
36 return ksys_personality(personality); in SYSCALL_DEFINE1()
Dcpuinfo.c159 bool compat = personality(current->personality) == PER_LINUX32; in c_show()
/arch/mips/kernel/
Dlinux32.c88 SYSCALL_DEFINE1(32_personality, unsigned long, personality)
90 unsigned int p = personality & 0xffffffff;
93 if (personality(current->personality) == PER_LINUX32 &&
94 personality(p) == PER_LINUX)
97 if (ret != -1 && personality(ret) == PER_LINUX32)
/arch/ia64/include/uapi/asm/
Dfcntl.h10 (personality(current->personality) != PER_LINUX32)
/arch/parisc/kernel/
Dsys_parisc.c225 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
382 long parisc_personality(unsigned long personality) in parisc_personality() argument
386 if (personality(current->personality) == PER_LINUX32 in parisc_personality()
387 && personality(personality) == PER_LINUX) in parisc_personality()
388 personality = (personality & ~PER_MASK) | PER_LINUX32; in parisc_personality()
390 err = sys_personality(personality); in parisc_personality()
391 if (personality(err) == PER_LINUX32) in parisc_personality()
/arch/arm/include/asm/
Dprocessor.h20 #define STACK_TOP ((current->personality & ADDR_LIMIT_32BIT) ? \
63 current->personality & FDPIC_FUNCPTRS) { \
70 if (current->personality & ADDR_LIMIT_32BIT) \
/arch/alpha/include/asm/
Dprocessor.h19 (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)
27 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
/arch/sparc/include/asm/
Delf_64.h209 if (personality(current->personality) != PER_LINUX32) \
211 (current->personality & (~PER_MASK))); \
/arch/powerpc/include/asm/
Delf.h93 if (personality(current->personality) != PER_LINUX32) \
95 (current->personality & (~PER_MASK))); \
Dsyscalls.h31 asmlinkage long ppc64_personality(unsigned long personality);
/arch/s390/include/asm/
Delf.h255 (current->personality & (~PER_MASK))); \
261 if (personality(current->personality) != PER_LINUX32) \
263 (current->personality & ~PER_MASK)); \
/arch/sparc/kernel/
Dsys_sparc_64.c291 (current->personality & ADDR_COMPAT_LAYOUT) || in arch_pick_mmap_layout()
421 SYSCALL_DEFINE1(sparc64_personality, unsigned long, personality) in SYSCALL_DEFINE1() argument
425 if (personality(current->personality) == PER_LINUX32 && in SYSCALL_DEFINE1()
426 personality(personality) == PER_LINUX) in SYSCALL_DEFINE1()
427 personality |= PER_LINUX32; in SYSCALL_DEFINE1()
428 ret = sys_personality(personality); in SYSCALL_DEFINE1()
429 if (personality(ret) == PER_LINUX32) in SYSCALL_DEFINE1()
Dsystbls.h37 asmlinkage long sparc64_personality(unsigned long personality);
/arch/mips/include/asm/
Delf.h339 if (personality(current->personality) != PER_LINUX) \
397 current->personality &= ~READ_IMPLIES_EXEC; \
406 p = personality(current->personality); \
/arch/microblaze/include/asm/
Delf.h25 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
/arch/x86/include/asm/
Dpage_64_types.h70 #define IA32_PAGE_OFFSET ((current->personality & ADDR_LIMIT_3GB) ? \
/arch/xtensa/include/asm/
Delf.h178 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
/arch/x86/mm/
Dmmap.c64 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
/arch/arm64/include/asm/
Delf.h164 current->personality &= ~READ_IMPLIES_EXEC; \
/arch/x86/kernel/
Dprocess_64.c680 current->personality &= ~READ_IMPLIES_EXEC; in set_personality_64bit()
689 current->personality &= ~READ_IMPLIES_EXEC; in __set_personality_x32()
714 current->personality |= force_personality32; in __set_personality_ia32()
/arch/sh/include/asm/
Delf.h164 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))

123