Skip to content

sched/psi: Fix trigger time arithmetic

Guopeng Zhang lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sched/psi: Fix long-window growth interpolationkernel/sched/psi.c+4 -22 replies
2/2sched/psi: Fix overflow in trigger time conversion on 32-bitkernel/sched/psi.c+2 -22 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchSuren BaghdasaryanTao Cui
1/2A-b A-b
2/2A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

From: Guopeng Zhang <[email protected]>

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

Signature · 1 line
2.43.0