Home
last modified time | relevance | path

Searched refs:restorer (Results 1 – 13 of 13) sorted by relevance

/linux-6.6.21/arch/s390/kernel/
Dsignal.c293 unsigned long restorer; in setup_frame() local
337 restorer = (unsigned long) ka->sa.sa_restorer; in setup_frame()
339 restorer = VDSO64_SYMBOL(current, sigreturn); in setup_frame()
342 regs->gprs[14] = restorer; in setup_frame()
369 unsigned long uc_flags, restorer; in setup_rt_frame() local
395 restorer = (unsigned long) ksig->ka.sa.sa_restorer; in setup_rt_frame()
397 restorer = VDSO64_SYMBOL(current, rt_sigreturn); in setup_rt_frame()
416 regs->gprs[14] = restorer; in setup_rt_frame()
Dcompat_signal.c259 unsigned long restorer; in setup_frame32() local
304 restorer = (unsigned long __force) in setup_frame32()
307 restorer = VDSO32_SYMBOL(current, sigreturn); in setup_frame32()
311 regs->gprs[14] = restorer; in setup_frame32()
339 unsigned long restorer; in setup_rt_frame32() local
367 restorer = (unsigned long __force) in setup_rt_frame32()
370 restorer = VDSO32_SYMBOL(current, rt_sigreturn); in setup_rt_frame32()
390 regs->gprs[14] = restorer; in setup_rt_frame32()
/linux-6.6.21/arch/x86/kernel/
Dsignal_32.c235 void __user *restorer; in ia32_setup_frame() local
252 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_frame()
256 restorer = current->mm->context.vdso + in ia32_setup_frame()
259 restorer = &frame->retcode; in ia32_setup_frame()
268 unsafe_put_user(ptr_to_compat(restorer), &frame->pretcode, Efault); in ia32_setup_frame()
306 void __user *restorer; in ia32_setup_rt_frame() local
340 restorer = ksig->ka.sa.sa_restorer; in ia32_setup_rt_frame()
342 restorer = current->mm->context.vdso + in ia32_setup_rt_frame()
344 unsafe_put_user(ptr_to_compat(restorer), &frame->pretcode, Efault); in ia32_setup_rt_frame()
Dshstk.c349 void __user *restorer = ksig->ka.sa.sa_restorer; in setup_signal_shadow_stack() local
357 if (!restorer) in setup_signal_shadow_stack()
370 err = write_user_shstk_64((u64 __user *)ssp, (u64)restorer); in setup_signal_shadow_stack()
Dsignal_64.c308 void __user *restorer; in x32_setup_rt_frame() local
326 restorer = ksig->ka.sa.sa_restorer; in x32_setup_rt_frame()
327 unsafe_put_user(restorer, (unsigned long __user *)&frame->pretcode, Efault); in x32_setup_rt_frame()
/linux-6.6.21/tools/testing/selftests/x86/
Dvdso_restorer.c29 void *restorer; member
63 sa.restorer = NULL; /* request kernel-provided restorer */ in main()
/linux-6.6.21/arch/x86/um/
Dsignal.c365 void __user *restorer; in setup_signal_stack_sc() local
374 restorer = frame->retcode; in setup_signal_stack_sc()
376 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_sc()
378 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_sc()
411 void __user *restorer; in setup_signal_stack_si() local
419 restorer = frame->retcode; in setup_signal_stack_si()
421 restorer = ksig->ka.sa.sa_restorer; in setup_signal_stack_si()
423 err |= __put_user(restorer, &frame->pretcode); in setup_signal_stack_si()
/linux-6.6.21/arch/sparc/kernel/
Dsys_sparc_32.c172 void __user *, restorer, in SYSCALL_DEFINE5() argument
183 new_ka.ka_restorer = restorer; in SYSCALL_DEFINE5()
Dsys_sparc32.c151 void __user *,restorer, in COMPAT_SYSCALL_DEFINE5() argument
164 new_ka.ka_restorer = restorer; in COMPAT_SYSCALL_DEFINE5()
Dsys_sparc_64.c680 struct sigaction __user *, oact, void __user *, restorer, in SYSCALL_DEFINE5() argument
691 new_ka.ka_restorer = restorer; in SYSCALL_DEFINE5()
/linux-6.6.21/arch/alpha/kernel/
Dsignal.c92 size_t, sigsetsize, void __user *, restorer) in SYSCALL_DEFINE5() argument
102 new_ka.ka_restorer = restorer; in SYSCALL_DEFINE5()
/linux-6.6.21/Documentation/arch/x86/
Dshstk.rst139 restorer address to the shadow stack to help userspace avoid a shadow stack
140 violation on the sigreturn path that goes through the restorer.
/linux-6.6.21/kernel/
Dsignal.c4478 compat_uptr_t restorer; in COMPAT_SYSCALL_DEFINE4() local
4491 ret |= get_user(restorer, &act->sa_restorer); in COMPAT_SYSCALL_DEFINE4()
4492 new_ka.sa.sa_restorer = compat_ptr(restorer); in COMPAT_SYSCALL_DEFINE4()
4561 compat_uptr_t handler, restorer; in COMPAT_SYSCALL_DEFINE3() local
4566 __get_user(restorer, &act->sa_restorer) || in COMPAT_SYSCALL_DEFINE3()
4575 new_ka.sa.sa_restorer = compat_ptr(restorer); in COMPAT_SYSCALL_DEFINE3()