x86: Fix non-lazy GS handling in sys_vm86()
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 7 Jun 2009 14:23:48 +0000 (16:23 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 7 Jun 2009 14:31:23 +0000 (16:31 +0200)
commit3aa6b186f86c5d06d6d92d14311ffed51f091f40
treecd14cfebf638976d203f2441f6786da41689262b
parent4a4aca641bc4598e77b866804f47c651ec4a764d
x86: Fix non-lazy GS handling in sys_vm86()

This fixes a stack corruption panic or null dereference oops
due to a bad GS in resume_userspace() when returning from
sys_vm86() and calling lockdep_sys_exit().

Only a problem when CONFIG_LOCKDEP and CONFIG_CC_STACKPROTECTOR
enabled.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Cc: H. Peter Anvin <hpa@zytor.com>
LKML-Reference: <1244384628.2323.4.camel@bimbo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/vm86_32.c