Ubuntu-focal-kernel/drivers/iio/common
Yiyuan Guo 8812c3056c iio: cros_ec: Fix the allocation size for cros_ec_command
BugLink: https://bugs.launchpad.net/bugs/2039291

commit 8a4629055ef55177b5b63dab1ecce676bd8cccdd upstream.

The struct cros_ec_command contains several integer fields and a
trailing array. An allocation size neglecting the integer fields can
lead to buffer overrun.

Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Yiyuan Guo <yguoaz@gmail.com>
Fixes: 974e6f02e2 ("iio: cros_ec_sensors_core: Add common functions for the ChromeOS EC Sensor Hub.")
Link: https://lore.kernel.org/r/20230630143719.1513906-1-yguoaz@gmail.com
Cc: <Stable@vger.kerenl.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-10-30 11:41:52 +01:00
..
cros_ec_sensors iio: cros_ec: Fix the allocation size for cros_ec_command 2023-10-30 11:41:52 +01:00
hid-sensors
ms_sensors
ssp_sensors
st_sensors
Kconfig
Makefile