diff options
author | Nikita Kiryushin <kiryushin@ancud.ru> | 2023-11-09 19:08:59 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-11-22 20:55:20 +0100 |
commit | 56d2eeda87995245300836ee4dbd13b002311782 (patch) | |
tree | 835cf2853d40f902c84ec1aec752174ed3221564 /fs/debugfs | |
parent | Linux 6.7-rc2 (diff) | |
download | linux-56d2eeda87995245300836ee4dbd13b002311782.tar.xz linux-56d2eeda87995245300836ee4dbd13b002311782.zip |
ACPI: LPIT: Avoid u32 multiplication overflow
In lpit_update_residency() there is a possibility of overflow
in multiplication, if tsc_khz is large enough (> UINT_MAX/1000).
Change multiplication to mul_u32_u32().
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: eeb2d80d502a ("ACPI / LPIT: Add Low Power Idle Table (LPIT) support")
Signed-off-by: Nikita Kiryushin <kiryushin@ancud.ru>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'fs/debugfs')
0 files changed, 0 insertions, 0 deletions