Re: kernel NULL pointer dereference in quirk_clear_strap_no_soft_reset_dev2_f0 -> amd_smn_read

From: Borislav Petkov

Date: Fri Jun 05 2026 - 18:30:37 EST


On Fri, Jun 05, 2026 at 11:55:47PM +0200, Marek Marczykowski-Górecki wrote:
> Well, it clearly happens, see the call trace in the first message of the
> thread...
> Do you suggest the fix should change
> quirk_clear_strap_no_soft_reset_dev2_f0()?

https://lore.kernel.org/all/20260602184823.GKah8ld2QJLm28xoa9@fat_crate.local/

That thing should return an error so that amd_smn_read() is not even available
on guests.

--
Regards/Gruss,
Boris.

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