Re: [PATCH 3/3] x86/sev: The code for returning to user space is also in syscall gap

Lai Jiangshan
2022-04-12T13:14:40Z

On Wed, Dec 15, 2021 at 5:51 AM Borislav Petkov <bp@alien8.de> wrote:
>
> + Tom and leaving the whole mail un-trimmed for him.
>
> On Mon, Dec 13, 2021 at 12:22:15PM +0800, Lai Jiangshan wrote:
> > From: Lai Jiangshan <laijs@linux.alibaba.com>
> >
> > When returning to user space, the %rsp is user controlled value.
>
> And?
>
> I'd expect to see here some text analyzing the couple of instructions
> between those new labels you've added and whether a #VC can happen
> there.

Hello, Borislav

I resent the patch with an updated changelog mainly copied from
Joerg's reply.

https://lore.kernel.org/lkml/20220412124909.10467-1-jiangshanlai@gmail.com/

The other two patches in this patchset are omitted since they
make less sense which only harms only when the system owner
is deliberately doing stupid things.

thanks
Lai