[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8d2e047d-4336-4b6c-b349-a62c78324475@roeck-us.net>
Date: Sun, 14 Dec 2025 09:33:31 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Denis Sergeev <denserg.edu@...il.com>
Cc: pali@...nel.org, linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] hwmon: (dell-smm) Limit fan multiplier to avoid overflow
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@...il.com>
Applied.
Thanks,
Guenter
Powered by blists - more mailing lists