Re: 2.6.12-rc1-mm1

From: Oleg Nesterov
Date: Mon Mar 21 2005 - 09:07:00 EST


Not related to this mm release directly, but

> All 609 patches:
> ...
> x86-fix-esp-corruption-cpu-bug-take-2.patch
> x86: fix ESP corruption CPU bug (take 2)

I think that Stas tries to steal 1024 bytes from kernel's memory ...
On top of his patch.

--- 2.6.12/arch/i386/kernel/cpu/common.c~stas 2005-03-21 19:43:11.000000000 +0300
+++ 2.6.12/arch/i386/kernel/cpu/common.c 2005-03-21 19:48:30.000000000 +0300
@@ -21,7 +21,6 @@
DEFINE_PER_CPU(struct desc_struct, cpu_gdt_table[GDT_ENTRIES]);
EXPORT_PER_CPU_SYMBOL(cpu_gdt_table);

-unsigned char cpu_16bit_stack[CPU_16BIT_STACK_SIZE];
DEFINE_PER_CPU(unsigned char, cpu_16bit_stack[CPU_16BIT_STACK_SIZE]);
EXPORT_PER_CPU_SYMBOL(cpu_16bit_stack);

--- 2.6.12-rc1/include/asm-i386/desc.h~stas 2005-03-21 19:43:11.000000000 +0300
+++ 2.6.12-rc1/include/asm-i386/desc.h 2005-03-21 19:49:16.000000000 +0300
@@ -17,7 +17,6 @@
extern struct desc_struct cpu_gdt_table[GDT_ENTRIES];
DECLARE_PER_CPU(struct desc_struct, cpu_gdt_table[GDT_ENTRIES]);

-extern unsigned char cpu_16bit_stack[CPU_16BIT_STACK_SIZE];
DECLARE_PER_CPU(unsigned char, cpu_16bit_stack[CPU_16BIT_STACK_SIZE]);

struct Xgt_desc_struct {
-
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/