[PATCH 0/2] sched/psi: Fix trigger time arithmetic

Guopeng Zhang posted 2 patches 1 week ago
kernel/sched/psi.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
[PATCH 0/2] sched/psi: Fix trigger time arithmetic
Posted by Guopeng Zhang 1 week ago
From: Guopeng Zhang <zhangguopeng@kylinos.cn>

PSI trigger time handling has two integer-width bugs. Long windows can
be truncated during growth interpolation, and the multiplication used
for the interpolation can overflow before the division. Separately,
the microsecond-to-nanosecond conversion can wrap on 32-bit systems
before the result is stored in a u64.

Fix the two issues independently.

Guopeng Zhang (2):
  sched/psi: Fix long-window growth interpolation
  sched/psi: Fix overflow in trigger time conversion on 32-bit

 kernel/sched/psi.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)


base-commit: 1a1757b76427f6201bfe0bf1bea9f7574f332a93
-- 
2.43.0