kernel_samsung_a53x/drivers/thermal
Dan Carpenter 3a992558c5 thermal: core: prevent potential string overflow
[ Upstream commit c99626092efca3061b387043d4a7399bf75fbdd5 ]

The dev->id value comes from ida_alloc() so it's a number between zero
and INT_MAX.  If it's too high then these sprintf()s will overflow.

Fixes: 203d3d4aa482 ("the generic thermal sysfs driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:42:50 +01:00
..
broadcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
intel Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung s5e8825: Tuning 2024-10-17 12:50:20 -03:00
st Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tegra Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-soc-thermal Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
amlogic_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
armada_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpufreq_cooling.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cpuidle_cooling.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
da9062-thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
db8500_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
devfreq_cooling.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dove_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gov_bang_bang.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gov_fair_share.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gov_power_allocator.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gov_step_wise.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gov_user_space.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hisi_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx8mm_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx_sc_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
imx_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
k3_bandgap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
khadas_mcu_fan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kirkwood_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
max77620_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mtk_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qoriq_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_gen3_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rcar_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rockchip_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spear_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sprd_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sun8i_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tango_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal-generic-adc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_core.c thermal: core: prevent potential string overflow 2024-11-18 11:42:50 +01:00
thermal_core.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_helpers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_hwmon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_hwmon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_mmio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_netlink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_netlink.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_of.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
thermal_sysfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uniphier_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zx2967_thermal.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00