Re: [PATCH] firmware: dmi: Stop decoding on broken entry

From: Michael Schierl
Date: Wed Apr 17 2024 - 18:08:31 EST


Hello,


Am 17.04.2024 um 17:33 schrieb Jean Delvare:
If a DMI table entry is shorter than 4 bytes, it is invalid. Due to
how DMI table parsing works, it is impossible to safely recover from
such an error, so we have to stop decoding the table.

Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
Link: https://lore.kernel.org/linux-kernel/Zh2K3-HLXOesT_vZ@liuwe-devbox-debian-v2/T/
---
Michael, can you please test this patch and confirm that it prevents
the early oops?


Tested-By: Michael Schierl <schierlm@xxxxxx>


Applied on top of 6.8.4, it prevents the early oops I previously
observed when booting with 2 vCPUs.


Regards,


Michael