Tiago Maluta | 22 Oct 15:13

kernel BUG at arch/x86/kernel/irq_32.c

-- kernel  --

Kernel: 2.6.27-06509-g2515ddc-dirty
Environment: x86 (32-bits)
config attached

-- patchs (-dirty) --

http://bugzilla.kernel.org/show_bug.cgi?id=11805 (to fix a XFS segfault)
http://marc.info/?l=linux-kernel&m=122445958110927&w=2 (to fix DMI trap
on lguest)

-- How to reproduce --

~# Documentation/lguest/lguest --tunnet=192.168.19.1
--block=/root/initrd-1.1-i386.img 64 vmlinux root=/dev/vda

-- Error --

Reserving virtual address space above 0xffc00000
Linux version 2.6.27maluta-06509-g2515ddc-dirty (root <at> ananas) (gcc
version 4.3.1 (Gentoo 4.3.1-r1 p1.1) ) #18 SMP PREEMPT Wed Oct 22
11:11:50 Local time zone must be set-
KERNEL supported cpus:
  Intel GenuineIntel
  AMD AuthenticAMD
  NSC Geode by NSC
  Cyrix CyrixInstead
  Centaur CentaurHauls
  Transmeta GenuineTMx86
(Continue reading)

Rusty Russell | 24 Oct 05:15

Re: kernel BUG at arch/x86/kernel/irq_32.c

On Thursday 23 October 2008 00:15:00 Tiago Maluta wrote:
> -- kernel  --
>
> Kernel: 2.6.27-06509-g2515ddc-dirty
> Environment: x86 (32-bits)
> config attached

Hit this one too...

Here are the two patches which really fix the problems:

lguest: fix early_ioremap.

dmi_scan_machine breaks under lguest:
	lguest: unhandled trap 14 at 0xc04edeae (0xffa00000)

This is because we use current_cr3 for the read_cr3() paravirt
function, and it isn't set until the first cr3 change.  We got away
with it until this happened.

Signed-off-by: Rusty Russell <rusty@...>
---
 arch/x86/lguest/boot.c |   29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff -r 7e38804a58b5 arch/x86/lguest/boot.c
--- a/arch/x86/lguest/boot.c	Thu Oct 23 12:07:04 2008 +1100
+++ b/arch/x86/lguest/boot.c	Thu Oct 23 14:30:20 2008 +1100
@@ -367,10 +367,9 @@ static void lguest_cpuid(unsigned int *a
  * lazily after a task switch, and Linux uses that gratefully, but wouldn't a
(Continue reading)

Tiago Maluta | 25 Oct 05:04

Re: kernel BUG at arch/x86/kernel/irq_32.c

Rusty Russell wrote:
> On Thursday 23 October 2008 00:15:00 Tiago Maluta wrote:
>> -- kernel  --
>>
>> Kernel: 2.6.27-06509-g2515ddc-dirty
>> Environment: x86 (32-bits)
>> config attached
> 
> Hit this one too...
> 
> Here are the two patches which really fix the problems:
> 
> lguest: fix early_ioremap.
> 
> dmi_scan_machine breaks under lguest:
> 	lguest: unhandled trap 14 at 0xc04edeae (0xffa00000)
> 
> This is because we use current_cr3 for the read_cr3() paravirt
> function, and it isn't set until the first cr3 change.  We got away
> with it until this happened.
> 

Fixed.

Thanks!
Tiago

Gmane