Re: [PATCH] hwmon: (dell-smm) Limit fan multiplier to avoid overflow
From: Guenter Roeck
Date: Sun Dec 14 2025 - 12:33:33 EST
On Tue, Dec 09, 2025 at 09:37:06AM +0300, Denis Sergeev wrote:
> The fan nominal speed returned by SMM is limited to 16 bits, but the
> driver allows the fan multiplier to be set via a module parameter.
>
> Clamp the computed fan multiplier so that fan_nominal_speed *
> i8k_fan_mult always fits into a signed 32-bit integer and refuse to
> initialize the driver if the value is too large.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Denis Sergeev <denserg.edu@xxxxxxxxx>
Applied.
Thanks,
Guenter