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

From: Guopeng Zhang

Date: Fri Jul 17 2026 - 06:29:52 EST


From: Guopeng Zhang <zhangguopeng@xxxxxxxxxx>

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