Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.c380 spin_lock_irq(&tsk->sighand->siglock); in zap_threads()
388 spin_unlock_irq(&tsk->sighand->siglock); in zap_threads()
427 spin_lock_irq(&current->sighand->siglock); in coredump_finish()
432 spin_unlock_irq(&current->sighand->siglock); in coredump_finish()
/linux-6.1.9/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.1.9/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.1.9/kernel/
Dsignal.c69 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler()
195 spin_lock_irq(&current->sighand->siglock); in calculate_sigpending()
198 spin_unlock_irq(&current->sighand->siglock); in calculate_sigpending()
480 spin_lock_irqsave(&t->sighand->siglock, flags); in flush_signals()
484 spin_unlock_irqrestore(&t->sighand->siglock, flags); in flush_signals()
517 spin_lock_irqsave(&tsk->sighand->siglock, flags); in flush_itimer_signals()
520 spin_unlock_irqrestore(&tsk->sighand->siglock, flags); in flush_itimer_signals()
529 t->sighand->action[i].sa.sa_handler = SIG_IGN; in ignore_signals()
542 struct k_sigaction *ka = &t->sighand->action[0]; in flush_signal_handlers()
557 void __user *handler = tsk->sighand->action[sig-1].sa.sa_handler; in unhandled_signal()
[all …]
Dexit.c146 struct sighand_struct *sighand; in __exit_signal() local
150 sighand = rcu_dereference_check(tsk->sighand, in __exit_signal()
152 spin_lock(&sighand->siglock); in __exit_signal()
206 tsk->sighand = NULL; in __exit_signal()
207 spin_unlock(&sighand->siglock); in __exit_signal()
209 __cleanup_sighand(sighand); in __exit_signal()
409 spin_lock_irq(&tsk->sighand->siglock); in coredump_task_exit()
412 spin_unlock_irq(&tsk->sighand->siglock); in coredump_task_exit()
791 struct sighand_struct *sighand = tsk->sighand; in synchronize_group_exit() local
794 spin_lock_irq(&sighand->siglock); in synchronize_group_exit()
[all …]
Dptrace.c132 spin_lock(&child->sighand->siglock); in __ptrace_unlink()
170 spin_unlock(&child->sighand->siglock); in __ptrace_unlink()
202 spin_lock_irq(&task->sighand->siglock); in ptrace_freeze_traced()
208 spin_unlock_irq(&task->sighand->siglock); in ptrace_freeze_traced()
452 spin_lock(&task->sighand->siglock); in ptrace_attach()
477 spin_unlock(&task->sighand->siglock); in ptrace_attach()
571 else if (ignoring_children(tracer->sighand)) { in __ptrace_detach()
762 spin_lock_irq(&child->sighand->siglock); in ptrace_peek_siginfo()
770 spin_unlock_irq(&child->sighand->siglock); in ptrace_peek_siginfo()
881 spin_lock_irq(&child->sighand->siglock); in ptrace_resume()
[all …]
Dfork.c1640 refcount_inc(&current->sighand->count); in copy_sighand()
1644 RCU_INIT_POINTER(tsk->sighand, sig); in copy_sighand()
1649 spin_lock_irq(&current->sighand->siglock); in copy_sighand()
1650 memcpy(sig->action, current->sighand->action, sizeof(sig->action)); in copy_sighand()
1651 spin_unlock_irq(&current->sighand->siglock); in copy_sighand()
1660 void __cleanup_sighand(struct sighand_struct *sighand) in __cleanup_sighand() argument
1662 if (refcount_dec_and_test(&sighand->count)) { in __cleanup_sighand()
1663 signalfd_cleanup(sighand); in __cleanup_sighand()
1668 kmem_cache_free(sighand_cachep, sighand); in __cleanup_sighand()
1745 assert_spin_locked(&current->sighand->siglock); in copy_seccomp()
[all …]
Dseccomp.c434 assert_spin_locked(&current->sighand->siglock); in seccomp_may_assign_mode()
448 assert_spin_locked(&task->sighand->siglock); in seccomp_assign_mode()
490 assert_spin_locked(&current->sighand->siglock); in seccomp_can_sync_threads()
567 WARN_ON(tsk->sighand != NULL); in seccomp_filter_release()
587 assert_spin_locked(&current->sighand->siglock); in seccomp_sync_threads()
873 assert_spin_locked(&current->sighand->siglock); in seccomp_attach_filter()
1371 spin_lock_irq(&current->sighand->siglock); in seccomp_set_mode_strict()
1383 spin_unlock_irq(&current->sighand->siglock); in seccomp_set_mode_strict()
1812 lockdep_assert_held(&current->sighand->siglock); in has_duplicate_listener()
1898 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.c182 spin_lock_irq(&me->sighand->siglock); in zap_pid_ns_processes()
183 me->sighand->action[SIGCHLD - 1].sa.sa_handler = SIG_IGN; in zap_pid_ns_processes()
184 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.c73 spin_lock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
75 spin_unlock_irq(&current->sighand->siglock); in call_usermodehelper_exec_async()
/linux-6.1.9/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.c475 struct sighand_struct *sighand; in posix_cpu_timer_del() local
489 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_del()
490 if (unlikely(sighand == NULL)) { in posix_cpu_timer_del()
630 struct sighand_struct *sighand; in posix_cpu_timer_set() local
656 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_set()
661 if (unlikely(sighand == NULL)) { in posix_cpu_timer_set()
772 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_set()
773 if (!sighand) in posix_cpu_timer_set()
1050 struct sighand_struct *sighand; in posix_cpu_timer_rearm() local
1060 sighand = lock_task_sighand(p, &flags); in posix_cpu_timer_rearm()
[all …]
Dposix-timers.c560 spin_lock_irq(&current->sighand->siglock); in do_timer_create()
563 spin_unlock_irq(&current->sighand->siglock); in do_timer_create()
1021 spin_lock(&current->sighand->siglock); in SYSCALL_DEFINE1()
1023 spin_unlock(&current->sighand->siglock); in SYSCALL_DEFINE1()
1066 spin_lock_irq(&tsk->sighand->siglock); in exit_itimers()
1068 spin_unlock_irq(&tsk->sighand->siglock); in exit_itimers()
/linux-6.1.9/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.1.9/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()
746 (void)__cond_lock(&task->sighand->siglock, ret); in lock_task_sighand()
753 spin_unlock_irqrestore(&task->sighand->siglock, *flags); in unlock_task_sighand()
Dcputime.h105 if (unlikely(!tsk->sighand)) in get_running_cputimer()
/linux-6.1.9/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()
547 spin_lock_irq(&current->sighand->siglock); in fpu_inherit_perms()
551 spin_unlock_irq(&current->sighand->siglock); in fpu_inherit_perms()
Dxstate.c1572 lockdep_assert_held(&current->sighand->siglock); in validate_sigaltstack()
1662 spin_lock_irq(&current->sighand->siglock); in xstate_request_perm()
1670 spin_unlock_irq(&current->sighand->siglock); in xstate_request_perm()
1688 spin_lock_irq(&current->sighand->siglock); in __xfd_enable_feature()
1692 spin_unlock_irq(&current->sighand->siglock); in __xfd_enable_feature()
1707 spin_unlock_irq(&current->sighand->siglock); in __xfd_enable_feature()
/linux-6.1.9/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.1.9/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()
/linux-6.1.9/fs/autofs/
Dwaitq.c68 spin_lock_irqsave(&current->sighand->siglock, flags); in autofs_write()
71 spin_unlock_irqrestore(&current->sighand->siglock, flags); in autofs_write()

12