Home
last modified time | relevance | path

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

123

/arch/powerpc/kernel/
Dsyscalls.c77 static long do_ppc64_personality(unsigned long personality) in do_ppc64_personality() argument
81 if (personality(current->personality) == PER_LINUX32 in do_ppc64_personality()
82 && personality(personality) == PER_LINUX) in do_ppc64_personality()
83 personality = (personality & ~PER_MASK) | PER_LINUX32; in do_ppc64_personality()
84 ret = ksys_personality(personality); in do_ppc64_personality()
85 if (personality(ret) == PER_LINUX32) in do_ppc64_personality()
90 SYSCALL_DEFINE1(ppc64_personality, unsigned long, personality) in SYSCALL_DEFINE1() argument
92 return do_ppc64_personality(personality); in SYSCALL_DEFINE1()
96 COMPAT_SYSCALL_DEFINE1(ppc64_personality, unsigned long, personality) in COMPAT_SYSCALL_DEFINE1() argument
98 return do_ppc64_personality(personality); in COMPAT_SYSCALL_DEFINE1()
/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.h52 long sys_s390_personality(unsigned int 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()
/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.c291 asmlinkage long parisc_personality(unsigned long personality) in parisc_personality() argument
295 if (personality(current->personality) == PER_LINUX32 in parisc_personality()
296 && personality(personality) == PER_LINUX) in parisc_personality()
297 personality = (personality & ~PER_MASK) | PER_LINUX32; in parisc_personality()
299 err = sys_personality(personality); in parisc_personality()
300 if (personality(err) == PER_LINUX32) in parisc_personality()
/arch/alpha/include/asm/
Dprocessor.h19 (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)
27 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
/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/riscv/include/asm/
Delf.h146 if (personality(current->personality) != PER_LINUX32) \
148 (current->personality & (~PER_MASK))); \
/arch/sparc/include/asm/
Delf_64.h209 if (personality(current->personality) != PER_LINUX32) \
211 (current->personality & (~PER_MASK))); \
/arch/s390/include/asm/
Delf.h255 (current->personality & (~PER_MASK))); \
261 if (personality(current->personality) != PER_LINUX32) \
263 (current->personality & ~PER_MASK)); \
/arch/loongarch/include/asm/
Delf.h244 if (personality(current->personality) != PER_LINUX) \
261 p = personality(current->personality); \
Dpage.h99 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
/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/powerpc/include/asm/
Delf.h93 if (personality(current->personality) != PER_LINUX32) \
95 (current->personality & (~PER_MASK))); \
Dsyscalls.h47 long sys_ppc64_personality(unsigned long personality);
49 long compat_sys_ppc64_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.h194 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
/arch/arm64/include/asm/
Delf.h164 current->personality &= ~READ_IMPLIES_EXEC; \
/arch/x86/mm/
Dmmap.c65 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()

123