Re: [patch V4 part 3 01/29] x86/traps: Mark fixup_bad_iret() noinstr

From: Steven Rostedt
Date: Tue May 12 2020 - 21:51:14 EST


On Fri, 8 May 2020 17:39:00 -0700
Andy Lutomirski <luto@xxxxxxxxxx> wrote:

> On Tue, May 5, 2020 at 7:15 AM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
> >
> > This is called from deep entry ASM in a situation where instrumentation
> > will cause more harm than providing useful information.
> >
>
> Acked-by: Andy Lutomirski <luto@xxxxxxxxxx>
>
> Maybe add to changelog:
>
> Switch from memmove() to memcpy() because memmove() can't be called
> from noinstr code.

Yes please, because I was about to say that there was changes that
didn't seem to fit the change log.

I would also add a comment in the code saying that we need the temp
variable to use memcpy as memmove can't be used in noinstr code.

-- Steve