]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] x86: bogus tls from gdt
authorZachary Amsden <zach@vmware.com>
Sun, 30 Oct 2005 22:59:33 +0000 (14:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:12 +0000 (17:37 -0800)
commit2ccc395466e65be351ed8d655bfaa8efa01a9508
tree55bd8ff5d3d641de012fbc26f5cc1c5a40e6d920
parent38b9db1c75e6e7f55b3dd5cc50d04eb728cf333a
[PATCH] x86: bogus tls from gdt

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 <zach@vmware.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/cpu/common.c