Re: Bug: wild-memory-access in get_cpu_cap

From: Borislav Petkov
Date: Tue Dec 24 2024 - 07:15:25 EST


On Tue, Dec 24, 2024 at 07:48:09PM +0800, Kun Hu wrote:
> 21: b8 06 00 00 00 mov $0x6,%eax
> 26: 31 c9 xor %ecx,%ecx
> 28: 0f a2 cpuid
> * 2a: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx <-- trapping instruction

A non-canonical memory access, most likely some gunk KASAN does.

It should go away when you disable KASAN. You could debug further to
figure out why KASAN is even doing this...

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette