/arch/um/kernel/ |
D | signal.c | 60 sp = current->sas_ss_sp + current->sas_ss_size; in handle_signal() 70 spin_lock_irq(¤t->sighand->siglock); in handle_signal() 71 current->blocked = *oldset; in handle_signal() 73 spin_unlock_irq(¤t->sighand->siglock); in handle_signal() 74 force_sigsegv(signr, current); in handle_signal() 76 spin_lock_irq(¤t->sighand->siglock); in handle_signal() 77 sigorsets(¤t->blocked, ¤t->blocked, in handle_signal() 80 sigaddset(¤t->blocked, signr); in handle_signal() 82 spin_unlock_irq(¤t->sighand->siglock); in handle_signal() 96 oldset = ¤t->saved_sigmask; in kern_do_signal() [all …]
|
D | process.c | 73 current->thread.request.u.thread.proc = fn; in kernel_thread() 74 current->thread.request.u.thread.arg = arg; in kernel_thread() 76 ¤t->thread.regs, 0, NULL, NULL); in kernel_thread() 97 current->thread.saved_task = NULL; in _switch_to() 102 arch_switch_to(current); in _switch_to() 104 if (current->thread.saved_task) in _switch_to() 105 show_regs(&(current->thread.regs)); in _switch_to() 106 to = current->thread.saved_task; in _switch_to() 107 from = current; in _switch_to() 108 } while (current->thread.saved_task); in _switch_to() [all …]
|
D | exec.c | 25 arch_flush_thread(¤t->thread.arch); in flush_thread() 27 ret = unmap(¤t->mm->context.id, 0, STUB_START, 0, &data); in flush_thread() 28 ret = ret || unmap(¤t->mm->context.id, STUB_END, in flush_thread() 33 force_sig(SIGKILL, current); in flush_thread() 36 __switch_mm(¤t->mm->context.id); in flush_thread() 51 error = do_execve(file, argv, env, ¤t->thread.regs); in execve1() 53 task_lock(current); in execve1() 54 current->ptrace &= ~PT_DTRACE; in execve1() 56 SUBARCH_EXECVE1(¤t->thread.regs.regs); in execve1() 58 task_unlock(current); in execve1() [all …]
|
D | trap.c | 26 struct mm_struct *mm = current->mm; in handle_page_fault() 79 current->maj_flt++; in handle_page_fault() 81 current->min_flt++; in handle_page_fault() 123 current->thread.arch.faultinfo = fi; in bad_segv() 124 force_sig_info(SIGSEGV, &si, current); in bad_segv() 129 force_sigsegv(SIGSEGV, current); in fatal_sigsegv() 169 else if (current->mm == NULL) { in segv() 187 catcher = current->thread.fault_catcher; in segv() 191 current->thread.fault_addr = (void *) address; in segv() 194 else if (current->thread.fault_addr != NULL) in segv() [all …]
|
/arch/s390/math-emu/ |
D | math.c | 110 instr, current->comm, current->pid); in display_emulation_not_implemented() 152 mode = current->thread.fp_regs.fpc & 3; in emu_axbr() 153 cvt.w.high = current->thread.fp_regs.fprs[rx].ui; in emu_axbr() 154 cvt.w.low = current->thread.fp_regs.fprs[rx+2].ui; in emu_axbr() 156 cvt.w.high = current->thread.fp_regs.fprs[ry].ui; in emu_axbr() 157 cvt.w.low = current->thread.fp_regs.fprs[ry+2].ui; in emu_axbr() 161 current->thread.fp_regs.fprs[rx].ui = cvt.w.high; in emu_axbr() 162 current->thread.fp_regs.fprs[rx+2].ui = cvt.w.low; in emu_axbr() 173 mode = current->thread.fp_regs.fpc & 3; in emu_adbr() 174 FP_UNPACK_DP(DA, ¤t->thread.fp_regs.fprs[rx].d); in emu_adbr() [all …]
|
/arch/ia64/ia32/ |
D | binfmt_elf32.c | 92 vma->vm_mm = current->mm; in ia64_elf32_init() 98 down_write(¤t->mm->mmap_sem); in ia64_elf32_init() 100 if (insert_vm_struct(current->mm, vma)) { in ia64_elf32_init() 102 up_write(¤t->mm->mmap_sem); in ia64_elf32_init() 106 up_write(¤t->mm->mmap_sem); in ia64_elf32_init() 117 vma->vm_mm = current->mm; in ia64_elf32_init() 124 down_write(¤t->mm->mmap_sem); in ia64_elf32_init() 126 if (insert_vm_struct(current->mm, vma)) { in ia64_elf32_init() 128 up_write(¤t->mm->mmap_sem); in ia64_elf32_init() 132 up_write(¤t->mm->mmap_sem); in ia64_elf32_init() [all …]
|
/arch/m68k/mm/ |
D | fault.c | 27 siginfo.si_signo = current->thread.signo; in send_fault_sig() 28 siginfo.si_code = current->thread.code; in send_fault_sig() 29 siginfo.si_addr = (void *)current->thread.faddr; in send_fault_sig() 36 &siginfo, current); in send_fault_sig() 88 struct mm_struct *mm = current->mm; in do_page_fault() 95 current->mm->pgd); in do_page_fault() 170 current->maj_flt++; in do_page_fault() 172 current->min_flt++; in do_page_fault() 183 if (is_global_init(current)) { in do_page_fault() 189 printk("VM: killing process %s\n", current->comm); in do_page_fault() [all …]
|
/arch/sparc/kernel/ |
D | signal_32.c | 64 spin_lock_irq(¤t->sighand->siglock); in _sigpause_common() 65 current->saved_sigmask = current->blocked; in _sigpause_common() 66 siginitset(¤t->blocked, set); in _sigpause_common() 68 spin_unlock_irq(¤t->sighand->siglock); in _sigpause_common() 70 current->state = TASK_INTERRUPTIBLE; in _sigpause_common() 87 if (test_tsk_thread_flag(current, TIF_USEDFPU)) in restore_fpu_state() 90 if (current == last_task_used_math) { in restore_fpu_state() 96 clear_tsk_thread_flag(current, TIF_USEDFPU); in restore_fpu_state() 101 err = __copy_from_user(¤t->thread.float_regs[0], &fpu->si_float_regs[0], in restore_fpu_state() 103 err |= __get_user(current->thread.fsr, &fpu->si_fsr); in restore_fpu_state() [all …]
|
D | process_32.c | 320 show_stack(current, ksp); in dump_stack() 339 if(last_task_used_math == current) { 345 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, 346 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); 360 if(last_task_used_math == current) { 366 fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr, 367 ¤t->thread.fpqueue[0], ¤t->thread.fpqdepth); 376 current->thread.current_ds = USER_DS; 377 if (current->thread.flags & SPARC_FLAG_KTHREAD) { 378 current->thread.flags &= ~SPARC_FLAG_KTHREAD; [all …]
|
/arch/x86/ia32/ |
D | ia32_aout.c | 58 dump->u_tsize = ((unsigned long) current->mm->end_code) >> PAGE_SHIFT; in dump_thread32() 60 (current->mm->brk + (PAGE_SIZE-1))) >> PAGE_SHIFT; in dump_thread32() 63 dump->u_debugreg[0] = current->thread.debugreg0; in dump_thread32() 64 dump->u_debugreg[1] = current->thread.debugreg1; in dump_thread32() 65 dump->u_debugreg[2] = current->thread.debugreg2; in dump_thread32() 66 dump->u_debugreg[3] = current->thread.debugreg3; in dump_thread32() 69 dump->u_debugreg[6] = current->thread.debugreg6; in dump_thread32() 70 dump->u_debugreg[7] = current->thread.debugreg7; in dump_thread32() 86 dump->regs.ds = current->thread.ds; in dump_thread32() 87 dump->regs.es = current->thread.es; in dump_thread32() [all …]
|
/arch/powerpc/kernel/ |
D | signal.c | 38 current->sas_ss_size && !on_sig_stack(oldsp)) in get_sigframe() 39 oldsp = (current->sas_ss_sp + current->sas_ss_size); in get_sigframe() 58 spin_lock_irq(¤t->sighand->siglock); in restore_sigmask() 59 current->blocked = *set; in restore_sigmask() 61 spin_unlock_irq(¤t->sighand->siglock); in restore_sigmask() 124 oldset = ¤t->saved_sigmask; in do_signal_pending() 126 oldset = ¤t->blocked; in do_signal_pending() 138 sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); in do_signal_pending() 148 if (current->thread.dabr) { in do_signal_pending() 149 set_dabr(current->thread.dabr); in do_signal_pending() [all …]
|
D | process.c | 88 BUG_ON(tsk != current); in flush_fp_to_thread() 101 if (current->thread.regs && (current->thread.regs->msr & MSR_FP)) in enable_kernel_fp() 102 giveup_fpu(current); in enable_kernel_fp() 117 if (current->thread.regs && (current->thread.regs->msr & MSR_VEC)) in enable_kernel_altivec() 118 giveup_altivec(current); in enable_kernel_altivec() 137 BUG_ON(tsk != current); in flush_altivec_to_thread() 154 if (current->thread.regs && (current->thread.regs->msr & MSR_VSX)) 155 giveup_vsx(current); 178 BUG_ON(tsk != current); in flush_vsx_to_thread() 194 if (current->thread.regs && (current->thread.regs->msr & MSR_SPE)) in enable_kernel_spe() [all …]
|
D | signal_64.c | 94 flush_fp_to_thread(current); in setup_sigcontext() 100 if (current->thread.used_vr) { in setup_sigcontext() 101 flush_altivec_to_thread(current); in setup_sigcontext() 103 err |= __copy_to_user(v_regs, current->thread.vr, 33 * sizeof(vector128)); in setup_sigcontext() 112 err |= __put_user(current->thread.vrsave, (u32 __user *)&v_regs[33]); in setup_sigcontext() 116 flush_fp_to_thread(current); in setup_sigcontext() 118 err |= copy_fpr_to_user(&sc->fp_regs, current); in setup_sigcontext() 125 if (current->thread.used_vsr && ctx_has_vsx_region) { in setup_sigcontext() 126 __giveup_vsx(current); in setup_sigcontext() 128 err |= copy_vsx_to_user(v_regs, current); in setup_sigcontext() [all …]
|
/arch/h8300/kernel/ |
D | traps.c | 47 current->thread.esp0 = ssp; in set_esp0() 61 printk("COMM=%s PID=%d\n", current->comm, current->pid); in dump() 62 if (current->mm) { in dump() 64 (int) current->mm->start_code, in dump() 65 (int) current->mm->end_code, in dump() 66 (int) current->mm->start_data, in dump() 67 (int) current->mm->end_data, in dump() 68 (int) current->mm->end_data, in dump() 69 (int) current->mm->brk); in dump() 71 (int) current->mm->start_stack, in dump() [all …]
|
/arch/s390/kernel/ |
D | signal.c | 60 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE3() 61 current->saved_sigmask = current->blocked; in SYSCALL_DEFINE3() 62 siginitset(¤t->blocked, mask); in SYSCALL_DEFINE3() 64 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE3() 66 current->state = TASK_INTERRUPTIBLE; in SYSCALL_DEFINE3() 107 struct pt_regs *regs = task_pt_regs(current); in SYSCALL_DEFINE2() 116 save_access_regs(current->thread.acrs); in save_sigregs() 123 memcpy(&user_sregs.regs.acrs, current->thread.acrs, in save_sigregs() 129 save_fp_regs(¤t->thread.fp_regs); in save_sigregs() 130 memcpy(&user_sregs.fpregs, ¤t->thread.fp_regs, in save_sigregs() [all …]
|
/arch/mips/math-emu/ |
D | kernel_linkage.c | 42 current->thread.fpu.fcr31 = 0; in fpu_emulator_init_fpu() 44 current->thread.fpu.fpr[i] = SIGNALLING_NAN; in fpu_emulator_init_fpu() 62 __put_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); in fpu_emulator_save_context() 64 err |= __put_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in fpu_emulator_save_context() 76 __get_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); in fpu_emulator_restore_context() 78 err |= __get_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in fpu_emulator_restore_context() 95 __put_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); in fpu_emulator_save_context32() 97 err |= __put_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in fpu_emulator_save_context32() 109 __get_user(current->thread.fpu.fpr[i], &sc->sc_fpregs[i]); in fpu_emulator_restore_context32() 111 err |= __get_user(current->thread.fpu.fcr31, &sc->sc_fpc_csr); in fpu_emulator_restore_context32()
|
/arch/frv/kernel/ |
D | signal.c | 43 spin_lock_irq(¤t->sighand->siglock); in sys_sigsuspend() 44 current->saved_sigmask = current->blocked; in sys_sigsuspend() 45 siginitset(¤t->blocked, mask); in sys_sigsuspend() 47 spin_unlock_irq(¤t->sighand->siglock); in sys_sigsuspend() 49 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend() 120 struct user_context *user = current->thread.user; in restore_sigcontext() 157 spin_lock_irq(¤t->sighand->siglock); in sys_sigreturn() 158 current->blocked = set; in sys_sigreturn() 160 spin_unlock_irq(¤t->sighand->siglock); in sys_sigreturn() 167 force_sig(SIGSEGV, current); in sys_sigreturn() [all …]
|
/arch/um/sys-x86_64/ |
D | syscalls.c | 23 if (personality(current->personality) == PER_LINUX32) in sys_uname64() 51 ret = restore_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 74 current->thread.arch.fs = (unsigned long) ptr; in arch_prctl() 75 ret = save_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 78 ret = save_registers(pid, ¤t->thread.regs.regs); in arch_prctl() 93 return arch_prctl(current, code, (unsigned long __user *) addr); in sys_arch_prctl() 102 newsp = UPT_SP(¤t->thread.regs.regs); in sys_clone() 103 current->thread.forking = 1; in sys_clone() 104 ret = do_fork(clone_flags, newsp, ¤t->thread.regs, 0, parent_tid, in sys_clone() 106 current->thread.forking = 0; in sys_clone()
|
/arch/alpha/kernel/ |
D | signal.c | 65 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE3() 66 oldmask = current->blocked.sig[0]; in SYSCALL_DEFINE3() 75 sigemptyset(¤t->blocked); in SYSCALL_DEFINE3() 76 current->blocked.sig[0] = newmask; in SYSCALL_DEFINE3() 78 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE3() 150 spin_lock_irq(¤t->sighand->siglock); in do_sigsuspend() 151 current->saved_sigmask = current->blocked; in do_sigsuspend() 152 siginitset(¤t->blocked, mask); in do_sigsuspend() 154 spin_unlock_irq(¤t->sighand->siglock); in do_sigsuspend() 161 current->state = TASK_INTERRUPTIBLE; in do_sigsuspend() [all …]
|
/arch/avr32/kernel/ |
D | signal.c | 89 spin_lock_irq(¤t->sighand->siglock); in sys_rt_sigreturn() 90 current->blocked = set; in sys_rt_sigreturn() 92 spin_unlock_irq(¤t->sighand->siglock); in sys_rt_sigreturn() 106 force_sig(SIGSEGV, current); in sys_rt_sigreturn() 144 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe() 181 err |= __put_user((void __user *)current->sas_ss_sp, in setup_rt_frame() 185 err |= __put_user(current->sas_ss_size, in setup_rt_frame() 201 current->comm, current->pid); in setup_rt_frame() 206 current->comm, current->pid, sig, regs->sp, in setup_rt_frame() 244 spin_lock_irq(¤t->sighand->siglock); in handle_signal() [all …]
|
/arch/xtensa/mm/ |
D | fault.c | 41 struct mm_struct *mm = current->mm; in do_page_fault() 71 printk("[%s:%d:%08x:%d:%08x:%s%s]\n", current->comm, current->pid, in do_page_fault() 118 current->maj_flt++; in do_page_fault() 120 current->min_flt++; in do_page_fault() 131 current->thread.bad_vaddr = address; in do_page_fault() 132 current->thread.error_code = is_write; in do_page_fault() 137 force_sig_info(SIGSEGV, &info, current); in do_page_fault() 149 if (is_global_init(current)) { in do_page_fault() 154 printk("VM: killing process %s\n", current->comm); in do_page_fault() 166 current->thread.bad_vaddr = address; in do_page_fault() [all …]
|
/arch/mips/kernel/ |
D | signal_n32.c | 111 spin_lock_irq(¤t->sighand->siglock); in sysn32_rt_sigsuspend() 112 current->saved_sigmask = current->blocked; in sysn32_rt_sigsuspend() 113 current->blocked = newset; in sysn32_rt_sigsuspend() 115 spin_unlock_irq(¤t->sighand->siglock); in sysn32_rt_sigsuspend() 117 current->state = TASK_INTERRUPTIBLE; in sysn32_rt_sigsuspend() 138 spin_lock_irq(¤t->sighand->siglock); in sysn32_rt_sigreturn() 139 current->blocked = set; in sysn32_rt_sigreturn() 141 spin_unlock_irq(¤t->sighand->siglock); in sysn32_rt_sigreturn() 147 force_sig(sig, current); in sysn32_rt_sigreturn() 173 force_sig(SIGSEGV, current); in sysn32_rt_sigreturn() [all …]
|
D | signal.c | 254 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe() 300 spin_lock_irq(¤t->sighand->siglock); in sys_sigsuspend() 301 current->saved_sigmask = current->blocked; in sys_sigsuspend() 302 current->blocked = newset; in sys_sigsuspend() 304 spin_unlock_irq(¤t->sighand->siglock); in sys_sigsuspend() 306 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend() 329 spin_lock_irq(¤t->sighand->siglock); in sys_rt_sigsuspend() 330 current->saved_sigmask = current->blocked; in sys_rt_sigsuspend() 331 current->blocked = newset; in sys_rt_sigsuspend() 333 spin_unlock_irq(¤t->sighand->siglock); in sys_rt_sigsuspend() [all …]
|
/arch/sh/kernel/ |
D | signal_32.c | 52 spin_lock_irq(¤t->sighand->siglock); in sys_sigsuspend() 53 current->saved_sigmask = current->blocked; in sys_sigsuspend() 54 siginitset(¤t->blocked, mask); in sys_sigsuspend() 56 spin_unlock_irq(¤t->sighand->siglock); in sys_sigsuspend() 58 current->state = TASK_INTERRUPTIBLE; in sys_sigsuspend() 136 struct task_struct *tsk = current; in restore_sigcontext_fpu() 149 struct task_struct *tsk = current; in save_sigcontext_fpu() 194 struct task_struct *tsk = current; in restore_sigcontext() 233 spin_lock_irq(¤t->sighand->siglock); in sys_sigreturn() 234 current->blocked = set; in sys_sigreturn() [all …]
|
/arch/m32r/kernel/ |
D | signal.c | 49 spin_lock_irq(¤t->sighand->siglock); in sys_rt_sigsuspend() 50 current->saved_sigmask = current->blocked; in sys_rt_sigsuspend() 51 current->blocked = newset; in sys_rt_sigsuspend() 53 spin_unlock_irq(¤t->sighand->siglock); in sys_rt_sigsuspend() 55 current->state = TASK_INTERRUPTIBLE; in sys_rt_sigsuspend() 143 spin_lock_irq(¤t->sighand->siglock); in sys_rt_sigreturn() 144 current->blocked = set; in sys_rt_sigreturn() 146 spin_unlock_irq(¤t->sighand->siglock); in sys_rt_sigreturn() 157 force_sig(SIGSEGV, current); in sys_rt_sigreturn() 214 sp = current->sas_ss_sp + current->sas_ss_size; in get_sigframe() [all …]
|