linux/drivers/platform
Pengpeng Hou 7b3dc1f764 platform/x86: dell-wmi-sysman: bound enumeration string aggregation
[ Upstream commit 3c34471c26 ]

populate_enum_data() aggregates firmware-provided value-modifier
and possible-value strings into fixed 512-byte struct members.
The current code bounds each individual source string but then
appends every string and separator with raw strcat() and no
remaining-space check.

Switch the aggregation loops to a bounded append helper and
reject enumeration packages whose combined strings do not fit
in the destination buffers.

Fixes: e8a60aa740 ("platform/x86: Introduce support for Systems Management Driver over WMI for Dell Systems")
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Link: https://patch.msgid.link/20260408084501.1-dell-wmi-sysman-v2-pengpeng@iscas.ac.cn
[ij: add include]
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-06-01 17:35:36 +02:00
..
chrome platform/chrome: cros_ec_lightbar: Fix response size initialization 2026-03-04 07:19:32 -05:00
goldfish platform/goldfish: Convert pipe tasklet to threaded irq 2021-01-27 14:57:06 +01:00
mellanox platform/mellanox: mlxbf-tmfifo: fix vring_desc.len assignment 2025-07-10 15:57:43 +02:00
mips platform: mips: cpu_hwmon: Disable driver on unsupported hardware 2024-08-19 05:45:20 +02:00
olpc platform/olpc: olpc-xo175-ec: Fix overflow error message to print inlen 2026-04-18 10:33:24 +02:00
surface platform/surface: surfacepro3_button: Drop wakeup source on remove 2026-06-01 17:35:35 +02:00
x86 platform/x86: dell-wmi-sysman: bound enumeration string aggregation 2026-06-01 17:35:36 +02:00
Kconfig platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00
Makefile platform: Add Surface platform directory 2020-10-27 12:51:03 +01:00