Lines Matching refs:current

155 	else if (!recalc_sigpending_tsk(current) && !freezing(current))  in recalc_sigpending()
223 current->comm, current->pid, sig); in print_dropped_signal()
331 struct task_struct *tsk = current; in flush_itimer_signals()
392 spin_lock_irqsave(&current->sighand->siglock, flags); in block_all_signals()
393 current->notifier_mask = mask; in block_all_signals()
394 current->notifier_data = priv; in block_all_signals()
395 current->notifier = notifier; in block_all_signals()
396 spin_unlock_irqrestore(&current->sighand->siglock, flags); in block_all_signals()
406 spin_lock_irqsave(&current->sighand->siglock, flags); in unblock_all_signals()
407 current->notifier = NULL; in unblock_all_signals()
408 current->notifier_data = NULL; in unblock_all_signals()
410 spin_unlock_irqrestore(&current->sighand->siglock, flags); in unblock_all_signals()
456 if (current->notifier) { in __dequeue_signal()
457 if (sigismember(current->notifier_mask, sig)) { in __dequeue_signal()
458 if (!(current->notifier)(current->notifier_data)) { in __dequeue_signal()
680 if (!same_thread_group(current, t) && in check_kill_permission()
689 if (!sid || sid == task_session(current)) in check_kill_permission()
950 q->info.si_pid = task_tgid_nr_ns(current, in __send_signal()
999 !task_pid_nr_ns(current, task_active_pid_ns(t)); in send_signal()
1008 current->comm, task_pid_nr(current), signr); in print_fatal_signal()
1278 pid ? find_vpid(-pid) : task_pgrp(current)); in kill_something_info()
1285 !same_thread_group(p, current)) { in kill_something_info()
1378 struct sigqueue *q = __sigqueue_alloc(-1, current, GFP_KERNEL, 0); in sigqueue_alloc()
1389 spinlock_t *lock = &current->sighand->siglock; in sigqueue_free()
1595 if (!likely(task_ptrace(current))) in may_ptrace_stop()
1606 if (unlikely(current->mm->core_state) && in may_ptrace_stop()
1607 unlikely(current->mm == current->parent->mm)) in may_ptrace_stop()
1635 __releases(&current->sighand->siglock) in ptrace_stop()
1636 __acquires(&current->sighand->siglock) in ptrace_stop()
1650 spin_unlock_irq(&current->sighand->siglock); in ptrace_stop()
1652 spin_lock_irq(&current->sighand->siglock); in ptrace_stop()
1653 if (sigkill_pending(current)) in ptrace_stop()
1661 if (current->signal->group_stop_count > 0) in ptrace_stop()
1662 --current->signal->group_stop_count; in ptrace_stop()
1664 current->last_siginfo = info; in ptrace_stop()
1665 current->exit_code = exit_code; in ptrace_stop()
1669 spin_unlock_irq(&current->sighand->siglock); in ptrace_stop()
1672 do_notify_parent_cldstop(current, CLD_TRAPPED); in ptrace_stop()
1690 current->exit_code = 0; in ptrace_stop()
1706 spin_lock_irq(&current->sighand->siglock); in ptrace_stop()
1707 current->last_siginfo = NULL; in ptrace_stop()
1714 recalc_sigpending_tsk(current); in ptrace_stop()
1726 info.si_pid = task_pid_vnr(current); in ptrace_notify()
1730 spin_lock_irq(&current->sighand->siglock); in ptrace_notify()
1732 spin_unlock_irq(&current->sighand->siglock); in ptrace_notify()
1743 struct signal_struct *sig = current->signal; in do_signal_stop()
1759 for (t = next_thread(current); t != current; t = next_thread(t)) in do_signal_stop()
1786 current->exit_code = sig->group_exit_code; in do_signal_stop()
1789 spin_unlock_irq(&current->sighand->siglock); in do_signal_stop()
1793 do_notify_parent_cldstop(current, notify); in do_signal_stop()
1803 current->exit_code = 0; in do_signal_stop()
1811 if (!task_ptrace(current)) in ptrace_signal()
1820 signr = current->exit_code; in ptrace_signal()
1824 current->exit_code = 0; in ptrace_signal()
1836 info->si_pid = task_pid_vnr(current->parent); in ptrace_signal()
1837 info->si_uid = task_uid(current->parent); in ptrace_signal()
1841 if (sigismember(&current->blocked, signr)) { in ptrace_signal()
1842 specific_send_sig_info(signr, info, current); in ptrace_signal()
1852 struct sighand_struct *sighand = current->sighand; in get_signal_to_deliver()
1853 struct signal_struct *signal = current->signal; in get_signal_to_deliver()
1881 do_notify_parent_cldstop(current->group_leader, why); in get_signal_to_deliver()
1894 signr = tracehook_get_signal(current, regs, info, return_ka); in get_signal_to_deliver()
1904 signr = dequeue_signal(current, &current->blocked, in get_signal_to_deliver()
1994 current->flags |= PF_SIGNALED; in get_signal_to_deliver()
2110 spin_lock_irq(&current->sighand->siglock); in sigprocmask()
2112 *oldset = current->blocked; in sigprocmask()
2117 sigorsets(&current->blocked, &current->blocked, set); in sigprocmask()
2120 signandsets(&current->blocked, &current->blocked, set); in sigprocmask()
2123 current->blocked = *set; in sigprocmask()
2129 spin_unlock_irq(&current->sighand->siglock); in sigprocmask()
2163 spin_lock_irq(&current->sighand->siglock); in SYSCALL_DEFINE4()
2164 old_set = current->blocked; in SYSCALL_DEFINE4()
2165 spin_unlock_irq(&current->sighand->siglock); in SYSCALL_DEFINE4()
2185 spin_lock_irq(&current->sighand->siglock); in do_sigpending()
2186 sigorsets(&pending, &current->pending.signal, in do_sigpending()
2187 &current->signal->shared_pending.signal); in do_sigpending()
2188 spin_unlock_irq(&current->sighand->siglock); in do_sigpending()
2191 sigandsets(&pending, &current->blocked, &pending); in do_sigpending()
2326 spin_lock_irq(&current->sighand->siglock); in SYSCALL_DEFINE4()
2327 sig = dequeue_signal(current, &these, &info); in SYSCALL_DEFINE4()
2340 current->real_blocked = current->blocked; in SYSCALL_DEFINE4()
2341 sigandsets(&current->blocked, &current->blocked, &these); in SYSCALL_DEFINE4()
2343 spin_unlock_irq(&current->sighand->siglock); in SYSCALL_DEFINE4()
2347 spin_lock_irq(&current->sighand->siglock); in SYSCALL_DEFINE4()
2348 sig = dequeue_signal(current, &these, &info); in SYSCALL_DEFINE4()
2349 current->blocked = current->real_blocked; in SYSCALL_DEFINE4()
2350 siginitset(&current->real_blocked, 0); in SYSCALL_DEFINE4()
2354 spin_unlock_irq(&current->sighand->siglock); in SYSCALL_DEFINE4()
2383 info.si_pid = task_tgid_vnr(current); in SYSCALL_DEFINE2()
2426 info.si_pid = task_tgid_vnr(current); in do_tkill()
2527 struct task_struct *t = current; in do_sigaction()
2536 spin_lock_irq(&current->sighand->siglock); in do_sigaction()
2562 } while (t != current); in do_sigaction()
2566 spin_unlock_irq(&current->sighand->siglock); in do_sigaction()
2576 oss.ss_sp = (void __user *) current->sas_ss_sp; in do_sigaltstack()
2577 oss.ss_size = current->sas_ss_size; in do_sigaltstack()
2618 current->sas_ss_sp = (unsigned long) ss_sp; in do_sigaltstack()
2619 current->sas_ss_size = ss_size; in do_sigaltstack()
2672 spin_lock_irq(&current->sighand->siglock); in SYSCALL_DEFINE3()
2673 old_set = current->blocked.sig[0]; in SYSCALL_DEFINE3()
2681 sigaddsetmask(&current->blocked, new_set); in SYSCALL_DEFINE3()
2684 sigdelsetmask(&current->blocked, new_set); in SYSCALL_DEFINE3()
2687 current->blocked.sig[0] = new_set; in SYSCALL_DEFINE3()
2692 spin_unlock_irq(&current->sighand->siglock); in SYSCALL_DEFINE3()
2698 old_set = current->blocked.sig[0]; in SYSCALL_DEFINE3()
2754 return current->blocked.sig[0]; in SYSCALL_DEFINE0()
2761 spin_lock_irq(&current->sighand->siglock); in SYSCALL_DEFINE1()
2762 old = current->blocked.sig[0]; in SYSCALL_DEFINE1()
2764 siginitset(&current->blocked, newmask & ~(sigmask(SIGKILL)| in SYSCALL_DEFINE1()
2767 spin_unlock_irq(&current->sighand->siglock); in SYSCALL_DEFINE1()
2796 current->state = TASK_INTERRUPTIBLE; in SYSCALL_DEFINE0()
2822 spin_lock_irq(&current->sighand->siglock); in SYSCALL_DEFINE2()
2823 current->saved_sigmask = current->blocked; in SYSCALL_DEFINE2()
2824 current->blocked = newset; in SYSCALL_DEFINE2()
2826 spin_unlock_irq(&current->sighand->siglock); in SYSCALL_DEFINE2()
2828 current->state = TASK_INTERRUPTIBLE; in SYSCALL_DEFINE2()