Re: [PATCH] riscv: Remove unnecessary path for syscall_trace

From: Tycho Andersen
Date: Mon May 25 2020 - 10:36:49 EST


On Mon, May 25, 2020 at 02:18:26PM +0000, guoren@xxxxxxxxxx wrote:
> From: Guo Ren <guoren@xxxxxxxxxxxxxxxxx>
>
> Obviously, there is no need to recover a0-a7 in reject path.
>
> Previous modification is from commit af33d243 by Tycho, to
> fixup seccomp reject syscall code path.

Doesn't this suffer from the same problem, though? a7 is clobbered, so
the -ERESTARTSYS behavior won't work?

I haven't run the test case that was failing before.

Tycho