Martin Schwidefsky
70f5dc514c
[S390] cputime: fix overflow on 31 bit systems
...
The cputime_to_msecs / cputime_to_clock_t and cputime64_to_clock_t
cause fixpoint divide exceptions if the cputime is too large.
On a machine that collected 49.7 days worth of idle time reading
from /proc/stat will generate oopses like this:
Kernel BUG at 001b0c92 [verbose debug info unavailable]
fixpoint divide exception: 0009 [#13 ] SMP
Modules linked in: ipv6
CPU: 1 Tainted: G D 2.6.27.10 #5
Process cat (pid: 21352, task: 1fb34138, ksp: 1d2a3d98)
Krnl PSW : 070c2000 801b0c92 (show_stat+0x2ca/0x68c)
R:0 T:1 IO:1 EX:1 Key:0 M:1 W:0 P:0 AS:0 CC:2 PM:0
Krnl GPRS: 00000001 00001388 00000bb8 0015d2a1
00000000 00000000 000003e8 0001fd91
00000000 00000000 0000129d eecd2ff0
1cc533b9 0036f780 801b0bce 1d2a3cc0
Krnl Code: 801b0c86: f18890abf198 mvo 171(9,%r9),408(9,%r15)
801b0c8c: 98abf170 lm %r10,%r11,368(%r15)
801b0c90: 1da1 dr %r10,%r1
>801b0c92: 90abf170 stm %r10,%r11,368(%r15)
801b0c96: 98abf190 lm %r10,%r11,400(%r15)
801b0c9a: 1da1 dr %r10,%r1
801b0c9c: 90abf190 stm %r10,%r11,400(%r15)
801b0ca0: 18a3 lr %r10,%r3
Call Trace:
([<00000000001b09f4>] show_stat+0x2c/0x68c)
[<000000000018dcee>] seq_read+0xb2/0x364
[<00000000001a9980>] proc_reg_read+0x68/0x98
[<00000000001705ee>] vfs_read+0x6e/0xe8
[<0000000000170732>] sys_read+0x36/0x78
[<000000000010f750>] sysc_do_restart+0x12/0x16
[<0000000077f3ad6a>] 0x77f3ad6a
<4>---[ end trace 1436ea9559d3de9e ]---
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-10-29 15:05:13 +01:00
..
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-09-11 10:29:44 +02:00
2008-12-25 13:38:55 +01:00
2009-03-26 15:24:23 +01:00
2009-06-11 21:02:14 +02:00
2008-12-25 13:39:12 +01:00
2008-08-01 20:42:05 +02:00
2009-01-14 19:56:50 -08:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-06-16 10:31:11 +02:00
2009-06-16 10:31:08 +02:00
2009-09-11 10:29:43 +02:00
2009-01-09 12:15:06 +01:00
2009-09-11 10:29:36 +02:00
2009-09-11 10:29:36 +02:00
2009-01-09 12:15:06 +01:00
2009-06-12 10:27:30 +02:00
2008-08-01 20:42:05 +02:00
2009-09-11 10:29:56 +02:00
2009-10-29 15:05:13 +01:00
2009-03-26 15:24:10 +01:00
2008-08-01 20:42:05 +02:00
2009-03-26 15:24:05 +01:00
2009-09-11 10:29:53 +02:00
2009-10-06 10:35:08 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-10-06 10:35:10 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-12-25 13:39:06 +01:00
2009-06-12 10:27:39 +02:00
2008-08-01 20:42:05 +02:00
2009-09-11 10:29:48 +02:00
2008-08-01 20:42:05 +02:00
2009-03-26 15:24:05 +01:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-09-11 10:29:46 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-12-25 13:38:57 +01:00
2008-08-01 20:42:05 +02:00
2009-01-14 19:56:50 -08:00
2008-08-01 20:42:05 +02:00
2008-08-15 08:35:42 -07:00
2009-06-16 19:47:51 -07:00
2008-08-01 20:42:05 +02:00
2009-09-14 17:43:43 -07:00
2009-09-10 10:46:48 +03:00
2009-09-11 10:29:52 +02:00
2009-09-10 08:33:15 +03:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-09-22 22:58:46 +02:00
2008-08-01 20:42:05 +02:00
2009-09-22 07:17:42 -07:00
2009-03-26 15:24:34 +01:00
2009-09-11 10:29:53 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-03-26 15:24:10 +01:00
2009-09-11 10:29:54 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-06-24 15:13:53 +09:00
2009-09-21 14:28:04 +02:00
2009-09-11 10:29:53 +02:00
2009-06-12 10:27:33 +02:00
2008-08-01 20:42:05 +02:00
2009-01-09 12:15:04 +01:00
2009-09-22 22:58:45 +02:00
2009-10-06 10:35:10 +02:00
2009-06-22 12:08:21 +02:00
2009-01-09 12:15:06 +01:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-09-11 10:29:54 +02:00
2009-01-09 12:15:06 +01:00
2008-08-01 20:42:05 +02:00
2009-09-11 10:29:36 +02:00
2009-06-12 10:27:31 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-09-11 10:29:46 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-06-11 21:01:52 +02:00
2008-12-25 13:38:56 +01:00
2009-09-24 09:34:47 +09:30
2009-08-05 13:02:57 -07:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-08-31 18:08:51 +02:00
2008-08-01 20:42:05 +02:00
2008-09-06 19:30:19 +01:00
2009-03-26 15:24:24 +01:00
2009-06-16 10:31:22 +02:00
2009-01-09 12:15:06 +01:00
2009-06-12 10:27:39 +02:00
2009-03-26 15:24:09 +01:00
2009-09-11 10:29:54 +02:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00
2009-06-11 21:01:52 +02:00
2009-08-26 00:17:35 +02:00
2009-04-14 15:37:23 +02:00
2009-09-14 17:53:36 -07:00
2009-07-27 12:10:38 -07:00
2009-03-26 15:24:34 +01:00
2008-08-01 20:42:05 +02:00
2009-09-24 09:34:42 +09:30
2009-06-11 21:02:14 +02:00
2009-06-12 10:27:33 +02:00
2009-10-06 10:35:10 +02:00
2008-08-01 20:42:05 +02:00
2009-09-21 14:28:04 +02:00
2008-08-01 20:42:05 +02:00
2008-12-31 15:11:49 +01:00
2009-03-26 15:24:05 +01:00
2008-08-01 20:42:05 +02:00
2008-08-01 20:42:05 +02:00