/arch/mips/include/asm/ |
D | compat-signal.h | 83 err = __put_user(s->sig[0], &d->sig[0]); in __copy_conv_sigset_to_user() 84 err |= __put_user(s->sig[0] >> 32, &d->sig[1]); in __copy_conv_sigset_to_user() 85 err |= __put_user(s->sig[1], &d->sig[2]); in __copy_conv_sigset_to_user() 86 err |= __put_user(s->sig[1] >> 32, &d->sig[3]); in __copy_conv_sigset_to_user() 104 err = __get_user(u->c.sig[1], &s->sig[0]); in __copy_conv_sigset_from_user() 105 err |= __get_user(u->c.sig[0], &s->sig[1]); in __copy_conv_sigset_from_user() 106 err |= __get_user(u->c.sig[3], &s->sig[2]); in __copy_conv_sigset_from_user() 107 err |= __get_user(u->c.sig[2], &s->sig[3]); in __copy_conv_sigset_from_user() 110 err = __get_user(u->c.sig[0], &s->sig[0]); in __copy_conv_sigset_from_user() 111 err |= __get_user(u->c.sig[1], &s->sig[1]); in __copy_conv_sigset_from_user() [all …]
|
/arch/x86/include/asm/ |
D | signal.h | 31 unsigned long sig[_NSIG_WORDS]; member 195 #define sigaddset(set,sig) \ argument 196 (__builtin_constant_p(sig) \ 197 ? __const_sigaddset((set), (sig)) \ 198 : __gen_sigaddset((set), (sig))) 207 unsigned long sig = _sig - 1; in __const_sigaddset() local 208 set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW); in __const_sigaddset() 211 #define sigdelset(set, sig) \ argument 212 (__builtin_constant_p(sig) \ 213 ? __const_sigdelset((set), (sig)) \ [all …]
|
/arch/sparc/kernel/ |
D | sys_sparc32.c | 242 case 4: s.sig[3] = s32.sig[6] | (((long)s32.sig[7]) << 32); in compat_sys_rt_sigprocmask() 243 case 3: s.sig[2] = s32.sig[4] | (((long)s32.sig[5]) << 32); in compat_sys_rt_sigprocmask() 244 case 2: s.sig[1] = s32.sig[2] | (((long)s32.sig[3]) << 32); in compat_sys_rt_sigprocmask() 245 case 1: s.sig[0] = s32.sig[0] | (((long)s32.sig[1]) << 32); in compat_sys_rt_sigprocmask() 257 case 4: s32.sig[7] = (s.sig[3] >> 32); s32.sig[6] = s.sig[3]; in compat_sys_rt_sigprocmask() 258 case 3: s32.sig[5] = (s.sig[2] >> 32); s32.sig[4] = s.sig[2]; in compat_sys_rt_sigprocmask() 259 case 2: s32.sig[3] = (s.sig[1] >> 32); s32.sig[2] = s.sig[1]; in compat_sys_rt_sigprocmask() 260 case 1: s32.sig[1] = (s.sig[0] >> 32); s32.sig[0] = s.sig[0]; in compat_sys_rt_sigprocmask() 281 case 4: s32.sig[7] = (s.sig[3] >> 32); s32.sig[6] = s.sig[3]; in sys32_rt_sigpending() 282 case 3: s32.sig[5] = (s.sig[2] >> 32); s32.sig[4] = s.sig[2]; in sys32_rt_sigpending() [all …]
|
D | signal32.c | 271 case 4: set.sig[3] = seta[6] + (((long)seta[7]) << 32); in do_sigreturn32() 272 case 3: set.sig[2] = seta[4] + (((long)seta[5]) << 32); in do_sigreturn32() 273 case 2: set.sig[1] = seta[2] + (((long)seta[3]) << 32); in do_sigreturn32() 274 case 1: set.sig[0] = seta[0] + (((long)seta[1]) << 32); in do_sigreturn32() 372 case 4: set.sig[3] = seta.sig[6] + (((long)seta.sig[7]) << 32); in do_rt_sigreturn32() 373 case 3: set.sig[2] = seta.sig[4] + (((long)seta.sig[5]) << 32); in do_rt_sigreturn32() 374 case 2: set.sig[1] = seta.sig[2] + (((long)seta.sig[3]) << 32); in do_rt_sigreturn32() 375 case 1: set.sig[0] = seta.sig[0] + (((long)seta.sig[1]) << 32); in do_rt_sigreturn32() 554 case 4: seta[7] = (oldset->sig[3] >> 32); in setup_frame32() 555 seta[6] = oldset->sig[3]; in setup_frame32() [all …]
|
/arch/um/os-Linux/ |
D | signal.c | 27 static void sig_handler_common(int sig, mcontext_t *mc) in sig_handler_common() argument 33 if (sig == SIGSEGV) { in sig_handler_common() 40 if ((sig != SIGIO) && (sig != SIGWINCH) && (sig != SIGVTALRM)) in sig_handler_common() 43 (*sig_info[sig])(sig, &r); in sig_handler_common() 63 void sig_handler(int sig, mcontext_t *mc) in sig_handler() argument 68 if (!enabled && (sig == SIGIO)) { in sig_handler() 75 sig_handler_common(sig, mc); in sig_handler() 91 void alarm_handler(int sig, mcontext_t *mc) in alarm_handler() argument 122 static void (*handlers[_NSIG])(int sig, mcontext_t *mc) = { 135 static void hard_handler(int sig, siginfo_t *info, void *p) in hard_handler() argument [all …]
|
/arch/x86/ia32/ |
D | sys_ia32.c | 175 asmlinkage long sys32_rt_sigaction(int sig, struct sigaction32 __user *act, in sys32_rt_sigaction() argument 205 case 4: new_ka.sa.sa_mask.sig[3] = set32.sig[6] in sys32_rt_sigaction() 206 | (((long)set32.sig[7]) << 32); in sys32_rt_sigaction() 207 case 3: new_ka.sa.sa_mask.sig[2] = set32.sig[4] in sys32_rt_sigaction() 208 | (((long)set32.sig[5]) << 32); in sys32_rt_sigaction() 209 case 2: new_ka.sa.sa_mask.sig[1] = set32.sig[2] in sys32_rt_sigaction() 210 | (((long)set32.sig[3]) << 32); in sys32_rt_sigaction() 211 case 1: new_ka.sa.sa_mask.sig[0] = set32.sig[0] in sys32_rt_sigaction() 212 | (((long)set32.sig[1]) << 32); in sys32_rt_sigaction() 216 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction() [all …]
|
/arch/blackfin/kernel/ |
D | traps.c | 27 kgdb_handle_exception(trapnr, sig, info.si_code, fp); \ 78 int sig = 0; in trap_c() local 114 sig = SIGTRAP; in trap_c() 124 sig = SIGSEGV; in trap_c() 132 sig = SIGTRAP; in trap_c() 153 sig = SIGILL; in trap_c() 160 sig = SIGTRAP; in trap_c() 170 sig = SIGTRAP; in trap_c() 222 sig = SIGILL; in trap_c() 229 sig = SIGILL; in trap_c() [all …]
|
/arch/mips/sgi-ip22/ |
D | ip22-eisa.c | 54 u8 sig[4]; in decode_eisa_sig() local 59 sig[i] = inb(addr + i); in decode_eisa_sig() 61 if (!i && (sig[0] & 0x80)) in decode_eisa_sig() 65 sig_str[0] = ((sig[0] >> 2) & 0x1f) + ('A' - 1); in decode_eisa_sig() 66 sig_str[1] = (((sig[0] & 3) << 3) | (sig[1] >> 5)) + ('A' - 1); in decode_eisa_sig() 67 sig_str[2] = (sig[1] & 0x1f) + ('A' - 1); in decode_eisa_sig() 68 rev = (sig[2] << 8) | sig[3]; in decode_eisa_sig()
|
/arch/m68k/include/asm/ |
D | signal.h | 20 unsigned long sig[_NSIG_WORDS]; member 175 unsigned long sig = _sig - 1; in __const_sigismember() local 176 return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); in __const_sigismember() 189 #define sigismember(set,sig) \ argument 190 (__builtin_constant_p(sig) ? \ 191 __const_sigismember(set,sig) : \ 192 __gen_sigismember(set,sig))
|
/arch/um/include/shared/ |
D | kern_util.h | 25 extern void relay_signal(int sig, struct uml_pt_regs *regs); 36 extern void timer_handler(int sig, struct uml_pt_regs *regs); 38 extern void timer_handler(int sig, struct uml_pt_regs *regs); 62 extern void segv_handler(int sig, struct uml_pt_regs *regs); 63 extern void bus_handler(int sig, struct uml_pt_regs *regs); 64 extern void winch(int sig, struct uml_pt_regs *regs);
|
/arch/frv/kernel/ |
D | signal.c | 56 asmlinkage int sys_sigaction(int sig, in sys_sigaction() argument 74 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 82 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction() 102 int sig; member 111 int sig; member 153 if (__get_user(set.sig[0], &frame->sc.sc_oldmask)) in sys_sigreturn() 157 __copy_from_user(&set.sig[1], &frame->extramask, sizeof(frame->extramask))) in sys_sigreturn() 251 static int setup_frame(int sig, struct k_sigaction *ka, sigset_t *set) in setup_frame() argument 263 rsig = sig; in setup_frame() 264 if (sig < 32 && in setup_frame() [all …]
|
/arch/h8300/kernel/ |
D | signal.c | 109 sys_sigaction(int sig, const struct old_sigaction *act, in sys_sigaction() argument 126 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 134 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction() 166 int sig; member 183 int sig; member 228 if (__get_user(set.sig[0], &frame->sc.sc_mask) || in do_sigreturn() 230 __copy_from_user(&set.sig[1], &frame->extramask, in do_sigreturn() 317 static void setup_frame (int sig, struct k_sigaction *ka, in setup_frame() argument 332 && sig < 32 in setup_frame() 333 ? current_thread_info()->exec_domain->signal_invmap[sig] in setup_frame() [all …]
|
/arch/mips/kernel/ |
D | signal32.c | 177 int err, sig; in check_and_restore_fp_context32() local 179 err = sig = fpcsr_pending(&sc->sc_fpc_csr); in check_and_restore_fp_context32() 183 return err ?: sig; in check_and_restore_fp_context32() 245 err |= __put_user(kbuf->sig[1] >> 32, &ubuf->sig[3]); in put_sigset() 246 err |= __put_user(kbuf->sig[1] & 0xffffffff, &ubuf->sig[2]); in put_sigset() 248 err |= __put_user(kbuf->sig[0] >> 32, &ubuf->sig[1]); in put_sigset() 249 err |= __put_user(kbuf->sig[0] & 0xffffffff, &ubuf->sig[0]); in put_sigset() 258 unsigned long sig[4]; in get_sigset() local 267 err |= __get_user(sig[3], &ubuf->sig[3]); in get_sigset() 268 err |= __get_user(sig[2], &ubuf->sig[2]); in get_sigset() [all …]
|
D | signal.c | 149 int err, sig = 0; in fpcsr_pending() local 161 sig = SIGFPE; in fpcsr_pending() 163 return err ?: sig; in fpcsr_pending() 169 int err, sig; in check_and_restore_fp_context() local 171 err = sig = fpcsr_pending(&sc->sc_fpc_csr); in check_and_restore_fp_context() 175 return err ?: sig; in check_and_restore_fp_context() 296 SYSCALL_DEFINE3(sigaction, int, sig, const struct sigaction __user *, act, in SYSCALL_DEFINE3() argument 310 err |= __get_user(mask, &act->sa_mask.sig[0]); in SYSCALL_DEFINE3() 317 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3() 324 err |= __put_user(old_ka.sa.sa_mask.sig[0], oact->sa_mask.sig); in SYSCALL_DEFINE3() [all …]
|
/arch/powerpc/kernel/ |
D | signal_32.c | 101 case 4: cset.sig[6] = set->sig[3] & 0xffffffffull; in put_sigset_t() 102 cset.sig[7] = set->sig[3] >> 32; in put_sigset_t() 103 case 3: cset.sig[4] = set->sig[2] & 0xffffffffull; in put_sigset_t() 104 cset.sig[5] = set->sig[2] >> 32; in put_sigset_t() 105 case 2: cset.sig[2] = set->sig[1] & 0xffffffffull; in put_sigset_t() 106 cset.sig[3] = set->sig[1] >> 32; in put_sigset_t() 107 case 1: cset.sig[0] = set->sig[0] & 0xffffffffull; in put_sigset_t() 108 cset.sig[1] = set->sig[0] >> 32; in put_sigset_t() 126 case 4: set->sig[3] = s32.sig[6] | (((long)s32.sig[7]) << 32); in get_sigset_t() 127 case 3: set->sig[2] = s32.sig[4] | (((long)s32.sig[5]) << 32); in get_sigset_t() [all …]
|
/arch/mn10300/kernel/ |
D | signal.c | 57 asmlinkage long sys_sigaction(int sig, in sys_sigaction() argument 75 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 82 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in sys_sigaction() 166 if (__get_user(set.sig[0], &frame->sc.oldmask)) in sys_sigreturn() 170 __copy_from_user(&set.sig[1], &frame->extramask, in sys_sigreturn() 282 static int setup_frame(int sig, struct k_sigaction *ka, sigset_t *set, in setup_frame() argument 293 rsig = sig; in setup_frame() 294 if (sig < 32 && in setup_frame() 297 rsig = current_thread_info()->exec_domain->signal_invmap[sig]; in setup_frame() 299 if (__put_user(rsig, &frame->sig) < 0 || in setup_frame() [all …]
|
/arch/arm/mm/ |
D | fault.c | 162 unsigned int fsr, unsigned int sig, int code, in __do_user_fault() argument 168 if (((user_debug & UDBG_SEGV) && (sig == SIGSEGV)) || in __do_user_fault() 169 ((user_debug & UDBG_BUS) && (sig == SIGBUS))) { in __do_user_fault() 171 tsk->comm, sig, addr, fsr); in __do_user_fault() 180 si.si_signo = sig; in __do_user_fault() 184 force_sig_info(sig, &si, tsk); in __do_user_fault() 263 int fault, sig, code; in do_page_fault() local 373 sig = SIGBUS; in do_page_fault() 380 sig = SIGSEGV; in do_page_fault() 385 __do_user_fault(tsk, addr, fsr, sig, code, regs); in do_page_fault() [all …]
|
/arch/s390/kernel/ |
D | signal.c | 73 SYSCALL_DEFINE3(sigaction, int, sig, const struct old_sigaction __user *, act, in SYSCALL_DEFINE3() argument 90 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in SYSCALL_DEFINE3() 97 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in SYSCALL_DEFINE3() 181 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE)) in SYSCALL_DEFINE0() 201 if (__copy_from_user(&set.sig, &frame->uc.uc_sigmask, sizeof(set))) in SYSCALL_DEFINE0() 252 static inline int map_signal(int sig) in map_signal() argument 256 && sig < 32) in map_signal() 257 return current_thread_info()->exec_domain->signal_invmap[sig]; in map_signal() 259 return sig; in map_signal() 262 static int setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument [all …]
|
D | compat_signal.c | 165 sys32_sigaction(int sig, const struct old_sigaction32 __user *act, in sys32_sigaction() argument 185 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_sigaction() 194 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask)) in sys32_sigaction() 202 sys32_rt_sigaction(int sig, const struct sigaction32 __user *act, in sys32_rt_sigaction() argument 218 new_ka.sa.sa_mask.sig[0] = in sys32_rt_sigaction() 219 set32.sig[0] | (((long)set32.sig[1]) << 32); in sys32_rt_sigaction() 227 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys32_rt_sigaction() 230 set32.sig[1] = (old_ka.sa.sa_mask.sig[0] >> 32); in sys32_rt_sigaction() 231 set32.sig[0] = old_ka.sa.sa_mask.sig[0]; in sys32_rt_sigaction() 369 if (__copy_from_user(&set.sig, &frame->sc.oldmask, _SIGMASK_COPY_SIZE32)) in sys32_sigreturn() [all …]
|
/arch/tile/kernel/ |
D | signal.c | 81 void __user *frame, int sig) in signal_fault() argument 84 force_sigsegv(sig, current); in signal_fault() 164 static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, in setup_rt_frame() argument 179 && sig < 32 in setup_rt_frame() 180 ? current_thread_info()->exec_domain->signal_invmap[sig] in setup_rt_frame() 181 : sig; in setup_rt_frame() 237 signal_fault("bad setup frame", regs, frame, sig); in setup_rt_frame() 245 static int handle_signal(unsigned long sig, siginfo_t *info, in handle_signal() argument 277 ret = compat_setup_rt_frame(sig, ka, info, oldset, regs); in handle_signal() 280 ret = setup_rt_frame(sig, ka, info, oldset, regs); in handle_signal() [all …]
|
/arch/ia64/kernel/ |
D | traps.c | 100 int sig, code; in ia64_bad_break() local 115 sig = SIGILL; code = ILL_ILLOPC; in ia64_bad_break() 119 sig = SIGFPE; code = FPE_INTDIV; in ia64_bad_break() 123 sig = SIGFPE; code = FPE_INTOVF; in ia64_bad_break() 127 sig = SIGFPE; code = FPE_FLTSUB; in ia64_bad_break() 131 sig = SIGSEGV; code = SEGV_MAPERR; in ia64_bad_break() 135 sig = SIGSEGV; code = BUS_ADRALN; in ia64_bad_break() 139 sig = SIGFPE; code = __FPE_DECOVF; in ia64_bad_break() 143 sig = SIGFPE; code = __FPE_DECDIV; in ia64_bad_break() 147 sig = SIGFPE; code = __FPE_DECERR; in ia64_bad_break() [all …]
|
/arch/x86/kernel/ |
D | signal.c | 277 __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set, in __setup_frame() argument 290 if (__put_user(sig, &frame->sig)) in __setup_frame() 293 if (setup_sigcontext(&frame->sc, fpstate, regs, set->sig[0])) in __setup_frame() 297 if (__copy_to_user(&frame->extramask, &set->sig[1], in __setup_frame() 327 regs->ax = (unsigned long)sig; in __setup_frame() 339 static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, in __setup_rt_frame() argument 353 put_user_ex(sig, &frame->sig); in __setup_rt_frame() 369 regs, set->sig[0]); in __setup_rt_frame() 394 regs->ax = (unsigned long)sig; in __setup_rt_frame() 406 static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info, in __setup_rt_frame() argument [all …]
|
/arch/x86/um/ |
D | signal.c | 353 int sig; member 363 int sig; member 372 int setup_signal_stack_sc(unsigned long stack_top, int sig, in setup_signal_stack_sc() argument 391 err |= __put_user(sig, &frame->sig); in setup_signal_stack_sc() 392 err |= copy_sc_to_user(&frame->sc, &frame->fpstate, regs, mask->sig[0]); in setup_signal_stack_sc() 394 err |= __copy_to_user(&frame->extramask, &mask->sig[1], in setup_signal_stack_sc() 413 PT_REGS_EAX(regs) = (unsigned long) sig; in setup_signal_stack_sc() 422 int setup_signal_stack_si(unsigned long stack_top, int sig, in setup_signal_stack_si() argument 440 err |= __put_user(sig, &frame->sig); in setup_signal_stack_si() 463 PT_REGS_EAX(regs) = (unsigned long) sig; in setup_signal_stack_si() [all …]
|
/arch/cris/arch-v10/kernel/ |
D | signal.c | 66 int sys_sigaction(int sig, const struct old_sigaction __user *act, in sys_sigaction() argument 83 ret = do_sigaction(sig, act ? &new_ka : NULL, oact ? &old_ka : NULL); in sys_sigaction() 91 __put_user(old_ka.sa.sa_mask.sig[0], &oact->sa_mask); in sys_sigaction() 181 if (__get_user(set.sig[0], &frame->sc.oldmask) in sys_sigreturn() 183 && __copy_from_user(&set.sig[1], frame->extramask, in sys_sigreturn() 302 static int setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument 314 err |= setup_sigcontext(&frame->sc, regs, set->sig[0]); in setup_frame() 319 err |= __copy_to_user(frame->extramask, &set->sig[1], in setup_frame() 345 regs->r10 = sig; /* first argument is signo */ in setup_frame() 354 force_sigsegv(sig, current); in setup_frame() [all …]
|
/arch/unicore32/mm/ |
D | fault.c | 120 unsigned int fsr, unsigned int sig, int code, in __do_user_fault() argument 128 si.si_signo = sig; in __do_user_fault() 132 force_sig_info(sig, &si, tsk); in __do_user_fault() 218 int fault, sig, code; in do_pf() local 286 sig = SIGBUS; in do_pf() 293 sig = SIGSEGV; in do_pf() 297 __do_user_fault(tsk, addr, fsr, sig, code, regs); in do_pf() 385 int sig; member 428 int sig, int code, const char *name) in hook_fault_code() argument 434 fsr_info[nr].sig = sig; in hook_fault_code() [all …]
|