Re: [PATCH AUTOSEL for 4.9 078/293] firmware: dmi_scan: Check DMI structure length

2018-04-09 Thread Jean Delvare
On Mon, 9 Apr 2018 00:23:55 +, Sasha Levin wrote: > From: Jean Delvare > > [ Upstream commit a814c3597a6b6040e2ef9459748081a6d5b7312d ] > > Before accessing DMI data to record it for later, we should ensure > that the DMI structures are large enough to contain the data in > question. > > Si

[PATCH AUTOSEL for 4.9 078/293] firmware: dmi_scan: Check DMI structure length

2018-04-08 Thread Sasha Levin
From: Jean Delvare [ Upstream commit a814c3597a6b6040e2ef9459748081a6d5b7312d ] Before accessing DMI data to record it for later, we should ensure that the DMI structures are large enough to contain the data in question. Signed-off-by: Jean Delvare Reviewed-by: Mika Westerberg Cc: Dmitry Toro