Skip to contentSkip to conversation

loop in copy_user_generic_string

DISCUSSION Zdenek Kabelac 3 participants 14 messages Mar 4, 2008 – Mar 12, 2008 KVM

lore
Share & tools
lore
#0 lore raw

Hello

I'm having weird problem and being a bit puzzled about where to look for this bug.

I'm using T61 - C2D 2GB

So I'll describe symptoms:

When I run inside my 0.5G smp qemu-kvm guest with Debian these two loops in parallel:

'while : ; do dmsetup status ; done'

and

'while : ; do cat /dev/zero >/dev/mapper/any_free_to_use_lvm_partition ; done'

after a while dmsetup start to loop in this place:

[  356.257323] dmsetup       R  running task        0  3385   2342
[  356.257323]  ffff81001c9fbc58 ffffffff812ee85e 0000000000000000
0000000000000001
[  356.257323]  0000000000070617 0000000000000001 ffff81001be94000
ffff81001f864000
[  356.257323]  ffff81001be94360 000000018100cddc ffff81001be94000
ffffffff812f13b1
[  356.257323] Call Trace:
[  356.257323]  [<ffffffff812ee85e>] ? thread_return+0x99/0x51b
[  356.257323]  [<ffffffff812f13b1>] ? trace_hardirqs_on_thunk+0x35/0x3a
[  356.257323]  [<ffffffff81065749>] ? trace_hardirqs_on+0x139/0x1a0
[  356.257323]  [<ffffffff812f13b1>] ? trace_hardirqs_on_thunk+0x35/0x3a
[  356.257323]  [<ffffffff8100cddc>] ? restore_args+0x0/0x30
[  356.257323]  [<ffffffff8117c017>] ? copy_user_generic_string+0x17/0x40
[  356.257323]  [<ffffffff8804c527>] ? :dm_mod:copy_params+0x87/0xb0
[  356.257323]  [<ffffffff81047d11>] ? __capable+0x11/0x30
[  356.257323]  [<ffffffff8804c6b9>] ? :dm_mod:ctl_ioctl+0x169/0x260
[  356.257323]  [<ffffffff8804c7dd>] ? :dm_mod:dm_compat_ctl_ioctl+0xd/0x20
[  356.257323]  [<ffffffff810f6c12>] ? compat_sys_ioctl+0x182/0x3d0
[  356.257323]  [<ffffffff810bbba0>] ? vfs_write+0x130/0x170
[  356.257323]  [<ffffffff812f13eb>] ? trace_hardirqs_off_thunk+0x35/0x37
[  356.257323]  [<ffffffff8102aec2>] ? sysenter_do_call+0x1b/0x70
[  356.257323]  [<ffffffff812f13b1>] ? trace_hardirqs_on_thunk+0x35/0x3a

I'm using preemptible kernel and the code will stay in the copy_user_generic_string call forever eating 100%cpu - without preemption the kernel gets dead.

With preemption when I run at this moment second dmsetup status in paralllel the busy-looped dmsetup gets finished and while loop starts to continue agains until next dmsetup busy-loop.

I've noticed that if I change inside drivers/md/dm-ioctl.c copy_params the parameter tmp.data_size in the copy_from_user call to just page size (4kB) - or when I replace vmalloc to kmalloc - the busy loop will not happen.

So it seems to be related to page jump somehow

Anyway might have any idea - what is going on here ?

Thanks

Zdenek

Cc me please I'm not a litst member.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#1 lore raw
Quoted 32 lines · Zdenek Kabelac

Hello

I'm having weird problem and being a bit puzzled about where to look for this bug.

I'm using T61 - C2D 2GB

So I'll describe symptoms:

When I run inside my 0.5G smp qemu-kvm guest with Debian these two loops in parallel:

'while : ; do dmsetup status ; done'

and

'while : ; do cat /dev/zero >/dev/mapper/any_free_to_use_lvm_partition ; done'

after a while dmsetup start to loop in this place:

[  356.257323]  [<ffffffff8117c017>] ? copy_user_generic_string+0x17/0x40

I'm using preemptible kernel and the code will stay in the copy_user_generic_string call forever eating 100%cpu - without preemption the kernel gets dead.

With preemption when I run at this moment second dmsetup status in paralllel the busy-looped dmsetup gets finished and while loop starts to continue agains until next dmsetup busy-loop.

Quoted 9 lines

I've noticed that if I change inside drivers/md/dm-ioctl.c copy_params the parameter tmp.data_size in the copy_from_user call to just page size (4kB) - or when I replace vmalloc to kmalloc - the busy loop will not happen.

So it seems to be related to page jump somehow

Anyway might have any idea - what is going on here ?

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
#2 lore raw

2008/3/4, Avi Kivity <[email protected]>:

Quoted 42 lines
Quoted 41 lines · Zdenek Kabelac

Hello

I'm having weird problem and being a bit puzzled about where to look for this bug.

I'm using T61 - C2D 2GB

So I'll describe symptoms:

When I run inside my 0.5G smp qemu-kvm guest with Debian these two loops in parallel:

'while : ; do dmsetup status ; done'

and

'while : ; do cat /dev/zero >/dev/mapper/any_free_to_use_lvm_partition ; done'

after a while dmsetup start to loop in this place:

[  356.257323]  [<ffffffff8117c017>] ? copy_user_generic_string+0x17/0x40

I'm using preemptible kernel and the code will stay in the copy_user_generic_string call forever eating 100%cpu - without preemption the kernel gets dead.

With preemption when I run at this moment second dmsetup status in paralllel the busy-looped dmsetup gets finished and while loop starts to continue agains until next dmsetup busy-loop.

I've noticed that if I change inside drivers/md/dm-ioctl.c copy_params the parameter tmp.data_size in the copy_from_user call to just page size (4kB) - or when I replace vmalloc to kmalloc - the busy loop will not happen.

So it seems to be related to page jump somehow

Quoted 8 lines
Quoted 2 lines

Anyway might have any idea - what is going on here ?

Most likely movs emulation is broken for long counts. Please post a
disassembly of copy_user_generic_string to make sure we're looking at the same code.

Is it emulated ? I've thought it's running natively with vmx?

Anyway here is objdump of copy_user_64.o
(loops on 0x1d7)

00000000000001c0 <copy_user_generic_string>:

 1c0:	41 89 c8             	mov    %ecx,%r8d
 1c3:	89 d1                	mov    %edx,%ecx
 1c5:	c1 e9 03             	shr    $0x3,%ecx
 1c8:	83 e2 07             	and    $0x7,%edx
 1cb:	74 0a                	je     1d7 <copy_user_generic_string+0x17>
 1cd:	f3 48 a5             	rep movsq %ds:(%rsi),%es:(%rdi)
 1d0:	89 d1                	mov    %edx,%ecx
 1d2:	f3 a4                	rep movsb %ds:(%rsi),%es:(%rdi)
 1d4:	89 c8                	mov    %ecx,%eax
 1d6:	c3                   	retq
 1d7:	f3 48 a5             	rep movsq %ds:(%rsi),%es:(%rdi)
 1da:	31 c0                	xor    %eax,%eax
 1dc:	c3                   	retq
 1dd:	48 8d 04 ca          	lea    (%rdx,%rcx,8),%rax
 1e1:	eb 02                	jmp    1e5 <copy_user_generic_string+0x25>
 1e3:	89 c8                	mov    %ecx,%eax
 1e5:	45 85 c0             	test   %r8d,%r8d
 1e8:	74 08                	je     1f2 <copy_user_generic_string+0x32>
 1ea:	89 c1                	mov    %eax,%ecx
 1ec:	50                   	push   %rax
 1ed:	31 c0                	xor    %eax,%eax
 1ef:	f3 aa                	rep stos %al,%es:(%rdi)
 1f1:	58                   	pop    %rax
 1f2:	c3                   	retq

Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#3 lore raw
Quoted 3 lines · Zdenek Kabelac

Is it emulated ? I've thought it's running natively with vmx?

In some cases (memory mapped I/O, writes to page tables) some instructions are emulated. Usually they run natively.

Please post the output of 'kvm_stat -1' to ensure the problem is with the emulator.

Signature · 7 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
#4 lore raw
In reply to Avi Kivity
Quoted 4 lines · Avi Kivity

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Be careful -- this code is patched at runtime and what you see in the vmlinux is not necessarily the same that is executed

Incidentially that might cause problems.

-Andi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#5 lore raw
Quoted 11 lines · Andi Kleen
Quoted 4 lines · Avi Kivity

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Be careful -- this code is patched at runtime and what you see in the vmlinux is not necessarily the same that is executed

If the disassembled instruction isn't marked as an alternative in the source, then it can't be patched, right?

Quoted 1 line

Incidentially that might cause problems.

Specific to kvm? how?

Signature · 7 lines
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
#6 lore raw

2008/3/5, Avi Kivity <[email protected]>:

Quoted 19 lines
Quoted 11 lines · Andi Kleen
Quoted 4 lines · Avi Kivity

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Be careful -- this code is patched at runtime and what you see in the vmlinux is not necessarily the same that is executed

If the disassembled instruction isn't marked as an alternative in the
source, then it can't be patched, right?

Quoted 5 lines
Quoted 1 line

Incidentially that might cause problems.

Specific to kvm? how?

As for me - I'm note sure were this bug come from - I just can easily reproduce it on my box with Qemu-kvm - the problem could be also directly in kernel - (either MMU or dm) - I just know the bug is not reproducible with vmware nor natively running code.
On the other hand Qemu-kvm easily catches racing bugs compared with native execution - so maybe it's exposing some MMU problem.

I've traced the problem to the instruction place - but I'm not sure how to help more with this issue - so if anyone has some idea what else should I check - let me know.

I've got an idea to replace rep movqs with plain asm loop - does anyone thinks it might be worth to check this ??

Zdenek

PS: In the attachment there is my config file - thought there is probably nothing special

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#7 lore raw

2008/3/5, Zdenek Kabelac <[email protected]>:

Quoted 19 lines

2008/3/5, Avi Kivity <[email protected]>:

Quoted 17 lines
Quoted 11 lines · Andi Kleen
Quoted 4 lines · Avi Kivity

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Be careful -- this code is patched at runtime and what you see in the vmlinux is not necessarily the same that is executed

If the disassembled instruction isn't marked as an alternative in the
source, then it can't be patched, right?

Hello

Any progress on this - It looks like I get this bug quite often when I test device-mapper code.

Should I test something special ?

Also I'm seeing some problems with nfs - not yet tracked down, but I'd like to get bugs fixed after another. Also about two times qemu-kvm coredumped - unfortunately it's compiled without debugs thus the traceback was not really useful to make any report...

Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#8 lore raw

2008/3/7, Zdenek Kabelac <[email protected]>:

Quoted 23 lines

2008/3/5, Zdenek Kabelac <[email protected]>:

Quoted 19 lines

2008/3/5, Avi Kivity <[email protected]>:

Quoted 17 lines
Quoted 11 lines · Andi Kleen
Quoted 4 lines · Avi Kivity

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Be careful -- this code is patched at runtime and what you see in the vmlinux is not necessarily the same that is executed

If the disassembled instruction isn't marked as an alternative in the
source, then it can't be patched, right?

Quoted 5 lines

Hello

Any progress on this - It looks like I get this bug quite often when I test device-mapper code.

Hello

I've made some more experiments and noticed few more things:

a) - it is just enough to run parallel loop with cat LVM partition

Quoted 1 line

/dev/null and dmsetup status

b) when I insert for() loop for zeroing allocated memory in the dm-ioctl copy_params function my loop start once the memory crosses exactly 4KB boundary (visible from register content)

c) in my trace log I could usually always see this pattern:

[  160.634897]  [<ffffffff812ee5ba>] preempt_schedule_irq+0x5a/0xa0
[  160.634897]  [<ffffffff8100cf46>] retint_kernel+0x26/0x30

from the look in the arch/x86/kernel/entry64.s I could really see there is some potentiality for internal loop that may call preempt_schedule_irq in upon some check in exit_intr - but having actually now idea what's this all about...

I've put there just some extra dump_stack trace in the preempt_schedule_irq - and it's really being printed - but quite slowly actually considering process eats 100% CPU

So anyone has any idea what might be wrong ?

Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#9 lore raw

2008/3/9, Zdenek Kabelac <[email protected]>:

Quoted 53 lines

2008/3/7, Zdenek Kabelac <[email protected]>:

Quoted 23 lines

2008/3/5, Zdenek Kabelac <[email protected]>:

Quoted 19 lines

2008/3/5, Avi Kivity <[email protected]>:

Quoted 17 lines
Quoted 11 lines · Andi Kleen
Quoted 4 lines · Avi Kivity

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Be careful -- this code is patched at runtime and what you see in the vmlinux is not necessarily the same that is executed

If the disassembled instruction isn't marked as an alternative in the
source, then it can't be patched, right?

Quoted 5 lines

Hello

Any progress on this - It looks like I get this bug quite often when I test device-mapper code.

Hello

I've made some more experiments and noticed few more things:

a) - it is just enough to run parallel loop with cat LVM partition

Quoted 1 line

/dev/null and dmsetup status

b) when I insert for() loop for zeroing allocated memory in the dm-ioctl copy_params function my loop start once the memory crosses exactly 4KB boundary (visible from register content)

c) in my trace log I could usually always see this pattern:

 [  160.634897]  [<ffffffff812ee5ba>] preempt_schedule_irq+0x5a/0xa0
 [  160.634897]  [<ffffffff8100cf46>] retint_kernel+0x26/0x30

from the look in the arch/x86/kernel/entry64.s I could really see there is some potentiality for internal loop that may call preempt_schedule_irq in upon some check in exit_intr - but having actually now idea what's this all about...

Quoted 5 lines

I've put there just some extra dump_stack trace in the preempt_schedule_irq - and it's really being printed - but quite slowly actually considering process eats 100% CPU

So anyone has any idea what might be wrong ?

Hello

I've some more news here - it looks I've found working setup on my C2D.

All I need to do is compile my 64bit kernel with optimization for space. This will magical start to work - at least in this case.

I'll now probably slowly try to figure out which directory with -Os compilation makes the difference.

Also I've noticed that standard Debian 2.6.24-4-686 kernel loops in Qemu, but 486 version doesn't.

So if anyone starts to get idea what could be wrong...

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#10 lore raw

2008/3/11, Zdenek Kabelac <[email protected]>:

Quoted 67 lines

2008/3/9, Zdenek Kabelac <[email protected]>:

Quoted 53 lines

2008/3/7, Zdenek Kabelac <[email protected]>:

Quoted 23 lines

2008/3/5, Zdenek Kabelac <[email protected]>:

Quoted 19 lines

2008/3/5, Avi Kivity <[email protected]>:

Quoted 17 lines
Quoted 11 lines · Andi Kleen
Quoted 4 lines · Avi Kivity

Most likely movs emulation is broken for long counts. Please post a disassembly of copy_user_generic_string to make sure we're looking at the same code.

Be careful -- this code is patched at runtime and what you see in the vmlinux is not necessarily the same that is executed

If the disassembled instruction isn't marked as an alternative in the
source, then it can't be patched, right?

Quoted 5 lines

Hello

Any progress on this - It looks like I get this bug quite often when I test device-mapper code.

Hello

I've made some more experiments and noticed few more things:

a) - it is just enough to run parallel loop with cat LVM partition

Quoted 1 line

/dev/null and dmsetup status

b) when I insert for() loop for zeroing allocated memory in the dm-ioctl copy_params function my loop start once the memory crosses exactly 4KB boundary (visible from register content)

c) in my trace log I could usually always see this pattern:

 [  160.634897]  [<ffffffff812ee5ba>] preempt_schedule_irq+0x5a/0xa0
 [  160.634897]  [<ffffffff8100cf46>] retint_kernel+0x26/0x30

from the look in the arch/x86/kernel/entry64.s I could really see there is some potentiality for internal loop that may call preempt_schedule_irq in upon some check in exit_intr - but having actually now idea what's this all about...

Quoted 5 lines

I've put there just some extra dump_stack trace in the preempt_schedule_irq - and it's really being printed - but quite slowly actually considering process eats 100% CPU

So anyone has any idea what might be wrong ?

Hello

I've some more news here - it looks I've found working setup on my C2D.

Quoted 8 lines

All I need to do is compile my 64bit kernel with optimization for space. This will magical start to work - at least in this case.

I'll now probably slowly try to figure out which directory with -Os compilation makes the difference.

Also I've noticed that standard Debian 2.6.24-4-686 kernel loops in Qemu, but 486 version doesn't.

Argh - being stupid here - it looks like these 'working' kernels were not SMP actually.
As long as the SMP is used - I still get the busy loop :( Now being clueless....

Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#11 lore raw
Quoted 4 lines

Argh - being stupid here - it looks like these 'working' kernels were not SMP actually.
As long as the SMP is used - I still get the busy loop :( Now being clueless....

Sorry don't have the cycles to look into your problem, but the standard procedure for hard problems that can be reproduced is to git bisect them down to the change set that introduced the problem originally and then complain to whoever authored that.

-Andi

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#12 lore raw

2008/3/12, Andi Kleen <[email protected]>:

Quoted 10 lines
Quoted 4 lines

Argh - being stupid here - it looks like these 'working' kernels were not SMP actually.
As long as the SMP is used - I still get the busy loop :( Now being clueless....

Sorry don't have the cycles to look into your problem, but the
standard procedure for hard problems that can be reproduced is to git bisect them down to the change set that introduced the problem originally and then complain to whoever authored that.

The problem is - I don't know about any working SMP kernel which would survive this test - thought haven't got into a really big history - tried something like 2.6.22 kernels - no luck - also many kernel seems to be unbootable in SMP mode on my machine giving many oopses - in fact just 2.6.24 series starts to be at least reliable in booting in my Qemu setup without failing during disk mounting or in some other place...

Will try to find probably some 2.6.18 kernel and will check what happens.

On the other hand - I've tried to replicate my bug on few other machines with no luck actually - so it's something which might not be easy to trace :(

Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#13 lore raw

2008/3/12, Zdenek Kabelac <[email protected]>:

Quoted 22 lines

2008/3/12, Andi Kleen <[email protected]>:

Quoted 10 lines
Quoted 4 lines

Argh - being stupid here - it looks like these 'working' kernels were not SMP actually.
As long as the SMP is used - I still get the busy loop :( Now being clueless....

Sorry don't have the cycles to look into your problem, but the
standard procedure for hard problems that can be reproduced is to git bisect them down to the change set that introduced the problem originally and then complain to whoever authored that.

The problem is - I don't know about any working SMP kernel which would
survive this test - thought haven't got into a really big history - tried something like 2.6.22 kernels - no luck - also many kernel seems to be unbootable in SMP mode on my machine giving many oopses - in fact just 2.6.24 series starts to be at least reliable in booting in my Qemu setup without failing during disk mounting or in some other place...

Quoted 6 lines

Will try to find probably some 2.6.18 kernel and will check what happens.

On the other hand - I've tried to replicate my bug on few other machines with no luck actually - so it's something which might not be easy to trace :(

Btw - just for testing purposes - I've taken current fedora rawhide kernel. Started machine with this kernel and installed it into qemu guest as well.

And this is what I get when running in SMP mode:

BUG: soft lockup - CPU#1 stuck for 61s! [udevd:583]
CPU 1:
Modules linked in: floppy ata_piix ata_generic pata_acpi pcnet32 mii
libata scsi_m
od
Pid: 583, comm: udevd Not tainted 2.6.25-0.105.rc5.fc9 #1
RIP: 0010:[<ffffffff8113b907>]  [<ffffffff8113b907>] clear_page_c+0x7/0x10
RSP: 0000:ffff810015455b20  EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff810015455be8 RCX: 0000000000000200
RDX: 00000000000006a0 RSI: ffff810015455a74 RDI: ffff810015001000
RBP: ffff810000000000 R08: 0000000015562000 R09: ffff810000000000
R10: 0000000000000292 R11: 0000000000000001 R12: 00003ffffffff000
R13: ffff810000009540 R14: ffff810015454000 R15: 0000000000000001
FS:  0000000000000000(0000) GS:ffff810017509320(0063) knlGS:00000000f7f1d720
CS:  0010 DS: 002b ES: 002b CR0: 000000008005003b
CR2: ffff810015001000 CR3: 00000000159e9000 CR4: 00000000000006a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

Call Trace:
 [<ffffffff810833ac>] ? get_page_from_freelist+0x51f/0x6b6
 [<ffffffff810838ae>] ? __alloc_pages+0xed/0x3c3
 [<ffffffff8109d5d8>] ? alloc_pages_current+0x100/0x109
 [<ffffffff81082e4e>] ? __get_free_pages+0xe/0x4d
 [<ffffffff810f0d4b>] ? show_stat+0x2a/0x4af
 [<ffffffff810838ae>] ? __alloc_pages+0xed/0x3c3
 [<ffffffff8109d5d8>] ? alloc_pages_current+0x100/0x109
 [<ffffffff81082e4e>] ? __get_free_pages+0xe/0x4d
 [<ffffffff810a621d>] ? __kmalloc+0x3e/0xf0
 [<ffffffff810c555f>] ? seq_read+0x143/0x2a2
 [<ffffffff810c5532>] ? seq_read+0x116/0x2a2
 [<ffffffff810c541c>] ? seq_read+0x0/0x2a2
 [<ffffffff810c541c>] ? seq_read+0x0/0x2a2
 [<ffffffff810e9df5>] ? proc_reg_read+0x8a/0xa7
 [<ffffffff810ab489>] ? vfs_read+0xab/0x154
 [<ffffffff810ab5f6>] ? sys_read+0x47/0x70
 [<ffffffff81023f32>] ? ia32_sysret+0x0/0xa

(Full trace attached)
So I guess I'm kind of lucky that my own kernels actually boot in smp mode properly.
Guest was started with 384MB - host has 2GB - around 1GB was free when started. Kernel boots with nosmp flag.

Zdenek

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel