Files
linux/drivers
Guenter Roeck f006c45a3e hwmon: (nct6775) Fix access to temperature configuration registers
[ Upstream commit d56e460e19ea8382f813eb489730248ec8d7eb73 ]

The number of temperature configuration registers does
not always match the total number of temperature registers.
This can result in access errors reported if KASAN is enabled.

BUG: KASAN: global-out-of-bounds in nct6775_probe+0x5654/0x6fe9 nct6775_core

Reported-by: Erhard Furtner <erhard_f@mailbox.org>
Closes: https://lore.kernel.org/linux-hwmon/d51181d1-d26b-42b2-b002-3f5a4037721f@roeck-us.net/
Fixes: b7f1f7b252 ("hwmon: (nct6775) Additional TEMP registers for nct6799")
Cc: Ahmad Khalifa <ahmad@khalifa.ws>
Tested-by: Ahmad Khalifa <ahmad@khalifa.ws>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-01 13:35:08 +01:00
..
2023-08-22 15:50:57 +02:00
2024-03-01 13:35:05 +01:00
2023-08-24 16:20:30 -07:00
2024-03-01 13:35:08 +01:00
2023-11-20 11:59:19 +01:00
2024-01-31 16:18:49 -08:00
2024-02-05 20:14:15 +00:00
2024-01-20 11:51:48 +01:00
2023-08-21 13:27:44 +02:00