* [uml-devel] Fwd: [uml-user] Host 2.6.2/3 + CFQ + BlaisorBlade patches == host panic
@ 2004-02-22 15:04 BlaisorBlade
2004-02-23 8:38 ` [uml-devel] " Ingo Molnar
0 siblings, 1 reply; 5+ messages in thread
From: BlaisorBlade @ 2004-02-22 15:04 UTC (permalink / raw)
To: Ingo Molnar; +Cc: user-mode-linux-devel
Hi Ingo, could you please take a look at this report? With CONFIG_SMP enabled
and the skas patch applied (last version, which includes all your changes)
the kernel is BUGging during switch_mm.
I've looked at include/asm-i386/mmu_context.h and I saw this code:
#ifdef CONFIG_SMP
else {
cpu_tlbstate[cpu].state = TLBSTATE_OK;
BUG_ON(cpu_tlbstate[cpu].active_mm != next); /*!!!!This is the
bug you hit*/
...
The kernel is complaining because prev == next but prev !=
cpu_tlbstate[cpu].active_mm. switch_mm is called in schedule.c (looking at
the EIP value below, which is inside schedule()) and its params are actually
prev->active_mm and next->mm. So it BUGged because prev->active_mm was false,
or because prev was not running when it was scheduled away (or was running
onto another CPU). However I cannot understand anything more
Maybe prev->active_mm had just been changed by ptrace but
cpu_tlbstate[cpu].active_mm had not been updated? I.e. the "child" task in
ptrace had not been re-scheduled in - was it maybe running somewhere else?
---------- Forwarded message ----------
Subject: [uml-user] Host 2.6.2/3 + CFQ + BlaisorBlade patches == host panic
Date: 22:04, venerdì 20 febbraio 2004
From: "Christopher S. Aker" <caker@theshore.net>
To: <user-mode-linux-user@lists.sourceforge.net>
Cc: "BlaisorBlade" <blaisorblade_spam@yahoo.it>
Hello,
I've been testing 2.6 and SKAS and receive the following BUG on both 2.6.2
and 2.6.3. Patches applied are (in order):
*
http://www.user-mode-linux.org/~blaisorblade/patches/2.6.2-v1/uml-patch-2.6.2
-0.bz2 *
http://www.user-mode-linux.org/~blaisorblade/patches/2.6.2-v1/00-Combo-v1.bz
2 *
http://www.user-mode-linux.org/~blaisorblade/patches/2.6.2-v1-host-skas2/00-2
.6.2-v1-host-SKAS2.patch.bz2 * the CFQ patch from the -mm tree
* patch-2.6.3 (only on the 2.6.3 kernel, obviously)
kernel BUG at include/asm/mmu_context.h:53!
invalid operand: 0000 [#1]
CPU: 2
EIP: 0060:[<c011dff1>] Not tainted
EFLAGS: 00010083
EIP is at schedule+0x53e/0x6c5
eax: 00000100 ebx: f57e0d00 ecx: 00000002 edx: f57e0d00
esi: f640c6b0 edi: c3da1c80 ebp: f7f97f78 esp: f7f97f24
ds: 007b es: 007b ss: 0068
Process swapper (pid: 0, threadinfo=f7f96000 task=f7f9ece0)
Stack: f640c6b0 3ee9c9d5 00000185 f7f97f30 e3cd6000 00000200 00000001
c0451b88 f640c6b0 3ee9c9d5 00000185 f640c6b0 c3da1c80 0001ab57 3ee9cded
00000185 f7f9ece0 f7f9eeac f7f96000 f7f96000 c010882e f7f96000 c010ac89
f7f96000 Call Trace:
[<c010882e>] default_idle+0x0/0x2d
[<c010ac89>] need_resched+0x27/0x32
[<c010882e>] default_idle+0x0/0x2d
[<c0108858>] default_idle+0x2a/0x2d
[<c01088cc>] cpu_idle+0x37/0x40
[<c012314e>] printk+0x188/0x1d0
[<c045c51d>] print_cpu_info+0x86/0xd2
Code: 0f 0b 35 00 34 3a 3a c0 eb c5 89 5e 6c f0 ff 43 18 b8 00 e0
Does this look like it could be caused by the SKAS patches, or would you
suspect the CFQ patch? The box seems to run fine, but once I fire up a few
UMLs and start banging around, the host will BUG.
Thanks,
-Chris
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&opÌk
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [uml-devel] Re: Fwd: [uml-user] Host 2.6.2/3 + CFQ + BlaisorBlade patches == host panic
2004-02-22 15:04 [uml-devel] Fwd: [uml-user] Host 2.6.2/3 + CFQ + BlaisorBlade patches == host panic BlaisorBlade
@ 2004-02-23 8:38 ` Ingo Molnar
2004-02-23 18:51 ` Jeff Dike
0 siblings, 1 reply; 5+ messages in thread
From: Ingo Molnar @ 2004-02-23 8:38 UTC (permalink / raw)
To: BlaisorBlade; +Cc: user-mode-linux-devel
* BlaisorBlade <blaisorblade_spam@yahoo.it> wrote:
> Hi Ingo, could you please take a look at this report? With CONFIG_SMP
> enabled and the skas patch applied (last version, which includes all
> your changes) the kernel is BUGging during switch_mm.
is UML SMP-ready? There seem to be a handful of data structures that
should be per-CPU for correctness. (eg. userspace_pid?)
Ingo
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] Re: Fwd: [uml-user] Host 2.6.2/3 + CFQ + BlaisorBlade patches == host panic
2004-02-23 8:38 ` [uml-devel] " Ingo Molnar
@ 2004-02-23 18:51 ` Jeff Dike
2004-03-07 20:53 ` [uml-devel] New Skas patch for 2.6 and SMP Christopher S. Aker
0 siblings, 1 reply; 5+ messages in thread
From: Jeff Dike @ 2004-02-23 18:51 UTC (permalink / raw)
To: Ingo Molnar; +Cc: BlaisorBlade, user-mode-linux-devel
mingo@elte.hu said:
> is UML SMP-ready? There seem to be a handful of data structures that
> should be per-CPU for correctness. (eg. userspace_pid?)
The tt mode side of the house is. skas isn't, quite, for the reasons you
mention.
However, this was SMP on the host, not SMP support inside UML.
Jeff
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* [uml-devel] New Skas patch for 2.6 and SMP
@ 2004-02-29 17:17 BlaisorBlade
0 siblings, 0 replies; 5+ messages in thread
From: BlaisorBlade @ 2004-02-29 17:17 UTC (permalink / raw)
To: Sascha Rommelfangen, Christopher S. Aker; +Cc: user-mode-linux-devel
I've uploaded a new SKAS patch on the site. Follow instructions on the
homepage (http://www.user-mode-linux.org/~blaisorblade). It is against 2.6.3
but applies cleanly on 2.6.0 and probably the kernels in between. It contains
a change for CONFIG_SMP only, which I hope will solve the problems you get.
The change has been reviewed on uml-devel, however be careful with it - I do
not have any SMP box to test it.
For UP kernels that patch carries no changes.
Hope It Works! Bye
--
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [uml-devel] New Skas patch for 2.6 and SMP
2004-02-23 18:51 ` Jeff Dike
@ 2004-03-07 20:53 ` Christopher S. Aker
0 siblings, 0 replies; 5+ messages in thread
From: Christopher S. Aker @ 2004-03-07 20:53 UTC (permalink / raw)
To: uml-devel; +Cc: BlaisorBlade, user-mode-linux-user
> I've uploaded a new SKAS patch on the site. Follow instructions on the
> homepage (http://www.user-mode-linux.org/~blaisorblade). It is against 2.6.3
> but applies cleanly on 2.6.0 and probably the kernels in between. It contains
> a change for CONFIG_SMP only, which I hope will solve the problems you get.
>
> The change has been reviewed on uml-devel, however be careful with it - I do
> not have any SMP box to test it.
>
> For UP kernels that patch carries no changes.
>
> Hope It Works! Bye
This has been working great for me for the past couple of days -- no problems!
Thanks,
-Chris
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-03-07 20:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22 15:04 [uml-devel] Fwd: [uml-user] Host 2.6.2/3 + CFQ + BlaisorBlade patches == host panic BlaisorBlade
2004-02-23 8:38 ` [uml-devel] " Ingo Molnar
2004-02-23 18:51 ` Jeff Dike
2004-03-07 20:53 ` [uml-devel] New Skas patch for 2.6 and SMP Christopher S. Aker
-- strict thread matches above, loose matches on Subject: below --
2004-02-29 17:17 BlaisorBlade
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.