Home
last modified time | relevance | path

Searched refs:ka (Results 1 – 25 of 53) sorted by relevance

123

/linux-6.6.21/arch/x86/kernel/
Dsignal.c48 ksig->ka.sa.sa_flags & SA_IA32_ABI; in is_ia32_compat_frame()
59 ksig->ka.sa.sa_flags & SA_X32_ABI; in is_x32_frame()
78 struct k_sigaction *ka = &ksig->ka; in get_sigframe() local
92 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
105 !(ka->sa.sa_flags & SA_RESTORER) && in get_sigframe()
106 ka->sa.sa_restorer) { in get_sigframe()
108 sp = (unsigned long) ka->sa.sa_restorer; in get_sigframe()
215 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
245 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
Dsignal_64.c172 if (!(ksig->ka.sa.sa_flags & SA_RESTORER)) in x64_setup_rt_frame()
188 unsafe_put_user(ksig->ka.sa.sa_restorer, &frame->pretcode, Efault); in x64_setup_rt_frame()
193 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in x64_setup_rt_frame()
210 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in x64_setup_rt_frame()
311 if (!(ksig->ka.sa.sa_flags & SA_RESTORER)) in x32_setup_rt_frame()
326 restorer = ksig->ka.sa.sa_restorer; in x32_setup_rt_frame()
332 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in x32_setup_rt_frame()
339 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in x32_setup_rt_frame()
Dsignal_32.c251 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in ia32_setup_frame()
252 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_frame()
278 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_frame()
339 if (ksig->ka.sa.sa_flags & SA_RESTORER) in ia32_setup_rt_frame()
340 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_rt_frame()
360 regs->ip = (unsigned long) ksig->ka.sa.sa_handler; in ia32_setup_rt_frame()
/linux-6.6.21/arch/mips/include/asm/
Dsignal.h17 #define sig_uses_siginfo(ka, abi) \ argument
19 ((ka)->sa.sa_flags & SA_SIGINFO))
21 #define sig_uses_siginfo(ka, abi) \ argument
24 ((ka)->sa.sa_flags & SA_SIGINFO) : 1) )
/linux-6.6.21/arch/s390/kernel/
Dsignal.c268 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument
280 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
288 static int setup_frame(int sig, struct k_sigaction *ka, in setup_frame() argument
305 frame = get_sigframe(ka, regs, frame_size); in setup_frame()
336 if (ka->sa.sa_flags & SA_RESTORER) in setup_frame()
337 restorer = (unsigned long) ka->sa.sa_restorer; in setup_frame()
348 regs->psw.addr = (unsigned long) ka->sa.sa_handler; in setup_frame()
384 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame()
394 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_rt_frame()
395 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
[all …]
Dcompat_signal.c234 get_sigframe(struct k_sigaction *ka, struct pt_regs * regs, size_t frame_size) in get_sigframe() argument
246 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
271 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_frame32()
303 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame32()
305 ksig->ka.sa.sa_restorer | PSW32_ADDR_AMODE; in setup_frame32()
317 regs->psw.addr = (__force __u64) ksig->ka.sa.sa_handler; in setup_frame32()
356 frame = get_sigframe(&ksig->ka, regs, frame_size); in setup_rt_frame32()
366 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame32()
368 ksig->ka.sa.sa_restorer | PSW32_ADDR_AMODE; in setup_rt_frame32()
396 regs->psw.addr = (__u64 __force) ksig->ka.sa.sa_handler; in setup_rt_frame32()
[all …]
/linux-6.6.21/arch/sh/kernel/
Dsignal_32.c254 get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size) in get_sigframe() argument
256 if (ka->sa.sa_flags & SA_ONSTACK) { in get_sigframe()
275 frame = get_sigframe(&ksig->ka, regs->regs[15], sizeof(*frame)); in setup_frame()
288 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
289 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_frame()
319 (struct fdpic_func_descriptor __user *)ksig->ka.sa.sa_handler; in setup_frame()
324 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_frame()
341 frame = get_sigframe(&ksig->ka, regs->regs[15], sizeof(*frame)); in setup_rt_frame()
358 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_rt_frame()
359 regs->pr = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
[all …]
/linux-6.6.21/include/trace/events/
Dsignal.h98 TP_PROTO(int sig, struct kernel_siginfo *info, struct k_sigaction *ka),
100 TP_ARGS(sig, info, ka),
113 __entry->sa_handler = (unsigned long)ka->sa.sa_handler;
114 __entry->sa_flags = ka->sa.sa_flags;
/linux-6.6.21/arch/parisc/kernel/
Dsignal.c161 get_sigframe(struct k_sigaction *ka, unsigned long sp, size_t frame_size) in get_sigframe() argument
167 __func__, (unsigned long)ka, sp, frame_size); in get_sigframe()
171 if ((ka->sa.sa_flags & SA_ONSTACK) != 0 && ! sas_ss_flags(sp)) in get_sigframe()
234 frame = get_sigframe(&ksig->ka, usp, sigframe_size); in setup_rt_frame()
284 haddr = A(ksig->ka.sa.sa_handler); in setup_rt_frame()
389 __func__, ksig->sig, &ksig->ka, &ksig->info, oldset, regs); in handle_signal()
451 syscall_restart(struct pt_regs *regs, struct k_sigaction *ka) in syscall_restart() argument
468 if (!(ka->sa.sa_flags & SA_RESTART)) { in syscall_restart()
563 syscall_restart(regs, &ksig.ka); in do_signal()
/linux-6.6.21/arch/um/kernel/
Dsignal.c69 if (!(ksig->ka.sa.sa_flags & SA_RESTART)) { in handle_signal()
82 if ((ksig->ka.sa.sa_flags & SA_ONSTACK) && (sas_ss_flags(sp) == 0)) in handle_signal()
86 if (!(ksig->ka.sa.sa_flags & SA_SIGINFO)) in handle_signal()
/linux-6.6.21/arch/xtensa/kernel/
Dsignal.c348 unsigned long handler = (unsigned long)ksig->ka.sa.sa_handler; in setup_frame()
364 if ((ksig->ka.sa.sa_flags & SA_ONSTACK) != 0 && sas_ss_flags(sp) == 0) { in setup_frame()
377 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_frame()
389 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_frame()
392 (unsigned long __user *)ksig->ka.sa.sa_restorer; in setup_frame()
396 ra = (unsigned long)ksig->ka.sa.sa_restorer; in setup_frame()
475 if (!(ksig.ka.sa.sa_flags & SA_RESTART)) { in do_signal()
/linux-6.6.21/arch/arc/kernel/
Dsignal.c295 if (unlikely(ksig->ka.sa.sa_flags & SA_SIGINFO)) { in setup_rt_frame()
320 regs->ret = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
326 if(!(ksig->ka.sa.sa_flags & SA_RESTORER)) in setup_rt_frame()
329 regs->blink = (unsigned long)ksig->ka.sa.sa_restorer; in setup_rt_frame()
344 static void arc_restart_syscall(struct k_sigaction *ka, struct pt_regs *regs) in arc_restart_syscall() argument
364 if (!(ka->sa.sa_flags & SA_RESTART)) { in arc_restart_syscall()
411 arc_restart_syscall(&ksig.ka, regs); in do_signal()
/linux-6.6.21/arch/x86/um/
Dsignal.c375 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_sc()
376 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_sc()
400 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_sc()
420 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_si()
421 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_si()
446 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_si()
504 if (ksig->ka.sa.sa_flags & SA_SIGINFO) { in setup_signal_stack_si()
533 if (ksig->ka.sa.sa_flags & SA_RESTORER) in setup_signal_stack_si()
534 err |= __put_user((void *)ksig->ka.sa.sa_restorer, in setup_signal_stack_si()
554 PT_REGS_IP(regs) = (unsigned long) ksig->ka.sa.sa_handler; in setup_signal_stack_si()
/linux-6.6.21/arch/sparc/kernel/
Dsignal_32.c297 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
301 if (ksig->ka.ka_restorer) in setup_frame()
302 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_frame()
395 regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
398 if (ksig->ka.ka_restorer) in setup_rt_frame()
399 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_rt_frame()
423 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
496 syscall_restart(orig_i0, regs, &ksig.ka.sa); in do_signal()
Dsignal32.c463 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame32()
471 if (ksig->ka.ka_restorer) { in setup_frame32()
472 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_frame32()
595 regs->tpc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame32()
603 if (ksig->ka.ka_restorer) in setup_rt_frame32()
604 regs->u_regs[UREG_I7] = (unsigned long)ksig->ka.ka_restorer; in setup_rt_frame32()
629 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal32()
677 syscall_restart32(orig_i0, regs, &ksig.ka.sa); in do_signal32()
/linux-6.6.21/arch/microblaze/kernel/
Dsignal.c168 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
220 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; in setup_rt_frame()
232 handle_restart(struct pt_regs *regs, struct k_sigaction *ka, int has_handler) in handle_restart() argument
242 if (has_handler && !(ka->sa.sa_flags & SA_RESTART)) { in handle_restart()
293 handle_restart(regs, &ksig.ka, 1); in do_signal()
/linux-6.6.21/arch/arm/kernel/
Dsignal.c324 unsigned long handler = (unsigned long)ksig->ka.sa.sa_handler; in setup_return()
345 if (ksig->ka.sa.sa_flags & SA_THIRTYTWO) in setup_return()
376 if (ksig->ka.sa.sa_flags & SA_RESTORER) { in setup_return()
377 retcode = (unsigned long)ksig->ka.sa.sa_restorer; in setup_return()
387 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
398 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_return()
515 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
584 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
/linux-6.6.21/arch/alpha/kernel/
Dsignal.c345 r26 = (unsigned long) ksig->ka.ka_restorer; in setup_frame()
360 regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_frame()
399 r26 = (unsigned long) ksig->ka.ka_restorer; in setup_rt_frame()
414 regs->r27 = regs->pc = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
438 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in handle_signal()
448 struct pt_regs *regs, struct k_sigaction *ka) in syscall_restart() argument
452 if (!(ka->sa.sa_flags & SA_RESTART)) { in syscall_restart()
495 syscall_restart(r0, r19, regs, &ksig.ka); in do_signal()
/linux-6.6.21/arch/arm64/kernel/
Dsignal32.c314 static void compat_setup_return(struct pt_regs *regs, struct k_sigaction *ka, in compat_setup_return() argument
318 compat_ulong_t handler = ptr_to_compat(ka->sa.sa_handler); in compat_setup_return()
337 if (ka->sa.sa_flags & SA_RESTORER) { in compat_setup_return()
338 retcode = ptr_to_compat(ka->sa.sa_restorer); in compat_setup_return()
343 if (ka->sa.sa_flags & SA_SIGINFO) in compat_setup_return()
424 compat_setup_return(regs, &ksig->ka, frame->sig.retcode, frame, usig); in compat_setup_rt_frame()
447 compat_setup_return(regs, &ksig->ka, frame->retcode, frame, usig); in compat_setup_frame()
/linux-6.6.21/arch/powerpc/kernel/
Dsignal.c181 static void check_syscall_restart(struct pt_regs *regs, struct k_sigaction *ka, in check_syscall_restart() argument
217 restart = !has_handler || (ka->sa.sa_flags & SA_RESTART) != 0; in check_syscall_restart()
257 check_syscall_restart(tsk->thread.regs, &ksig.ka, ksig.sig > 0); in do_signal()
286 if (ksig.ka.sa.sa_flags & SA_SIGINFO) in do_signal()
/linux-6.6.21/arch/openrisc/kernel/
Dsignal.c169 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
198 regs->pc = (unsigned long)ksig->ka.sa.sa_handler; /* what we enter NOW */ in setup_rt_frame()
274 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()
/linux-6.6.21/scripts/coccinelle/api/
Dkfree_mismatch.cocci213 ka << alloc.kok;
218 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li…
222 ka << alloc.kok;
227 msg = "WARNING kmalloc (line %s) && vmalloc (line %s) are used to allocate this memory" % (ka[0].li…
/linux-6.6.21/drivers/rtc/
Drtc-mpc5121.c342 u32 ka; in mpc5121_rtc_probe() local
343 ka = in_be32(&rtc->regs->keep_alive); in mpc5121_rtc_probe()
344 if (ka & 0x02) { in mpc5121_rtc_probe()
347 out_be32(&rtc->regs->keep_alive, ka); in mpc5121_rtc_probe()
/linux-6.6.21/net/sched/
Dact_pedit.c47 const struct nlattr *ka; in tcf_pedit_keys_ex_parse() local
60 nla_for_each_nested(ka, nla, rem) { in tcf_pedit_keys_ex_parse()
70 if (nla_type(ka) != TCA_PEDIT_KEY_EX) { in tcf_pedit_keys_ex_parse()
71 NL_SET_ERR_MSG_ATTR(extack, ka, "Unknown attribute, expected extended key"); in tcf_pedit_keys_ex_parse()
77 ka, pedit_key_ex_policy, in tcf_pedit_keys_ex_parse()
/linux-6.6.21/arch/nios2/kernel/
Dsignal.c190 if (ksig->ka.sa.sa_flags & SA_SIGINFO) in setup_rt_frame()
212 regs->ea = (unsigned long) ksig->ka.sa.sa_handler; in setup_rt_frame()
276 && !(ksig.ka.sa.sa_flags & SA_RESTART))) { in do_signal()

123