/linux-6.6.21/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()
|
/linux-6.6.21/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()
|
/linux-6.6.21/kernel/ |
D | exec_domain.c | 38 SYSCALL_DEFINE1(personality, unsigned int, personality) in SYSCALL_DEFINE1() argument 40 unsigned int old = current->personality; in SYSCALL_DEFINE1() 42 if (personality != 0xffffffff) in SYSCALL_DEFINE1() 43 set_personality(personality); in SYSCALL_DEFINE1()
|
/linux-6.6.21/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()
|
/linux-6.6.21/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)
|
/linux-6.6.21/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()
|
/linux-6.6.21/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()
|
/linux-6.6.21/arch/ia64/include/uapi/asm/ |
D | fcntl.h | 10 (personality(current->personality) != PER_LINUX32)
|
/linux-6.6.21/include/linux/ |
D | personality.h | 10 #define personality(pers) (pers & PER_MASK) macro 15 #define set_personality(pers) (current->personality = (pers))
|
/linux-6.6.21/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) \
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | elf.h | 146 if (personality(current->personality) != PER_LINUX32) \ 148 (current->personality & (~PER_MASK))); \
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed.h | 266 enum qed_pci_personality personality; member 268 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \ 269 (dev)->hw_info.personality == QED_PCI_ETH_IWARP || \ 270 (dev)->hw_info.personality == QED_PCI_ETH_RDMA) 272 ((dev)->hw_info.personality == QED_PCI_ETH_ROCE || \ 273 (dev)->hw_info.personality == QED_PCI_ETH_RDMA) 275 ((dev)->hw_info.personality == QED_PCI_ETH_IWARP || \ 276 (dev)->hw_info.personality == QED_PCI_ETH_RDMA) 278 ((dev)->hw_info.personality == QED_PCI_ETH || \ 281 ((dev)->hw_info.personality == QED_PCI_FCOE) [all …]
|
D | qed_sp_commands.c | 386 switch (p_hwfn->hw_info.personality) { in qed_sp_pf_start() 388 p_ramrod->personality = PERSONALITY_ETH; in qed_sp_pf_start() 391 p_ramrod->personality = PERSONALITY_FCOE; in qed_sp_pf_start() 395 p_ramrod->personality = PERSONALITY_TCP_ULP; in qed_sp_pf_start() 399 p_ramrod->personality = PERSONALITY_RDMA_AND_ETH; in qed_sp_pf_start() 403 p_hwfn->hw_info.personality); in qed_sp_pf_start() 404 p_ramrod->personality = PERSONALITY_ETH; in qed_sp_pf_start()
|
D | qed_dev.c | 1382 if (p_hwfn->hw_info.personality == QED_PCI_FCOE) in qed_resc_free() 1385 if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) { in qed_resc_free() 1390 if (p_hwfn->hw_info.personality == QED_PCI_NVMETCP) { in qed_resc_free() 1430 switch (p_hwfn->hw_info.personality) { in qed_get_pq_flags() 1452 "unknown personality %d\n", p_hwfn->hw_info.personality); in qed_get_pq_flags() 2279 } else if (p_hwfn->hw_info.personality == QED_PCI_ISCSI || in qed_resc_alloc() 2280 p_hwfn->hw_info.personality == QED_PCI_NVMETCP) { in qed_resc_alloc() 2315 if (p_hwfn->hw_info.personality == QED_PCI_FCOE) { in qed_resc_alloc() 2321 if (p_hwfn->hw_info.personality == QED_PCI_ISCSI) { in qed_resc_alloc() 2330 if (p_hwfn->hw_info.personality == QED_PCI_NVMETCP) { in qed_resc_alloc() [all …]
|
/linux-6.6.21/arch/loongarch/include/asm/ |
D | elf.h | 244 if (personality(current->personality) != PER_LINUX) \ 261 p = personality(current->personality); \
|
/linux-6.6.21/arch/s390/include/asm/ |
D | elf.h | 255 (current->personality & (~PER_MASK))); \ 261 if (personality(current->personality) != PER_LINUX32) \ 263 (current->personality & ~PER_MASK)); \
|
/linux-6.6.21/arch/sparc/include/asm/ |
D | elf_64.h | 209 if (personality(current->personality) != PER_LINUX32) \ 211 (current->personality & (~PER_MASK))); \
|
/linux-6.6.21/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)
|
/linux-6.6.21/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);
|
/linux-6.6.21/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); \
|
/linux-6.6.21/Documentation/admin-guide/ |
D | syscall-user-dispatch.rst | 20 switch, indicating the current personality of the process. A 21 multiple-personality application can then flip the switch without 29 personality every time the compatibility layer executes. Instead, a 31 personality, and the application simply modifies that variable to
|
/linux-6.6.21/arch/microblaze/include/asm/ |
D | elf.h | 25 set_personality(PER_LINUX_32BIT | (current->personality & (~PER_MASK)))
|
/linux-6.6.21/include/trace/events/ |
D | io_uring.h | 514 __field( u16, personality ) 535 __entry->personality = sqe->personality; 555 __entry->buf_index, __entry->personality, __entry->file_index,
|