Re: [PATCH v6 3/6] syscall.h: introduce syscall_set_nr()
From: Maciej W. Rozycki
Date: Thu Feb 20 2025 - 18:19:54 EST
On Wed, 19 Feb 2025, Dmitry V. Levin wrote:
> > May I suggest "[...] after return from syscall_trace_enter() invocation."
> > instead? Minor reformatting might be required for better visual alignment
> > though.
>
> Like this:
> /*
> * New syscall number has to be assigned to regs[2] because
> * it is loaded from there unconditionally after return from
> * syscall_trace_enter() invocation.
> *
> * Consequently, if the syscall was indirect and nr != __NR_syscall,
> * then after this assignment the syscall will cease to be indirect.
> */
Perfect, thank you!
Maciej