Commit d792fc8f authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman
Browse files

firmware: dmi: Stop decoding on broken entry



[ Upstream commit 0ef11f60 ]

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: default avatarJean Delvare <jdelvare@suse.de>
Link: https://lore.kernel.org/linux-kernel/Zh2K3-HLXOesT_vZ@liuwe-devbox-debian-v2/T/


Reviewed-by: default avatarMichael Kelley <mhklinux@outlook.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent f2c9c42f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment