lguest: fix 'unhandled trap 13' with CONFIG_CC_STACKPROTECTOR
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 3 Jun 2009 05:22:24 +0000 (14:52 +0930)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Jun 2009 18:50:06 +0000 (11:50 -0700)
commit2cb7878a3a4341d1faa208de962d66f0817d3e7a
tree6639c4dcce9f213a58144e0c0431a339b69c42b2
parent9fa7eb283c5cdc2b0f4a8cfe6387ed82e5e9a3d3
lguest: fix 'unhandled trap 13' with CONFIG_CC_STACKPROTECTOR

We don't set up the canary; let's disable stack protector on boot.c so
we can get into lguest_init, then set it up.  As a side effect,
switch_to_new_gdt() sets up %fs for us properly too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/lguest/Makefile
arch/x86/lguest/boot.c