diff options
author | 2025-01-24 01:07:39 +0300 | |
---|---|---|
committer | 2025-02-03 10:13:00 +0200 | |
commit | 583ef25bb2a094813351a727ddec38b35a15b9f8 (patch) | |
tree | 93af15110c8f7573050f02e71a0463687fd3c679 /net/lapb/lapb_timer.c | |
parent | platform/x86: ideapad-laptop: pass a correct pointer to the driver data (diff) | |
download | wireguard-linux-583ef25bb2a094813351a727ddec38b35a15b9f8.tar.xz wireguard-linux-583ef25bb2a094813351a727ddec38b35a15b9f8.zip |
platform/x86/intel: pmc: fix ltr decode in pmc_core_ltr_show()
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.
Signed-off-by: Dmitry Kandybka <d.kandybka@gmail.com>
Reviewed-by: Rajneesh Bhardwaj <irenic.rajneesh@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250123220739.68087-1-d.kandybka@gmail.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions