Re: [PATCH 2/2] selftests/x86: Check restoring FPU state with larger xstate_size

From: Chang S. Bae

Date: Wed Dec 02 2026 - 13:13:22 EST


On 9/29/2026 4:26 PM, Andrei Vagin wrote:
Extend sigframe_fpu_portability.c with two test cases for signal frames
whose xstate_size exceeds the current task's fpstate->user_size:

The invalid case appears to result in a #GP. Overall, the change looks
good to me.

I'm curious, though, how complicated it would be to test the other
failure path involving dynamic states, where silent resetting instead.

But I think this case will eventually matter since userspace needs to detect this type of migration failure.

Thanks,
Chang