Wu Fengguang
ff8b16d7e1
vmstat: fix offset calculation on void*
...
Fix regression introduced by commit 79da826aee6 ("writeback: report
dirty thresholds in /proc/vmstat").
The incorrect pointer arithmetic can result in problems like this:
BUG: unable to handle kernel paging request at 07c06d16
IP: [<c050c336>] strnlen+0x6/0x20
Call Trace:
[<c050a249>] ? string+0x39/0xe0
[<c042be6b>] ? __wake_up_common+0x4b/0x80
[<c050afcc>] ? vsnprintf+0x1ec/0x380
[<c04b380e>] ? seq_printf+0x2e/0x60
[<c04829a6>] ? vmstat_show+0x26/0x30
[<c04b3bb6>] ? seq_read+0xa6/0x380
[<c04b3b10>] ? seq_read+0x0/0x380
[<c04d5d2f>] ? proc_reg_read+0x5f/0x90
[<c049c4a1>] ? vfs_read+0xa1/0x140
[<c04d5cd0>] ? proc_reg_read+0x0/0x90
[<c049c981>] ? sys_read+0x41/0x70
[<c0402bd0>] ? sysenter_do_call+0x12/0x26
Reported-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: Michael Rubin <mrubin@google.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-11-03 14:39:58 -04:00
..
2010-10-26 17:58:44 -07:00
2010-08-27 11:13:47 -07:00
2010-09-09 18:57:25 -07:00
2010-09-09 18:57:24 -07:00
2010-10-26 16:52:08 -07:00
2010-11-02 17:02:31 -04:00
2010-09-25 09:34:58 -07:00
2010-10-27 18:03:05 -07:00
2010-10-26 16:52:11 -07:00
2010-08-11 09:23:11 +02:00
2010-08-09 20:44:54 -07:00
2010-10-26 16:52:11 -07:00
2010-10-22 17:31:36 -07:00
2010-08-08 21:57:23 +01:00
2010-10-04 11:09:53 -07:00
2010-10-27 17:29:01 +01:00
2010-10-02 10:26:05 +03:00
2010-10-11 16:00:52 -07:00
2010-10-27 18:03:10 -07:00
2010-10-26 16:52:11 -07:00
2010-10-26 16:52:06 -07:00
2010-10-26 16:52:13 -07:00
2010-10-28 10:04:30 -07:00
2010-10-26 16:52:11 -07:00
2010-09-09 09:05:06 -07:00
2010-10-30 08:45:43 -04:00
2010-09-09 18:57:25 -07:00
2010-10-26 16:52:08 -07:00
2010-10-30 08:45:43 -04:00
2010-10-26 16:52:05 -07:00
2010-10-26 16:52:09 -07:00
2010-07-19 11:54:14 +01:00
2010-08-07 18:20:39 +02:00
2010-10-26 16:52:11 -07:00
2010-10-26 16:52:08 -07:00
2010-10-02 10:28:42 +03:00
2010-10-24 13:41:39 -07:00
2010-10-26 16:52:10 -07:00
2010-10-29 04:16:31 -04:00
2010-10-26 16:52:12 -07:00
2010-10-02 10:24:28 +03:00
2010-10-06 21:16:42 +03:00
2010-08-27 11:12:29 -07:00
2010-10-27 18:03:17 -07:00
2010-10-26 16:52:11 -07:00
2010-08-09 16:47:39 -04:00
2010-10-24 10:51:24 +02:00
2010-10-26 16:52:10 -07:00
2010-10-26 16:52:08 -07:00
2010-11-03 14:39:58 -04:00