]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 2 Jul 2009 23:50:23 +0000 (16:50 -0700)
commit46ad3656cdd3fb60b447a4667eaab31dfcf5ab1c
tree0e754de4932e468821bc016dabad8f86566366fd
parent024820f5cb728224cff58085f0e07105502267b5
x86: Fix non-lazy GS handling in sys_vm86()

commit 3aa6b186f86c5d06d6d92d14311ffed51f091f40 upstream.

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>
Cc: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/vm86_32.c