Re: [PATCH] x86/bhi: BHI mitigation can trigger warning in #DB handler
From: Dave Hansen
Date: Thu May 23 2024 - 10:29:39 EST
On 5/23/24 05:33, Alexandre Chartre wrote:
> The problem can be reproduced with the following sequence:
>
> $ cat sysenter_step.c
> int main()
> { asm("pushf; pop %ax; bts $8,%ax; push %ax; popf; sysenter"); }
>
> $ gcc -o sysenter_step sysenter_step.c
>
> $ ./sysenter_step
> Segmentation fault (core dumped)
>
> The program is expected to crash, and the #DB handler will issue a warning.
Should we wrap up this gem and put it with the other entry selftests?