Re: AVX register corruption from signal delivery

From: Andy Lutomirski
Date: Tue Nov 26 2019 - 17:30:17 EST




> On Nov 26, 2019, at 2:14 PM, Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> ïOn Tue, Nov 26, 2019 at 04:23:40PM -0500, Barret Rhoden wrote:
>> Thanks; config attached. I've been able to recreate it in QEMU with at
>> least 2 cores.
>
> Yap, I can too, in my VM.
>
> Btw, would you guys like to submit that reproducer test program
>
> https://bugzilla.kernel.org/attachment.cgi?id=286073
>
> into the kernel selftests pile here:
>
> tools/testing/selftests/x86/
>
> ?
>
> It needs proper cleanup to fit kernel coding style but it could be a
> good start for collecting interesting FPU test cases.

If we do this, we should have selftests/x86/slow or otherwise have a fast vs slow mode. I really like that the entire suite takes under 2s.