VM ops on 37-rc1
Subsystems (2)
I found some ops on one of Bensely Core2 machine. The ops may pops up just system after booted. 2.6.36 kernel is good. The similar ops also
appears on IA64 machine. Any idea of this?
general protection fault: 0000 [#1] SMP last sysfs file: /sys/devices/system/cpu/cpu7/cache/index2/shared_cpu_map CPU 1 Modules linked in: video output
Pid: 8494, comm: sadc Not tainted 2.6.37-rc1 #1 X7DWN/X7DW3
RIP: 0010:[<ffffffff812c6d89>] [<ffffffff812c6d89>] strnlen+0x11/0x1a RSP: 0018:ffff88022f1ddcf0 EFLAGS: 00010297 RAX: 41ffffffff81a197 RBX: 0000000000000000 RCX: ffffffffffffffff RDX: 41ffffffff81a197 RSI: fffffffffffffffe RDI: 41ffffffff81a197 RBP: ffff88022ef42000 R08: 0000000000000002 R09: ffffffff81cb7a50 R10: ffff88022f1ddf50 R11: ffffffff81c4e3c8 R12: 41ffffffff81a197 R13: 000000000000ffff R14: ffff88022ef43000 R15: ffffffff81a19438 FS: 00007fd06b06e6f0(0000) GS:ffff8800cfc40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007fd06b0a2000 CR3: 000000022db81000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process sadc (pid: 8494, threadinfo ffff88022f1dc000, task ffff88022b9d5a30) Stack: ffffffff812c846d ffff88022f1ddd88 ffff88022ef42000 ffffffff81a19436 ffff88022ef43000 ffff88022ef42000 ffffffff812c9196 ffff88022f08e4c0 0000000000001000 ffffffffff0a0004 ffffffff810b30a1 0000000000000000 Call Trace: [<ffffffff812c846d>] ? string+0x43/0xb5 [<ffffffff812c9196>] ? vsnprintf+0x1d8/0x421 [<ffffffff810b30a1>] ? vma_adjust+0x205/0x435 [<ffffffff810df8f5>] ? seq_printf+0x67/0x8f [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff810a9087>] ? all_vm_events+0x60/0x73 [<ffffffff8103b615>] ? put_online_cpus+0x22/0x54 [<ffffffff810a9169>] ? vmstat_start+0xcf/0x103 [<ffffffff810a89a5>] ? vmstat_show+0x23/0x27 [<ffffffff810dfe79>] ? seq_read+0x181/0x364 [<ffffffff8110d8eb>] ? proc_reg_read+0x6a/0x84 [<ffffffff810c86fc>] ? vfs_read+0xa8/0x12f [<ffffffff810c8ae4>] ? sys_read+0x45/0x6e [<ffffffff8100296b>] ? system_call_fastpath+0x16/0x1b Code: f2 ae 48 f7 d1 48 8d 44 11 ff 40 38 30 74 0a 48 ff c8 48 39 d0 73 f3 31 c0 c3 48 89 f8 eb 03 48 ff c0 48 ff ce 48 83 fe ff 74 05 <80> 38 00 75 ef 48 29 f8 c3 31 c0 eb 12 41 38 c8 74 0a 48 ff c2 RIP [<ffffffff812c6d89>] strnlen+0x11/0x1a RSP <ffff88022f1ddcf0> ---[ end trace 75434a01211a18e0 ]---
Sometime, the following ops appears.
BUG: unable to handle kernel paging request at ffffff81a19733ff IP: [<ffffffff812c6d89>] strnlen+0x11/0x1a PGD 1c41067 PUD 0 Oops: 0000 [#3] SMP last sysfs file: /sys/devices/system/cpu/cpu7/cache/index2/shared_cpu_map CPU 0 Modules linked in: video output
Pid: 1781, comm: sadc Tainted: G D 2.6.37-rc1 #1 X7DWN/X7DW3
RIP: 0010:[<ffffffff812c6d89>] [<ffffffff812c6d89>] strnlen+0x11/0x1a RSP: 0018:ffff88022dea1cf0 EFLAGS: 00010297 RAX: ffffff81a19733ff RBX: 0000000000000000 RCX: ffffffffffffffff RDX: ffffff81a19733ff RSI: fffffffffffffffe RDI: ffffff81a19733ff RBP: ffff88022ee38000 R08: 0000000000000002 R09: ffffffff81cb7a50 R10: ffff88022dea1f50 R11: ffffffff81c4e3c8 R12: ffffff81a19733ff R13: 000000000000ffff R14: ffff88022ee39000 R15: ffffffff81a19438 FS: 00007fd6725dc6f0(0000) GS:ffff8800cfc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: ffffff81a19733ff CR3: 000000022e5e7000 CR4: 00000000000006f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process sadc (pid: 1781, threadinfo ffff88022dea0000, task ffff88022e1229a0) Stack: ffffffff812c846d ffff88022dea1d88 ffff88022ee38000 ffffffff81a19436 ffff88022ee39000 ffff88022ee38000 ffffffff812c9196 ffff88022ee086c0 0000000000001000 ffffffffff0a0004 ffffffff810b30a1 0000000000000000 Call Trace: [<ffffffff812c846d>] ? string+0x43/0xb5 [<ffffffff812c9196>] ? vsnprintf+0x1d8/0x421 [<ffffffff810b30a1>] ? vma_adjust+0x205/0x435 [<ffffffff810df8f5>] ? seq_printf+0x67/0x8f [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff810a9087>] ? all_vm_events+0x60/0x73 [<ffffffff8103b615>] ? put_online_cpus+0x22/0x54 [<ffffffff810a9169>] ? vmstat_start+0xcf/0x103 [<ffffffff810a89a5>] ? vmstat_show+0x23/0x27 [<ffffffff810dfe79>] ? seq_read+0x181/0x364 [<ffffffff8110d8eb>] ? proc_reg_read+0x6a/0x84 [<ffffffff810c86fc>] ? vfs_read+0xa8/0x12f [<ffffffff810c8ae4>] ? sys_read+0x45/0x6e [<ffffffff8100296b>] ? system_call_fastpath+0x16/0x1b Code: f2 ae 48 f7 d1 48 8d 44 11 ff 40 38 30 74 0a 48 ff c8 48 39 d0 73 f3 31 c0 c3 48 89 f8 eb 03 48 ff c0 48 ff ce 48 83 fe ff 74 05 <80> 38 00 75 ef 48 29 f8 c3 31 c0 eb 12 41 38 c8 74 0a 48 ff c2 RIP [<ffffffff812c6d89>] strnlen+0x11/0x1a
Try revert the latest change to mm/vmstat.c, Michael added code to show dirty thresholds there.
Thanks,
Fengguang
Quoted 97 lines · Alex
I found some ops on one of Bensely Core2 machine. The ops may pops up just system after booted. 2.6.36 kernel is good. The similar ops also
appears on IA64 machine. Any idea of this?general protection fault: 0000 [#1] SMP last sysfs file: /sys/devices/system/cpu/cpu7/cache/index2/shared_cpu_map CPU 1 Modules linked in: video outputPid: 8494, comm: sadc Not tainted 2.6.37-rc1 #1 X7DWN/X7DW3
RIP: 0010:[<ffffffff812c6d89>] [<ffffffff812c6d89>] strnlen+0x11/0x1a RSP: 0018:ffff88022f1ddcf0 EFLAGS: 00010297 RAX: 41ffffffff81a197 RBX: 0000000000000000 RCX: ffffffffffffffff RDX: 41ffffffff81a197 RSI: fffffffffffffffe RDI: 41ffffffff81a197 RBP: ffff88022ef42000 R08: 0000000000000002 R09: ffffffff81cb7a50 R10: ffff88022f1ddf50 R11: ffffffff81c4e3c8 R12: 41ffffffff81a197 R13: 000000000000ffff R14: ffff88022ef43000 R15: ffffffff81a19438 FS: 00007fd06b06e6f0(0000) GS:ffff8800cfc40000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: 00007fd06b0a2000 CR3: 000000022db81000 CR4: 00000000000006e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process sadc (pid: 8494, threadinfo ffff88022f1dc000, task ffff88022b9d5a30) Stack: ffffffff812c846d ffff88022f1ddd88 ffff88022ef42000 ffffffff81a19436 ffff88022ef43000 ffff88022ef42000 ffffffff812c9196 ffff88022f08e4c0 0000000000001000 ffffffffff0a0004 ffffffff810b30a1 0000000000000000 Call Trace: [<ffffffff812c846d>] ? string+0x43/0xb5 [<ffffffff812c9196>] ? vsnprintf+0x1d8/0x421 [<ffffffff810b30a1>] ? vma_adjust+0x205/0x435 [<ffffffff810df8f5>] ? seq_printf+0x67/0x8f [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff810a9087>] ? all_vm_events+0x60/0x73 [<ffffffff8103b615>] ? put_online_cpus+0x22/0x54 [<ffffffff810a9169>] ? vmstat_start+0xcf/0x103 [<ffffffff810a89a5>] ? vmstat_show+0x23/0x27 [<ffffffff810dfe79>] ? seq_read+0x181/0x364 [<ffffffff8110d8eb>] ? proc_reg_read+0x6a/0x84 [<ffffffff810c86fc>] ? vfs_read+0xa8/0x12f [<ffffffff810c8ae4>] ? sys_read+0x45/0x6e [<ffffffff8100296b>] ? system_call_fastpath+0x16/0x1b Code: f2 ae 48 f7 d1 48 8d 44 11 ff 40 38 30 74 0a 48 ff c8 48 39 d0 73 f3 31 c0 c3 48 89 f8 eb 03 48 ff c0 48 ff ce 48 83 fe ff 74 05 <80> 38 00 75 ef 48 29 f8 c3 31 c0 eb 12 41 38 c8 74 0a 48 ff c2 RIP [<ffffffff812c6d89>] strnlen+0x11/0x1a RSP <ffff88022f1ddcf0> ---[ end trace 75434a01211a18e0 ]---Sometime, the following ops appears.
BUG: unable to handle kernel paging request at ffffff81a19733ff IP: [<ffffffff812c6d89>] strnlen+0x11/0x1a PGD 1c41067 PUD 0 Oops: 0000 [#3] SMP last sysfs file: /sys/devices/system/cpu/cpu7/cache/index2/shared_cpu_map CPU 0 Modules linked in: video outputPid: 1781, comm: sadc Tainted: G D 2.6.37-rc1 #1 X7DWN/X7DW3
RIP: 0010:[<ffffffff812c6d89>] [<ffffffff812c6d89>] strnlen+0x11/0x1a RSP: 0018:ffff88022dea1cf0 EFLAGS: 00010297 RAX: ffffff81a19733ff RBX: 0000000000000000 RCX: ffffffffffffffff RDX: ffffff81a19733ff RSI: fffffffffffffffe RDI: ffffff81a19733ff RBP: ffff88022ee38000 R08: 0000000000000002 R09: ffffffff81cb7a50 R10: ffff88022dea1f50 R11: ffffffff81c4e3c8 R12: ffffff81a19733ff R13: 000000000000ffff R14: ffff88022ee39000 R15: ffffffff81a19438 FS: 00007fd6725dc6f0(0000) GS:ffff8800cfc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b CR2: ffffff81a19733ff CR3: 000000022e5e7000 CR4: 00000000000006f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Process sadc (pid: 1781, threadinfo ffff88022dea0000, task ffff88022e1229a0) Stack: ffffffff812c846d ffff88022dea1d88 ffff88022ee38000 ffffffff81a19436 ffff88022ee39000 ffff88022ee38000 ffffffff812c9196 ffff88022ee086c0 0000000000001000 ffffffffff0a0004 ffffffff810b30a1 0000000000000000 Call Trace: [<ffffffff812c846d>] ? string+0x43/0xb5 [<ffffffff812c9196>] ? vsnprintf+0x1d8/0x421 [<ffffffff810b30a1>] ? vma_adjust+0x205/0x435 [<ffffffff810df8f5>] ? seq_printf+0x67/0x8f [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff8160d42b>] ? mutex_lock+0x20/0x44 [<ffffffff810a9087>] ? all_vm_events+0x60/0x73 [<ffffffff8103b615>] ? put_online_cpus+0x22/0x54 [<ffffffff810a9169>] ? vmstat_start+0xcf/0x103 [<ffffffff810a89a5>] ? vmstat_show+0x23/0x27 [<ffffffff810dfe79>] ? seq_read+0x181/0x364 [<ffffffff8110d8eb>] ? proc_reg_read+0x6a/0x84 [<ffffffff810c86fc>] ? vfs_read+0xa8/0x12f [<ffffffff810c8ae4>] ? sys_read+0x45/0x6e [<ffffffff8100296b>] ? system_call_fastpath+0x16/0x1b Code: f2 ae 48 f7 d1 48 8d 44 11 ff 40 38 30 74 0a 48 ff c8 48 39 d0 73 f3 31 c0 c3 48 89 f8 eb 03 48 ff c0 48 ff ce 48 83 fe ff 74 05 <80> 38 00 75 ef 48 29 f8 c3 31 c0 eb 12 41 38 c8 74 0a 48 ff c2 RIP [<ffffffff812c6d89>] strnlen+0x11/0x1a
This is discuss and fixed in another LKML thread, thanks.
---
commit ff8b16d7e15a8ba2a6086645614a483e048e3fbf
Author: Wu Fengguang <[email protected]> Date: Thu Nov 4 01:56:49 2010 +0800
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 <[email protected]>
Cc: Michael Rubin <[email protected]>
Signed-off-by: Wu Fengguang <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>mm/vmstat.c +1 -1
@@ -949,7 +949,7 @@ static void *vmstat_start(struct seq_file *m, loff_t *pos) v[PGPGIN ] /=2 ;/* sectors -> kbytes */ v[PGPGOUT ] /=2 ;#endif -return m->private + *pos; +return (unsigned long *)m->private + *pos; }static void *vmstat_next (struct seq_file *m,void *arg,loff_t *pos)