Files
linux/drivers/hwmon
Guenter Roeck 873e919e31 hwmon: (lm90) Add lock protection to lm90_alert
Sashiko reports:

lm90_alert() executes in the smbus alert context and calls
lm90_update_confreg() to disable the hardware alert line, without
acquiring hwmon_lock.

Concurrently, sysfs write operations (such as lm90_write_convrate) hold
the hwmon_lock, temporarily modify data->config, and then restore it.

If an alert interrupt occurs concurrently with a sysfs write, the sysfs
path will overwrite the alert handler's modifications to data->config
and the hardware register.

This unintentionally re-enables the hardware alert line while the alarm is
still active, causing an interrupt storm.

Add the missing lock to lm90_alert() to solve the problem.

Fixes: 7a1d220ccb ("hwmon: (lm90) Introduce function to update configuration register")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2026-05-16 08:10:33 -07:00
..
2026-03-30 19:45:04 -07:00
2025-03-18 08:03:40 -07:00
2026-03-30 19:45:06 -07:00
2025-10-15 11:02:43 -07:00
2026-04-11 00:02:13 -07:00
2025-05-12 18:05:54 -07:00
2025-11-26 09:03:56 -08:00
2025-10-17 05:59:12 -07:00
2019-11-06 14:37:19 -08:00
2026-04-11 00:02:13 -07:00
2026-01-31 07:38:31 -08:00
2025-09-09 05:26:11 -07:00