Re: x86, possible bug in __memmove() alternatives patching

From: Dave Hansen
Date: Sat Mar 26 2022 - 00:49:22 EST


On 3/25/22 15:07, Borislav Petkov wrote:
> I know it's is probably a very rare case and Intel recommends having fast
> string ops enabled, hence the question: would this be considered a bug in the
> kernel that should be fixed? A potential fix could be to clear FSRM together
> with ERMS depending on IA32_MISC_ENABLE.

I'd consider it a bug in the hypervisor, personally. ;)

But, we do try to make the kernel work even the face of funky
hypervisors that do things that never occur on real hardware. If a nice
patch to fix this up showed up, I'd definitely take a look.