Re: [patch 01/10] x86/fpu/signal: Clarify exception handling in restore_fpregs_from_user()

From: Linus Torvalds
Date: Mon Aug 30 2021 - 18:27:02 EST


On Mon, Aug 30, 2021 at 3:12 PM Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:
>
> It's not only about #MC. *RSTOR can also trigger #GP in case that the
> user buffer contains garbage and we clearly don't want to loop forever
> on that either.

Ok, that does seem to merit a the error code check.

Ugh. It leaves that #MC case for other random accesses, though.

Linus