[lvc-project] [PATCH v2] platform/x86/intel: pmc: fix ltr decode in pmc_core_ltr_show()

Ilpo Järvinen ilpo.jarvinen at linux.intel.com
Tue Jan 28 15:20:53 MSK 2025


On Fri, 24 Jan 2025 01:07:39 +0300, Dmitry Kandybka wrote:

> In pmc_core_ltr_show(), promote 'val' to 'u64' to avoid possible integer
> overflow. Values (10 bit) are multiplied by the scale, the result of
> expression is in a range from 1 to 34,326,183,936 which is bigger then
> UINT32_MAX. Compile tested only.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/1] platform/x86/intel: pmc: fix ltr decode in pmc_core_ltr_show()
      commit: 4afd0e58a6793b8e4d78cb55dbcf6279936730e5

--
 i.




More information about the lvc-project mailing list