]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
i386: Execute stack overflow warning on interrupt stack v2
authorAndi Kleen <andi@firstfloor.org>
Mon, 5 May 2008 10:36:38 +0000 (12:36 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 12 May 2008 19:28:06 +0000 (21:28 +0200)
commit04b361abfdc522239e3a071f3afdebf5787d9f03
treea98dbb398220ded0fa2bbc2a147d0edec7ec19f3
parentce17833183bf0a08ce3d174a2088eff0a06f2080
i386: Execute stack overflow warning on interrupt stack v2

Previously the reporting printk would run on the process stack, which risks
overflow an already low stack. Instead execute it on the interrupt stack.
This makes it more likely for the printk to make it actually out.

It adds one not taken test/branch more to the interrupt path when
stack overflow checking is enabled. We could avoid that by duplicating
more code, but that seemed not worth it.

Based on an observation by Eric Sandeen.

v2: Fix warnings in some configs

Signed-off-by: Andi Kleen <andi@firstfloor.org>
Cc: mingo@elte.hu
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/irq_32.c