From: Zachary Amsden The per-CPU initialization code is copying in bogus data into thread->tls_array. Note that it copies &per_cpu(cpu_gdt_table, cpu), not &per_cpu(cpu_gdt_table, cpu)[GDT_ENTRY_TLS_MIN). That is totally broken and unnecessary. Make the initialization explicitly NULL. Signed-off-by: Zachary Amsden Signed-off-by: Andrew Morton --- arch/i386/kernel/cpu/common.c | 6 ------ 1 files changed, 6 deletions(-) diff -puN arch/i386/kernel/cpu/common.c~x86-bogus-tls-from-gdt arch/i386/kernel/cpu/common.c --- 25/arch/i386/kernel/cpu/common.c~x86-bogus-tls-from-gdt Thu Sep 22 14:50:57 2005 +++ 25-akpm/arch/i386/kernel/cpu/common.c Thu Sep 22 14:50:57 2005 @@ -630,12 +630,6 @@ void __devinit cpu_init(void) cpu_gdt_descr[cpu].address = (unsigned long)&per_cpu(cpu_gdt_table, cpu); - /* - * Set up the per-thread TLS descriptor cache: - */ - memcpy(thread->tls_array, &per_cpu(cpu_gdt_table, cpu), - GDT_ENTRY_TLS_ENTRIES * 8); - load_gdt(&cpu_gdt_descr[cpu]); load_idt(&idt_descr); _