]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Fix VMI && stack protector
authorAlok Kataria <akataria@vmware.com>
Tue, 4 Aug 2009 22:34:22 +0000 (15:34 -0700)
committerIngo Molnar <mingo@elte.hu>
Wed, 5 Aug 2009 08:20:29 +0000 (10:20 +0200)
commit44dbec52c76ce5fa4ad01ced81a4f995572c5e69
treed68a3d7cae8eb10a61ee72a68423dde0c0c4aeb2
parent869c775a96af162e5b7b7f1f562f4fe164a06f2c
x86: Fix VMI && stack protector

With CONFIG_STACK_PROTECTOR turned on, VMI doesn't boot with
more than one processor. The problem is with the gs value not
being initialized correctly when registering the secondary
processor for VMI's case.

The patch below initializes the gs value for the AP to
__KERNEL_STACK_CANARY. Without this the secondary processor
keeps on taking a GP on every gs access.

Signed-off-by: Alok N Kataria <akataria@vmware.com>
Cc: <stable@kernel.org> # for v2.6.30.x
LKML-Reference: <1249425262.18955.40.camel@ank32.eng.vmware.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/vmi_32.c