Commit [e75e86]  Maximize  Restore  History

sched: Fix user time incorrectly accounted as system time on 32-bit

We have 32-bit variable overflow possibility when multiply in
task_times() and thread_group_times() functions. When the
overflow happens then the scaled utime value becomes erroneously
small and the scaled stime becomes i erroneously big.

Reported here:

Reported-by: Michael Chapman <>
Reported-by: Ciriaco Garcia de Celis <>
Signed-off-by: Stanislaw Gruszka <>
Signed-off-by: Peter Zijlstra <>
Cc: Hidetoshi Seto <>
Cc: <> # (partially) and 2.6.33+
LKML-Reference: <>
Signed-off-by: Ingo Molnar <>

Stanislaw Gruszka Stanislaw Gruszka 2010-09-14

Ingo Molnar Ingo Molnar 2010-09-15

changed kernel/sched.c
kernel/sched.c Diff Switch to side-by-side view

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks