/arch/powerpc/kernel/ |
D | syscalls.c | 77 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/ |
D | syscall.c | 89 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()
|
D | entry.h | 52 long sys_s390_personality(unsigned int personality);
|
/arch/arm/kernel/ |
D | elf.c | 46 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/ |
D | sys.c | 31 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/ |
D | linux32.c | 88 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/ |
D | fcntl.h | 10 (personality(current->personality) != PER_LINUX32)
|
/arch/parisc/kernel/ |
D | sys_parisc.c | 291 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/ |
D | processor.h | 19 (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL) 27 ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
|
/arch/arm/include/asm/ |
D | processor.h | 20 #define STACK_TOP ((current->personality & ADDR_LIMIT_32BIT) ? \ 63 current->personality & FDPIC_FUNCPTRS) { \ 70 if (current->personality & ADDR_LIMIT_32BIT) \
|
/arch/riscv/include/asm/ |
D | elf.h | 146 if (personality(current->personality) != PER_LINUX32) \ 148 (current->personality & (~PER_MASK))); \
|
/arch/sparc/include/asm/ |
D | elf_64.h | 209 if (personality(current->personality) != PER_LINUX32) \ 211 (current->personality & (~PER_MASK))); \
|
/arch/s390/include/asm/ |
D | elf.h | 255 (current->personality & (~PER_MASK))); \ 261 if (personality(current->personality) != PER_LINUX32) \ 263 (current->personality & ~PER_MASK)); \
|
/arch/loongarch/include/asm/ |
D | elf.h | 244 if (personality(current->personality) != PER_LINUX) \ 261 p = personality(current->personality); \
|
D | page.h | 99 ((current->personality & READ_IMPLIES_EXEC) ? VM_EXEC : 0) | \
|
/arch/sparc/kernel/ |
D | sys_sparc_64.c | 291 (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()
|
D | systbls.h | 37 asmlinkage long sparc64_personality(unsigned long personality);
|
/arch/powerpc/include/asm/ |
D | elf.h | 93 if (personality(current->personality) != PER_LINUX32) \ 95 (current->personality & (~PER_MASK))); \
|
D | syscalls.h | 47 long sys_ppc64_personality(unsigned long personality); 49 long compat_sys_ppc64_personality(unsigned long personality);
|
/arch/mips/include/asm/ |
D | elf.h | 339 if (personality(current->personality) != PER_LINUX) \ 397 current->personality &= ~READ_IMPLIES_EXEC; \ 406 p = personality(current->personality); \
|
/arch/microblaze/include/asm/ |
D | elf.h | 25 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
|
/arch/x86/include/asm/ |
D | page_64_types.h | 70 #define IA32_PAGE_OFFSET ((current->personality & ADDR_LIMIT_3GB) ? \
|
/arch/xtensa/include/asm/ |
D | elf.h | 194 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
|
/arch/arm64/include/asm/ |
D | elf.h | 164 current->personality &= ~READ_IMPLIES_EXEC; \
|
/arch/x86/mm/ |
D | mmap.c | 65 if (current->personality & ADDR_COMPAT_LAYOUT) in mmap_is_legacy()
|