lkml.org 
[lkml]   [2018]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/14] arm: Add restartable sequences support
On Mon, Apr 30, 2018 at 06:44:22PM -0400, Mathieu Desnoyers wrote:
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index a7f8e7f4b88f..4f5c386631d4 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -91,6 +91,7 @@ config ARM
> select HAVE_PERF_USER_STACK_DUMP
> select HAVE_RCU_TABLE_FREE if (SMP && ARM_LPAE)
> select HAVE_REGS_AND_STACK_ACCESS_API
> + select HAVE_RSEQ
> select HAVE_SYSCALL_TRACEPOINTS
> select HAVE_UID16
> select HAVE_VIRT_CPU_ACCOUNTING_GEN
> diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
> index bd8810d4acb3..5879ab3f53c1 100644
> --- a/arch/arm/kernel/signal.c
> +++ b/arch/arm/kernel/signal.c
> @@ -541,6 +541,12 @@ static void handle_signal(struct ksignal *ksig, struct pt_regs *regs)
> int ret;
>
> /*
> + * Increment event counter and perform fixup for the pre-signal
> + * frame.
> + */
> + rseq_signal_deliver(regs);
> +
> + /*
> * Set up the stack frame
> */
> if (ksig->ka.sa.sa_flags & SA_SIGINFO)
> @@ -660,6 +666,7 @@ do_work_pending(struct pt_regs *regs, unsigned int thread_flags, int syscall)
> } else {
> clear_thread_flag(TIF_NOTIFY_RESUME);
> tracehook_notify_resume(regs);
> + rseq_handle_notify_resume(regs);
> }
> }
> local_irq_disable();

I think you forgot to hook up rseq_syscall() checking.

\
 
 \ /
  Last update: 2018-05-16 18:19    [W:0.252 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site