[Lguest] unhandled trap 13 on AMD X2

Tejun Heo htejun at gmail.com
Wed Jun 3 11:03:24 EST 2009


Rusty Russell wrote:
> On Tue, 2 Jun 2009 05:24:44 am Johannes Stezenbach wrote:
>>  lguest: unhandled trap 13 at 0xc07d627a (0x0)
> ...
>> c07d627a:       65 a1 14 00 00 00       mov    %gs:0x14,%eax
> 
> Ah, CONFIG_STACK_PROTECTOR.  Interesting, I never tried that...
> 
> OK, this fixes it here:
> 
> 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 at rustcorp.com.au>

FWIW, looks good to me.

Acked-by: Tejun Heo <tj at kernel.org>

Thanks.

-- 
tejun



More information about the Lguest mailing list