Re: 2.6.13-rc6-rt6

From: Steven Rostedt
Date: Wed Aug 17 2005 - 14:32:20 EST


On Wed, 2005-08-17 at 14:31 -0400, Steven Rostedt wrote:

> On my AMD SMP box, the system boots with no problems.

I shouldn't say no problems. I got this really nasty stuff on the serial
but not on the vga. Below is the patch.

I'm currently compiling my laptop to try this out. I started converting
to my AMD box and decided to try this first. Unfortunately, I modified
enough to do a full compile from scratch again.


BUG: stack overflow: only 984 bytes left! [c05c0424...(c05c0000-c05c2000)]
----------------------------->
| new stack-footprint maximum: swapper/0, 7096 bytes (out of 8136 bytes).
------------|
[<c05c2000>] no_halt+0x0/0x20 (20)
[<c01430cb>] __mcount+0x4b/0xe0 (20)
[<c0142a77>] fill_worst_stack+0x67/0x70 (12)
[<c0142c30>] debug_stackoverflow+0x70/0xd0 (16)
[<c01223d0>] printk+0x20/0x30 (8)
[<c01223ee>] vprintk+0xe/0x2b0 (4)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223ee>] vprintk+0xe/0x2b0 (20)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (8)
[<c01223bb>] printk+0xb/0x30 (60)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223d0>] printk+0x20/0x30 (20)
[<c0142aab>] __print_worst_stack+0x2b/0xf0 (20)
[<c01457ac>] sub_preempt_count+0x1c/0x20 (8)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (24)
[<c0142baf>] print_worst_stack+0x3f/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (4)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c01430cb>] __mcount+0x4b/0xe0 (32)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (40)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0113d8c>] mcount+0x14/0x18 (8)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (20)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c01225dd>] vprintk+0x1fd/0x2b0 (12)
[<c01430cb>] __mcount+0x4b/0xe0 (28)
[<c01223bb>] printk+0xb/0x30 (40)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223bb>] printk+0xb/0x30 (20)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (20)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (32)
[<c0142baf>] print_worst_stack+0x3f/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (4)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c01430cb>] __mcount+0x4b/0xe0 (32)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (40)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0113d8c>] mcount+0x14/0x18 (8)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (20)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c01225dd>] vprintk+0x1fd/0x2b0 (12)
[<c01430cb>] __mcount+0x4b/0xe0 (28)
[<c01223bb>] printk+0xb/0x30 (40)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223bb>] printk+0xb/0x30 (20)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (20)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (32)
[<c0142baf>] print_worst_stack+0x3f/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (4)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c01430cb>] __mcount+0x4b/0xe0 (32)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (40)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0113d8c>] mcount+0x14/0x18 (8)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (20)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c01225dd>] vprintk+0x1fd/0x2b0 (12)
[<c01430cb>] __mcount+0x4b/0xe0 (28)
[<c01223bb>] printk+0xb/0x30 (40)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223bb>] printk+0xb/0x30 (20)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (20)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (32)
[<c0142baf>] print_worst_stack+0x3f/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (4)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c01430cb>] __mcount+0x4b/0xe0 (32)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (40)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0113d8c>] mcount+0x14/0x18 (8)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (20)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c01225dd>] vprintk+0x1fd/0x2b0 (12)
[<c01430cb>] __mcount+0x4b/0xe0 (28)
[<c01223bb>] printk+0xb/0x30 (40)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223bb>] printk+0xb/0x30 (20)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (20)
[<c0142b8a>] print_worst_stack+0x1a/0x50 (32)
[<c0142baf>] print_worst_stack+0x3f/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (4)
[<c01425fb>] check_raw_flags+0xb/0x60 (4)
[<c01430cb>] __mcount+0x4b/0xe0 (32)
[<c02ec334>] _raw_spin_lock_irqsave+0x14/0xb0 (40)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (12)

[...]

[<c01223bb>] printk+0xb/0x30 (40)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223bb>] printk+0xb/0x30 (20)
[<c0142ae1>] __print_worst_stack+0x61/0xf0 (20)
[<c0122753>] release_console_sem+0x33/0xf0 (32)
[<c0142baf>] print_worst_stack+0x3f/0x50 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (8)
[<c0142c17>] debug_stackoverflow+0x57/0xd0 (20)
[<c01430cb>] __mcount+0x4b/0xe0 (20)
[<c0122184>] call_console_drivers+0x14/0x150 (40)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c0122184>] call_console_drivers+0x14/0x150 (20)
[<c0122753>] release_console_sem+0x33/0xf0 (44)
[<c0122628>] vprintk+0x248/0x2b0 (32)
[<c01223bb>] printk+0xb/0x30 (68)
[<c0113d8c>] mcount+0x14/0x18 (20)
[<c01223d0>] printk+0x20/0x30 (20)
[<c05d2d4c>] sched_init+0x12c/0x150 (20)
[<c0113d8c>] mcount+0x14/0x18 (8)
[<c05c2901>] start_kernel+0x51/0x220 (32)



-- Steve

Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>

Index: linux_realtime_goliath/kernel/latency.c
===================================================================
--- linux_realtime_goliath/kernel/latency.c (revision 295)
+++ linux_realtime_goliath/kernel/latency.c (working copy)
@@ -377,8 +377,11 @@
print_worst_stack();
tr->stack_check++;
} else
- if (worst_stack_printed != worst_stack_left)
+ if (worst_stack_printed != worst_stack_left) {
+ tr->stack_check--;
print_worst_stack();
+ tr->stack_check++;
+ }
out:
atomic_dec(&tr->disabled);
}


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/