Home
last modified time | relevance | path

Searched refs:sighand (Results 1 – 25 of 41) sorted by relevance

12

/linux-6.6.21/fs/
Dsignalfd.c36 void signalfd_cleanup(struct sighand_struct *sighand) in signalfd_cleanup() argument
38 wake_up_pollfree(&sighand->signalfd_wqh); in signalfd_cleanup()
56 poll_wait(file, &current->sighand->signalfd_wqh, wait); in signalfd_poll()
58 spin_lock_irq(&current->sighand->siglock); in signalfd_poll()
63 spin_unlock_irq(&current->sighand->siglock); in signalfd_poll()
162 spin_lock_irq(&current->sighand->siglock); in signalfd_dequeue()
171 spin_unlock_irq(&current->sighand->siglock); in signalfd_dequeue()
175 add_wait_queue(&current->sighand->signalfd_wqh, &wait); in signalfd_dequeue()
185 spin_unlock_irq(&current->sighand->siglock); in signalfd_dequeue()
187 spin_lock_irq(&current->sighand->siglock); in signalfd_dequeue()
[all …]
Dcoredump.c389 spin_lock_irq(&tsk->sighand->siglock); in zap_threads()
397 spin_unlock_irq(&tsk->sighand->siglock); in zap_threads()
436 spin_lock_irq(&current->sighand->siglock); in coredump_finish()
441 spin_unlock_irq(&current->sighand->siglock); in coredump_finish()
/linux-6.6.21/drivers/tty/
Dtty_jobctrl.c19 current->sighand->action[sig-1].sa.sa_handler == SIG_IGN); in is_ignored()
80 spin_lock_irqsave(&p->sighand->siglock, flags); in proc_clear_tty()
83 spin_unlock_irqrestore(&p->sighand->siglock, flags); in proc_clear_tty()
124 spin_lock_irq(&current->sighand->siglock); in proc_set_tty()
126 spin_unlock_irq(&current->sighand->siglock); in proc_set_tty()
135 spin_lock_irq(&current->sighand->siglock); in tty_open_proc_set_tty()
156 spin_unlock_irq(&current->sighand->siglock); in tty_open_proc_set_tty()
165 spin_lock_irqsave(&current->sighand->siglock, flags); in get_current_tty()
167 spin_unlock_irqrestore(&current->sighand->siglock, flags); in get_current_tty()
205 spin_lock_irq(&p->sighand->siglock); in tty_signal_session_leader()
[all …]
/linux-6.6.21/include/linux/
Dsignalfd.h21 if (unlikely(waitqueue_active(&tsk->sighand->signalfd_wqh))) in signalfd_notify()
22 wake_up(&tsk->sighand->signalfd_wqh); in signalfd_notify()
25 extern void signalfd_cleanup(struct sighand_struct *sighand);
31 static inline void signalfd_cleanup(struct sighand_struct *sighand) { } in signalfd_cleanup() argument
/linux-6.6.21/kernel/
Dsignal.c71 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler()
197 spin_lock_irq(&current->sighand->siglock); in calculate_sigpending()
200 spin_unlock_irq(&current->sighand->siglock); in calculate_sigpending()
482 spin_lock_irqsave(&t->sighand->siglock, flags); in flush_signals()
486 spin_unlock_irqrestore(&t->sighand->siglock, flags); in flush_signals()
519 spin_lock_irqsave(&tsk->sighand->siglock, flags); in flush_itimer_signals()
522 spin_unlock_irqrestore(&tsk->sighand->siglock, flags); in flush_itimer_signals()
531 t->sighand->action[i].sa.sa_handler = SIG_IGN; in ignore_signals()
544 struct k_sigaction *ka = &t->sighand->action[0]; in flush_signal_handlers()
559 void __user *handler = tsk->sighand->action[sig-1].sa.sa_handler; in unhandled_signal()
[all …]
Dexit.c147 struct sighand_struct *sighand; in __exit_signal() local
151 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal()
153 spin_lock(&sighand->siglock); in __exit_signal()
207 tsk->sighand = NULL; in __exit_signal()
208 spin_unlock(&sighand->siglock); in __exit_signal()
210 __cleanup_sighand(sighand); in __exit_signal()
410 spin_lock_irq(&tsk->sighand->siglock); in coredump_task_exit()
413 spin_unlock_irq(&tsk->sighand->siglock); in coredump_task_exit()
795 struct sighand_struct *sighand = tsk->sighand; in synchronize_group_exit() local
798 spin_lock_irq(&sighand->siglock); in synchronize_group_exit()
[all …]
Dptrace.c133 spin_lock(&child->sighand->siglock); in __ptrace_unlink()
171 spin_unlock(&child->sighand->siglock); in __ptrace_unlink()
203 spin_lock_irq(&task->sighand->siglock); in ptrace_freeze_traced()
209 spin_unlock_irq(&task->sighand->siglock); in ptrace_freeze_traced()
453 spin_lock(&task->sighand->siglock); in ptrace_attach()
478 spin_unlock(&task->sighand->siglock); in ptrace_attach()
572 else if (ignoring_children(tracer->sighand)) { in __ptrace_detach()
763 spin_lock_irq(&child->sighand->siglock); in ptrace_peek_siginfo()
771 spin_unlock_irq(&child->sighand->siglock); in ptrace_peek_siginfo()
882 spin_lock_irq(&child->sighand->siglock); in ptrace_resume()
[all …]
Dfork.c1804 refcount_inc(&current->sighand->count); in copy_sighand()
1808 RCU_INIT_POINTER(tsk->sighand, sig); in copy_sighand()
1813 spin_lock_irq(&current->sighand->siglock); in copy_sighand()
1814 memcpy(sig->action, current->sighand->action, sizeof(sig->action)); in copy_sighand()
1815 spin_unlock_irq(&current->sighand->siglock); in copy_sighand()
1824 void __cleanup_sighand(struct sighand_struct *sighand) in __cleanup_sighand() argument
1826 if (refcount_dec_and_test(&sighand->count)) { in __cleanup_sighand()
1827 signalfd_cleanup(sighand); in __cleanup_sighand()
1832 kmem_cache_free(sighand_cachep, sighand); in __cleanup_sighand()
1909 assert_spin_locked(&current->sighand->siglock); in copy_seccomp()
[all …]
Dseccomp.c439 assert_spin_locked(&current->sighand->siglock); in seccomp_may_assign_mode()
453 assert_spin_locked(&task->sighand->siglock); in seccomp_assign_mode()
495 assert_spin_locked(&current->sighand->siglock); in seccomp_can_sync_threads()
574 WARN_ON(tsk->sighand != NULL); in seccomp_filter_release()
596 assert_spin_locked(&current->sighand->siglock); in seccomp_sync_threads()
882 assert_spin_locked(&current->sighand->siglock); in seccomp_attach_filter()
1383 spin_lock_irq(&current->sighand->siglock); in seccomp_set_mode_strict()
1395 spin_unlock_irq(&current->sighand->siglock); in seccomp_set_mode_strict()
1876 lockdep_assert_held(&current->sighand->siglock); in has_duplicate_listener()
1962 spin_lock_irq(&current->sighand->siglock); in seccomp_set_mode_filter()
[all …]
Dkcmp.c192 ret = kcmp_ptr(task1->sighand, task2->sighand, KCMP_SIGHAND); in SYSCALL_DEFINE5()
Dpid_namespace.c185 spin_lock_irq(&me->sighand->siglock); in zap_pid_ns_processes()
186 me->sighand->action[SIGCHLD - 1].sa.sa_handler = SIG_IGN; in zap_pid_ns_processes()
187 spin_unlock_irq(&me->sighand->siglock); in zap_pid_ns_processes()
Dacct.c477 spin_lock_irq(&current->sighand->siglock); in fill_ac()
487 spin_unlock_irq(&current->sighand->siglock); in fill_ac()
570 spin_lock_irq(&current->sighand->siglock); in acct_collect()
590 spin_unlock_irq(&current->sighand->siglock); in acct_collect()
Dtaskstats.c280 spin_lock_irqsave(&tsk->sighand->siglock, flags); in fill_tgid_exit()
292 spin_unlock_irqrestore(&tsk->sighand->siglock, flags); in fill_tgid_exit()
585 spin_lock_irq(&tsk->sighand->siglock); in taskstats_tgid_alloc()
596 spin_unlock_irq(&tsk->sighand->siglock); in taskstats_tgid_alloc()
Dumh.c70 spin_lock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
72 spin_unlock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
/linux-6.6.21/kernel/time/
Ditimer.c53 spin_lock_irq(&tsk->sighand->siglock); in get_cpu_itimer()
70 spin_unlock_irq(&tsk->sighand->siglock); in get_cpu_itimer()
82 spin_lock_irq(&tsk->sighand->siglock); in do_getitimer()
86 spin_unlock_irq(&tsk->sighand->siglock); in do_getitimer()
178 spin_lock_irq(&tsk->sighand->siglock); in set_cpu_itimer()
192 spin_unlock_irq(&tsk->sighand->siglock); in set_cpu_itimer()
216 spin_lock_irq(&tsk->sighand->siglock); in do_setitimer()
225 spin_unlock_irq(&tsk->sighand->siglock); in do_setitimer()
238 spin_unlock_irq(&tsk->sighand->siglock); in do_setitimer()
Dposix-cpu-timers.c474 struct sighand_struct *sighand; in posix_cpu_timer_del() local
488 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_del()
489 if (unlikely(sighand == NULL)) { in posix_cpu_timer_del()
629 struct sighand_struct *sighand; in posix_cpu_timer_set() local
655 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_set()
660 if (unlikely(sighand == NULL)) { in posix_cpu_timer_set()
771 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_set()
772 if (!sighand) in posix_cpu_timer_set()
1051 struct sighand_struct *sighand; in posix_cpu_timer_rearm() local
1061 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_rearm()
[all …]
Dposix-timers.c515 spin_lock_irq(&current->sighand->siglock); in do_timer_create()
519 spin_unlock_irq(&current->sighand->siglock); in do_timer_create()
1023 spin_lock(&current->sighand->siglock); in SYSCALL_DEFINE1()
1025 spin_unlock(&current->sighand->siglock); in SYSCALL_DEFINE1()
1102 spin_lock_irq(&tsk->sighand->siglock); in exit_itimers()
1104 spin_unlock_irq(&tsk->sighand->siglock); in exit_itimers()
/linux-6.6.21/fs/proc/
Dtask_nommu.c65 if (current->sighand && refcount_read(&current->sighand->count) > 1) in task_mem()
66 sbytes += kobjsize(current->sighand); in task_mem()
68 bytes += kobjsize(current->sighand); in task_mem()
/linux-6.6.21/include/linux/sched/
Dsignal.h288 spin_lock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
290 spin_unlock_irq(&task->sighand->siglock); in kernel_dequeue_signal()
297 spin_lock_irq(&current->sighand->siglock); in kernel_signal_stop()
302 spin_unlock_irq(&current->sighand->siglock); in kernel_signal_stop()
743 (void)__cond_lock(&task->sighand->siglock, ret); in lock_task_sighand()
750 spin_unlock_irqrestore(&task->sighand->siglock, *flags); in unlock_task_sighand()
Dcputime.h96 if (unlikely(!tsk->sighand)) in get_running_cputimer()
/linux-6.6.21/kernel/cgroup/
Dfreezer.c143 spin_lock(&current->sighand->siglock); in cgroup_leave_frozen()
146 spin_unlock(&current->sighand->siglock); in cgroup_leave_frozen()
/linux-6.6.21/arch/x86/kernel/fpu/
Dcore.c206 spin_lock_irq(&current->sighand->siglock); in fpu_init_guest_permissions()
213 spin_unlock_irq(&current->sighand->siglock); in fpu_init_guest_permissions()
548 spin_lock_irq(&current->sighand->siglock); in fpu_inherit_perms()
552 spin_unlock_irq(&current->sighand->siglock); in fpu_inherit_perms()
Dxstate.c1573 lockdep_assert_held(&current->sighand->siglock); in validate_sigaltstack()
1663 spin_lock_irq(&current->sighand->siglock); in xstate_request_perm()
1671 spin_unlock_irq(&current->sighand->siglock); in xstate_request_perm()
1689 spin_lock_irq(&current->sighand->siglock); in __xfd_enable_feature()
1693 spin_unlock_irq(&current->sighand->siglock); in __xfd_enable_feature()
1708 spin_unlock_irq(&current->sighand->siglock); in __xfd_enable_feature()
/linux-6.6.21/tools/perf/util/bpf_skel/vmlinux/
Dvmlinux.h98 struct sighand_struct *sighand; member
/linux-6.6.21/fs/coda/
Dupcall.c618 spin_lock_irq(&current->sighand->siglock); in coda_block_signals()
627 spin_unlock_irq(&current->sighand->siglock); in coda_block_signals()
632 spin_lock_irq(&current->sighand->siglock); in coda_unblock_signals()
635 spin_unlock_irq(&current->sighand->siglock); in coda_unblock_signals()

12